I have 100s of javascript files inside the hierarchy of folders and I want two sets of output. one is to have a concatenated version for debugging purposes and the other one is to have a concat + minfy version. I am currently using the below plugin but in this I need to provide each and every file that I need to minify. I am looking for a plugin which needs only parent folder and satisfy the above conditions.
<groupId>com.samaxes.maven</groupId>
<artifactId>minify-maven-plugin</artifactId>
<version>1.7</version>
You should take a look to yui compression maven plugin which sounds like the thing you need.
Mady, Minify Maven Plugin does also support include/exclude patterns.
Please take a look at the Lexicographical ordering example page from the plugin documentation.
YUI compression maven plugin worked for me. I will show what all I did to make it work.
Details of the elements used.
There are 2 types of
<exclude>
property:-Plugin code:-