maven 实用插件-打包对js\css进行混淆

<!-- yuicompressor -->
			<plugin>
				<groupId>net.alchim31.maven</groupId>
				<artifactId>yuicompressor-maven-plugin</artifactId>
				<version>1.3.0</version>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>compress</goal>
						</goals>
						<configuration>
							<excludes>
								<exclude>**/*.min.js</exclude>
								<exclude>**/*-min.js</exclude>
							</excludes>
							<encoding>utf8</encoding>
							<failOnWarning>false</failOnWarning>
							<nosuffix>true</nosuffix>
							<force>true</force>
							<removeIncluded>true</removeIncluded>
							<linebreakpos>-1</linebreakpos>
						</configuration>
					</execution>
				</executions>
			</plugin>

你可能感兴趣的:(java,maven,utf8)