The MobilVox Maven JavaScript Plugin (maven-js-plugin) appears to cause our WAR to be built twice. Is this expected? Our war is rather large (60MB)--is there a way to configure maven-js-plugin to only create the WAR once?
Currently it uses the WAR that maven builds to find the JavaScript to compress. Once it compresses it it builds the WAR again with the compressed JavaScript. It does this so it can leave all development files untouched and only works in the build output directory. There are some planned updates coming to the plugin, I can look into possibly changing the implementation so the double WAR is not necessary.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Also, I forgot to mention you can add -Djs.compress.skip=true to the arguments for quicker builds. We do this at MobilVox for developer builds and then use the compression on testing/release builds.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The MobilVox Maven JavaScript Plugin (maven-js-plugin) appears to cause our WAR to be built twice. Is this expected? Our war is rather large (60MB)--is there a way to configure maven-js-plugin to only create the WAR once?
I haven't yet looked over the source.
Here's our POM: http://tinyurl.com/qu97ew
Currently it uses the WAR that maven builds to find the JavaScript to compress. Once it compresses it it builds the WAR again with the compressed JavaScript. It does this so it can leave all development files untouched and only works in the build output directory. There are some planned updates coming to the plugin, I can look into possibly changing the implementation so the double WAR is not necessary.
Also, I forgot to mention you can add -Djs.compress.skip=true to the arguments for quicker builds. We do this at MobilVox for developer builds and then use the compression on testing/release builds.