Thanks for reading the post. I am using the Dojo framework for my application. The problem I am facing is when I am using the compress then the js files that are included to the vendor directory (mainly dojo.js and related files) are not getting compressed.
What is your web application layout? The compress goal as you have it set up should compress all of the JS in the ${project.build.directory}/${project.build.finalName} directory. It will place all of the compressed JS in a second war file which will have the classifier attached to it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
Thanks for reading the post. I am using the Dojo framework for my application. The problem I am facing is when I am using the compress then the js files that are included to the vendor directory (mainly dojo.js and related files) are not getting compressed.
My POM entry is like
<plugin>
<groupId>com.mobilvox.ossi.mojo</groupId>
<artifactId>maven-js-plugin</artifactId>
<version>1.2</version>
<configuration>
<mergeWarFiles>false</mergeWarFiles>
<classifier>js-compressed</classifier>
<replaceSiteJavaScript>true</replaceSiteJavaScript>
<siteClassifier>site-compressesed</siteClassifier>
<includes>
<include>**/**.js</include>
</includes>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>compress</goal>
</goals>
</execution>
</executions>
</plugin>
Can any body tell me if i am going wrong any where or I need to add some more entries
Thanks
Kaustubh Basu
What is your web application layout? The compress goal as you have it set up should compress all of the JS in the ${project.build.directory}/${project.build.finalName} directory. It will place all of the compressed JS in a second war file which will have the classifier attached to it.
This has been implemented and is in the 1.3 final release, which will be released as soon as the documentation is completed for it.