Hi,
I don't know if it's a problem in my configuration, but when I use wro4j in build mode (by adding the <plugin> in the pom.xml) the generated .war gets extemely fat, arriving to almost 60MB in size!
On the contrary, if I package the war without the plugin (so using wro4j in runtime mode) i get it in normal size (12MB) as expected.
This is in my pom.xml
<plugin>
<groupId>ro.isdc.wro4j</groupId>
<artifactId>wro4j-maven-plugin</artifactId>
<version>${wro4j.version}</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<configuration>
<jsDestinationFolder>${project.build.directory}/${project.build.finalName}/resources/js</jsDestinationFolder>
<cssDestinationFolder>${project.build.directory}/${project.build.finalName}/resources/styles</cssDestinationFolder>
<wroFile>WebContent/WEB-INF/wro.xml</wroFile>
</configuration>
</plugin>
While this is my wro.properties
managerFactoryClassName=ro.isdc.wro.manager.factory.ConfigurableWroManagerFactory
gzipResources=true
hashStrategy=MD5
namingStrategy=hashEncoder-CRC32
#list of preprocessors
preProcessors=cssUrlRewriting,cssImport,semicolonAppender,cssMinJawr
#list of postprocessors
postProcessors=cssVariables,jsMin
Opening the generated .war, I see that there are too many dependencies downloaded by the plugin, that I'm not using, such as: various ant, bourbon, clojure, gmaven, groovy, various jnr, less, etc etc.
So basically wro4j is downloading as dependencies ALL the possible plugins he has in its list..... is this normal? Is there a way to limit this behaviour to only the basic plugins needed (defined in the wro.properties file) ?
Thanks a lot,
Rohi