maven打war时压缩css js文件

以下文件是工作中的一个备份


App



org.apache.maven.plugins
maven-clean-plugin
2.5


net.alchim31.maven
yuicompressor-maven-plugin
1.3.0


install

compress





UTF-8

false



js/**/*.js
css/**/*.css


true

-1

src/main/webapp/resource
target/App/resource



org.apache.maven.plugins
maven-compiler-plugin
2.3.2

1.7
1.7
UTF-8



org.apache.maven.plugins
maven-war-plugin
2.2


false



src/main/resources/${package.environment}
WEB-INF/classes
true


src/main/resources/${package.environment}

**/web.xml

WEB-INF
true



resource/js/**/*.js,
resource/css/**/*.css







注:
base directory: ${workspace_loc:/app}

goal:clean yuicompressor:compress install -Dmaven.test.skip=true

如果提示不到前缀yuicompressor,修改maven对应的setting.xml


net.alchim31.maven

你可能感兴趣的:(j2ee)