<plugin>
<groupId>com.samaxes.maven</groupId>
<artifactId>minify-maven-plugin</artifactId>
<version>1.7.5</version>css
<executions>
<execution>
<id>assets-minify</id>
<phase>process-resources</phase>
<configuration>
<!-- css -->
<cssEngine>YUI</cssEngine>
<cssSourceDir>assets</cssSourceDir>
<cssSourceIncludes>
<cssSourceInclude>styles/**/**.css</cssSourceInclude>
<cssSourceInclude>manage/styles/**/**.css</cssSourceInclude>
</cssSourceIncludes>
<!-- <cssSourceExcludes> <cssSourceExclude>vendors/**.css</cssSourceExclude> </cssSourceExcludes> -->
<!-- js -->
<jsEngine>CLOSURE</jsEngine>
<jsSourceDir>assets</jsSourceDir>
<jsSourceIncludes>
<jsSourceInclude>scripts/**/**.js</jsSourceInclude>
<jsSourceInclude>manage/scripts/**/**.js</jsSourceInclude>
</jsSourceIncludes>
<!-- <jsSourceExcludes> <jsSourceExclude>vendors/**/*.min.js</jsSourceExclude> </jsSourceExcludes> -->
<!-- others -->
<skipMerge>true</skipMerge>
<nosuffix>true</nosuffix>
<verbose>false</verbose>
</configuration>
<goals>
<goal>minify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<warSourceExcludes>assets/styles/**/**.css,assets/manage/styles/**/*.css,assets/scripts/**/**.js,assets/manage/scripts/**/**.js</warSourceExcludes>
<warName>${project.artifactId}</warName>
</configuration>
</plugin>apache