I'm trying to run the yui-compressor maven plugin found here:
http://alchim.sourceforge.net/yuicompressor-maven-plugin/index.html
It runs fine when I run it by itself:
$> mvn net.sf.alchim:yuicompressor-maven-plugin:compress
But when I add it to the pom.xml and run:
mvn package
it doesn't run but should be executed at the process-resources phase.
Maybe I am not understanding the build process enough, but I thought
if you run package, it would automatically run the process-resources
phase, here is the plugin that I added to my pom.
<plugin>
<groupId>net.sf.alchim</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>compress</goal>
</goals>
</execution>
</executions>
<configuration>
<nosuffix>true</nosuffix>
<aggregations>
<aggregation>
<!-- remove files after aggregation (default:
false)
<removeIncluded>true</removeIncluded>
-->
<!-- insert new line after each concatenation
(default: false) -->
<insertNewLine>true</insertNewLine>
<output>${project.build.directory}/${project.build.finalName}/js/
compressed/all.js</output>
<!-- files to include, path relative to output's directory or
absolute path-->
<includes>
<include>**/*.js</include>
</includes>
<!-- files to exclude, path relative to
output's directory
<excludes>
<exclude>**/*.pack.js</exclude>
<exclude>**/compressed.css</exclude>
</excludes>
-->
</aggregation>
</aggregations>
</configuration>
</plugin>