我已经通过maven配置了我的pom.xml
中的所有依赖项。当我给出命令mvn install
时,我得到以下错误:
执行目标'org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test':的插件管理器中存在mojo信息内部错误,无法在插件'org.apache.maven.plugins:maven-surefire-plugin'.中加载mojo 'org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test‘缺少必需的类: org/apache/maven/surefire/util/NestedCheckedException org.apache.maven.surefire.util.NestedCheckedException
如何解决此问题?
发布于 2011-03-24 07:53:02
您似乎遇到了这个问题:SUREFIRE-85。
最可能的原因似乎是本地存储库中的jar文件损坏。尝试从本地存储库中清除所有maven jar。从<your-home-directory>/.m2/repository/org/apache/maven
中删除所有内容,然后再次运行构建。
此外,请确保您使用的是稳定的、最新版本的Maven。
发布于 2013-03-20 04:40:57
我刚刚遇到了这个问题,通过删除org目录并重新构建它,解决了这个问题。
发布于 2014-04-22 02:48:21
Using: Maven 3.0.5 required surefire:>2.10. 2.10 failed:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project robot-arm: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test failed: A required class was missing while executing org.apache.maven.plugins:maven-surefire-plugin:2.10:test: org/apache/maven/surefire/util/NestedCheckedException
2.11工作正常。2.17工作正常。
https://stackoverflow.com/questions/5402308
复制相似问题