【发布时间】:2012-10-22 06:59:10
【问题描述】:
我正在尝试根据documentation 运行 wro4j maven 插件
我将插件添加到我的 pom.xml:
<plugin>
<groupId>ro.isdc.wro4j</groupId>
<artifactId>wro4j-maven-plugin</artifactId>
<version>1.5.0</version>
</plugin>
并运行目标:
mvn wro4j:run -Dminimize=true -DtargetGroups=all
但是构建失败并出现错误:
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
你知道如何避免这个错误吗?
【问题讨论】:
-
使用最新版本 (1.6.0) 可以解决问题吗?
-
我不知道。 1.6.0 版本使用的 slf4j 版本比我的应用程序依赖的版本更高,因此由于 slf4j 向后不兼容,我无法使用它。