wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes wro4j-maven-plugin slow performance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "wro4j-maven-plugin slow performance" Watch "wro4j-maven-plugin slow performance" New topic
Author

wro4j-maven-plugin slow performance

Darvesh Niz
Ranch Hand

Joined: May 12, 2008
Posts: 119
Hello All

We are using wro4j maven plugin for minify our js and css. We have lots of java script and css and the wro processing at build time almost takes 20~30 minutes. Is there some smart way to tell the maven plugin to only process those groups which have changed.
in the wro.xml file under WEB-INF we have defined almost 55 wro xml files which have group definitions. When the maven plugin exectues it reads each wro.xml file and process those groups.
i have pasted below the pom snippet, processes each wro group and outputs to the webapp folder one is minified version and the other is normal.
Is there any scope for parallel processing or faster output.


Thanks
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

Is there some smart way to tell the maven plugin to only process those groups which have changed.

This kind of intelligence must be built into the plugin. So you need to either contact the developers of the plugin to request such an enhancement, or if the plugin is open source you can always modify it to do that and supply the patch back to the community.

JBoss In Action
Darvesh Niz
Ranch Hand

Joined: May 12, 2008
Posts: 119
Thanks
i think that the correct approach.

Also i wanted to know there are some features like parallelPreprocessing=true which does parallel processing at the preprocessor level.

Unfortunately our minification is done on the post processor level and i did not come across flags dealing with post processing or parallel group processing which would have helped in expediting build process.

let me know if you you guys have any experience with using parallel processing.

Thanks
 
wood burning stoves
 
subject: wro4j-maven-plugin slow performance