Hi all,
I am myself CJ, trying to integrate wro4j (2.0.0 version) into an existing Java based web project. As part of this, updated my pom.xml to include the wro4j-maven-plugin to generate the bundled files during build time itself. Even after setting the contextFolder property explicitly in the configuration, I keep getting the below error :
Caused by: org.apache.maven.plugin.MojoExecutionException: contextFolder was not set!
at ro.isdc.wro.maven.plugin.AbstractWro4jMojo.validate (AbstractWro4jMojo.java:357)
at ro.isdc.wro.maven.plugin.Wro4jMojo.validate (Wro4jMojo.java:104)
at ro.isdc.wro.maven.plugin.AbstractWro4jMojo.execute (AbstractWro4jMojo.java:144)
Below is my entry in pom.xml :
<plugin>
<groupId>ro.isdc.wro4j</groupId>
<artifactId>wro4j-maven-plugin</artifactId>
<version>2.0.0</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<configuration>
<targetGroups>headScripts,scriptBody,mainScripts</targetGroups>
<minimize>true</minimize>
<jsDestinationFolder>${basedir}/target/${project.build.finalName}/jsBundles/</jsDestinationFolder>
<contextFolder>${basedir}/src/main/webapp/</contextFolder>
<wroFile>${basedir}/src/main/webapp/WEB-INF/wro.xml</wroFile>
<ignoreMissingResources>false</ignoreMissingResources>
</configuration>
</plugin>
Can you please check and let me know what's missing? Will be really helpful
Thanks,
CJ