Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wro4j-maven-plugin slow performance

 
Darvesh Niz
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Darvesh Niz
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic