Reputation: 4179
I'm trying to run wro4j maven plugin according to the documentation
I add the plugin to my pom.xml:
<plugin>
<groupId>ro.isdc.wro4j</groupId>
<artifactId>wro4j-maven-plugin</artifactId>
<version>1.5.0</version>
</plugin>
and run the goal:
mvn wro4j:run -Dminimize=true -DtargetGroups=all
However the build fails with error:
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the pl
ugin manager executing goal 'ro.isdc.wro4j:wro4j-maven-plugin:1.5.0:run': Unable
to load the mojo 'ro.isdc.wro4j:wro4j-maven-plugin:1.5.0:run' in the plugin 'ro
.isdc.wro4j:wro4j-maven-plugin'. A required class is missing: org/codehaus/plexu
s/util/Scanner
Do you know how to avoid this error?
Upvotes: 2
Views: 1586
Reputation: 1
The issue is on your local environment.
Go to this folder on my windows machine:${user.home}/.m2/repository
, then delete everything in this folder. (Well you can keep a copy.)
After deleting, run the Maven command:mvn clean install -U
.
See: https://groups.google.com/forum/#!topic/wro4j/ZPSFBQ_5lI8
Upvotes: 0
Reputation: 4133
Since wro4j-1.5.0, the maven 3.0 is required to run the plugin. The reason is a feature called incremental build support which depends on a library which is not available on older version of maven by default.
Upvotes: 4