Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wro4j maven插件-缺少必需的类_Maven_Plexus_Wro4j - Fatal编程技术网

Wro4j maven插件-缺少必需的类

Wro4j maven插件-缺少必需的类,maven,plexus,wro4j,Maven,Plexus,Wro4j,我正试图运行wro4jmaven插件,根据 我将插件添加到我的pom.xml中: <plugin> <groupId>ro.isdc.wro4j</groupId> <artifactId>wro4j-maven-plugin</artifactId> <version>1.5.0</version> </plugin> 但是,生成失败并出现错误: org.apache.ma

我正试图运行wro4jmaven插件,根据

我将插件添加到我的pom.xml中:

<plugin>
    <groupId>ro.isdc.wro4j</groupId>
    <artifactId>wro4j-maven-plugin</artifactId>
    <version>1.5.0</version>
</plugin>
但是,生成失败并出现错误:

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

您知道如何避免此错误吗?

因为wro4j-1.5.0,所以需要使用maven 3.0来运行插件。原因是一个称为增量构建支持的功能,它依赖于一个在旧版本maven上默认不可用的库。

由于wro4j-1.5.0,运行插件需要maven 3.0。原因是一个称为增量构建支持的功能,它依赖于旧版本maven默认情况下不可用的库。

问题在于您的本地环境

转到我的windows计算机上的此文件夹:
${user.home}/.m2/repository
,然后删除此文件夹中的所有内容。(你可以留一份。)

删除后,运行Maven命令:
mvncleanstall-U


请参阅:

问题在于您的本地环境

转到我的windows计算机上的此文件夹:
${user.home}/.m2/repository
,然后删除此文件夹中的所有内容。(你可以留一份。)

删除后,运行Maven命令:
mvncleanstall-U


请参阅:

使用最新版本(1.6.0)可以修复它吗?我不知道。版本1.6.0使用的slf4j版本比我的应用程序所依赖的版本要晚,因此我无法使用它,因为slf4j向后不兼容。使用最新版本(1.6.0)可以修复它吗?我不知道。版本1.6.0使用了比我的应用程序所依赖的更高版本的slf4j,因此我无法使用它,因为slf4j向后不兼容。
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