Eclipse中缺少maven-surefire-plugin

当我建立一个Maven项目时,出现此错误.....

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.790s
[INFO] Finished at: Sun May 11 09:36:22 IST 2014
[INFO] Final Memory: 6M/111M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test    (default-test) on project javaeeapp: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test failed: Unable to load the mojo 'test' in the plugin 'org.apache.maven.plugins:maven-surefire-plugin:2.10'. A required class is missing: org/apache/maven/plugin/surefire/SurefireReportParameters
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.apache.maven.plugins:maven-surefire-plugin:2.10
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/NOughT/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.10/maven-surefire-plugin-2.10.jar
[ERROR] urls[1] = file:/C:/Users/NOughT/.m2/repository/org/apache/maven/surefire/surefire-booter/2.10/surefire-booter-2.10.jar
[ERROR] urls[2] = file:/C:/Users/NOughT/.m2/repository/org/apache/maven/surefire/maven-surefire-common/2.10/maven-surefire-common-2.10.jar
[ERROR] urls[3] = file:/C:/Users/NOughT/.m2/repository/org/codehaus/plexus/plexus-utils/2.1/plexus-utils-2.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR] 
[ERROR] -----------------------------------------------------: org.apache.maven.plugin.surefire.SurefireReportParameters
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException

如何将Maven surefire插件添加到Eclipse中?

未知

添加Maven Surefire Pluginpom.xml
pom.xml在此处参考示例

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.17</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.17</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

缺少 Maven Surefire 插件?

来自分类Dev

使用 maven-surefire-plugin 管理 Maven 插件的奇怪行为

来自分类Dev

如何获取生成的maven-surefire-report-plugin的图标

来自分类Dev

Maven tycho-surefire-plugin失败,返回码13

来自分类Dev

maven-surefire-report-plugin不接受其配置

来自分类Dev

如何获取生成的maven-surefire-report-plugin的图标

来自分类Dev

maven-surefire-plugin,jacoco-maven-plugin显示没有覆盖

来自分类Dev

使用maven-surefire-plugin或maven-failsafe-plugin运行硒测试?

来自分类Dev

Maven-surefire-plugin在SpringBoot 2.2.2.RELEASE及更高版本中不起作用

来自分类Dev

无法执行目标org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test

来自分类Dev

如何使maven-surefire-plugin重用创建的线程来执行所有Maven模块中的所有测试

来自分类Dev

无法从命令行覆盖pom maven-surefire-plugin

来自分类Dev

maven-surefire-plugin 运行单一方法,但在课堂上失败

来自分类Dev

是否可以指定其他JVM以使用tycho-surefire-plugin运行Eclipse

来自分类Dev

surefire-plugin不遵守threadCount参数

来自分类Dev

如何在Eclipse中调试Maven surefire测试

来自分类Dev

为什么在 Maven 项目中使用 JUnit 5 时必须强制使用 maven-surefire-plugin?

来自分类Dev

为什么Maven surefire-report-plugin创建错误消息“此平台不支持字符编码$ {outputEncoding}”?

来自分类Dev

为什么maven-surefire-plugin跳过带有日志消息“因为已针对该配置运行”的测试?

来自分类Dev

Maven构建失败并显示错误消息Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4或其依赖项之一无法解析

来自分类Dev

Maven Surefire插件+并行构建

来自分类Dev

Maven Surefire Junit测试套件

来自分类Dev

Maven Surefire Permgen空间不足

来自分类Dev

Maven Surefire插件+并行构建

来自分类Dev

Maven Surefire找不到测试

来自分类Dev

为什么在Maven中需要Surefire插件?

来自分类Dev

Maven Surefire surefire.forkNumber 的 Gradle 等价物

来自分类Dev

无法在项目smrr上执行目标org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test(默认测试):存在测试失败

来自分类Dev

Maven surefire VM 在 Eclipse Neon .3 上崩溃或分叉冻结

Related 相关文章

  1. 1

    缺少 Maven Surefire 插件?

  2. 2

    使用 maven-surefire-plugin 管理 Maven 插件的奇怪行为

  3. 3

    如何获取生成的maven-surefire-report-plugin的图标

  4. 4

    Maven tycho-surefire-plugin失败,返回码13

  5. 5

    maven-surefire-report-plugin不接受其配置

  6. 6

    如何获取生成的maven-surefire-report-plugin的图标

  7. 7

    maven-surefire-plugin,jacoco-maven-plugin显示没有覆盖

  8. 8

    使用maven-surefire-plugin或maven-failsafe-plugin运行硒测试?

  9. 9

    Maven-surefire-plugin在SpringBoot 2.2.2.RELEASE及更高版本中不起作用

  10. 10

    无法执行目标org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test

  11. 11

    如何使maven-surefire-plugin重用创建的线程来执行所有Maven模块中的所有测试

  12. 12

    无法从命令行覆盖pom maven-surefire-plugin

  13. 13

    maven-surefire-plugin 运行单一方法,但在课堂上失败

  14. 14

    是否可以指定其他JVM以使用tycho-surefire-plugin运行Eclipse

  15. 15

    surefire-plugin不遵守threadCount参数

  16. 16

    如何在Eclipse中调试Maven surefire测试

  17. 17

    为什么在 Maven 项目中使用 JUnit 5 时必须强制使用 maven-surefire-plugin?

  18. 18

    为什么Maven surefire-report-plugin创建错误消息“此平台不支持字符编码$ {outputEncoding}”?

  19. 19

    为什么maven-surefire-plugin跳过带有日志消息“因为已针对该配置运行”的测试?

  20. 20

    Maven构建失败并显示错误消息Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4或其依赖项之一无法解析

  21. 21

    Maven Surefire插件+并行构建

  22. 22

    Maven Surefire Junit测试套件

  23. 23

    Maven Surefire Permgen空间不足

  24. 24

    Maven Surefire插件+并行构建

  25. 25

    Maven Surefire找不到测试

  26. 26

    为什么在Maven中需要Surefire插件?

  27. 27

    Maven Surefire surefire.forkNumber 的 Gradle 等价物

  28. 28

    无法在项目smrr上执行目标org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test(默认测试):存在测试失败

  29. 29

    Maven surefire VM 在 Eclipse Neon .3 上崩溃或分叉冻结

热门标签

归档