首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >执行默认值-集成-目标org.apache.maven.plugins:maven-archetype-plugin:2.4:integration-test测试失败

执行默认值-集成-目标org.apache.maven.plugins:maven-archetype-plugin:2.4:integration-test测试失败
EN

Stack Overflow用户
提问于 2019-01-21 22:02:47
回答 3查看 281关注 0票数 1

我正在尝试在eclipse.i上运行Apache Taverna引擎源代码,我使用的是maven 3.6.0。每次我尝试运行mvn install.when时,我都会遇到这个错误,我尝试mvn clean get success build。

代码语言:javascript
复制
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Taverna Engine and Platform 3.1.0-incubating  SUCCESS [  3.337 s]
[INFO] Apache Taverna Reference Manager API ............... SUCCESS [ 31.216 s]
[INFO] Apache Taverna Observer pattern .................... SUCCESS [ 15.924 s]
[INFO] Apache Taverna Workflow Model API .................. SUCCESS [01:39 min]
[INFO] Apache Taverna Workflow Model Extension Points ..... SUCCESS [ 27.037 s]
[INFO] Apache Taverna Workflow Model impl ................. SUCCESS [ 48.149 s]
[INFO] Apache Taverna Database Configuration API .......... SUCCESS [ 14.536 s]
[INFO] Apache Taverna Reference Test Helpers .............. SUCCESS [ 17.615 s]
[INFO] Apache Taverna Reference Manager impl .............. SUCCESS [ 28.480 s]
[INFO] Apache Taverna Engine Reference Types .............. SUCCESS [ 28.556 s]
[INFO] Apache Taverna Activity test utils ................. SUCCESS [  4.223 s]
[INFO] Apache Taverna Activity archetype .................. FAILURE [  5.293 s]
[INFO] Apache Taverna Platform Capability API ............. SKIPPED
[INFO] Apache Taverna Platform Capability impl ............ SKIPPED
[INFO] Apache Taverna Credential Manager API .............. SKIPPED
[INFO] Apache Taverna Credential Manager impl ............. SKIPPED
[INFO] Apache Taverna Database Configuration impl ......... SKIPPED
[INFO] Apache Taverna Dataflow Activity ................... SKIPPED
[INFO] Apache Taverna Platform Report Service ............. SKIPPED
[INFO] Apache Taverna Platform Execution Service API ...... SKIPPED
[INFO] Apache Taverna Hadoop Workflow Execution Service ... SKIPPED
[INFO] Apache Taverna Platform Execution Service impl ..... SKIPPED
[INFO] Apache Taverna Platform Local Execution Service .... SKIPPED
[INFO] Apache Taverna Platform Remote Execution Service ... SKIPPED
[INFO] Apache Taverna Platform Run Service API ............ SKIPPED
[INFO] Apache Taverna Platform Run Service impl ........... SKIPPED
[INFO] Apache Taverna Services API ........................ SKIPPED
[INFO] Apache Taverna Platform Services impl .............. SKIPPED
[INFO] Apache Taverna StringConstant Activity 3.1.0-incubating SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:26 min
[INFO] Finished at: 2019-01-21T13:50:00+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:integration-test (default-integration-test) on project taverna-activity-archetype: Execution default-integration-test of goal org.apache.maven.plugins:maven-archetype-plugin:2.4:integration-test failed: ${maven.home} is not specified as a directory: 'C:\Users\Ahlem\eclipse-workspace\apache-taverna\apache-taverna\EMBEDDED'. -> [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/PluginExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :taverna-activity-archetyp
EN

回答 3

Stack Overflow用户

发布于 2019-01-21 22:11:13

这似乎与known Eclipse issue有关。

作为一种变通办法,您可以使用外部mvn,而不是Eclipse默认使用的嵌入式mvn。

解决方法步骤:

  1. 解压机器上的maven发行版。

中的

  1. 导航到Window -> preference -> Maven -> Installations,然后添加刚刚解压的Maven安装。
  2. 新的启动配置将使用新的启动配置。如果您尝试现有的启动配置,您需要更新在启动配置对话框的main选项卡底部使用的"Maven“。
票数 1
EN

Stack Overflow用户

发布于 2019-01-21 22:13:14

您可以按照以下步骤操作:

代码语言:javascript
复制
1. Go to Preferences->Maven-Installation->  Click the "Add " button to add external maven you had downloaded ,Then click the "Ok" or "Apply' button to save. 
2. For you current maven project, you need to right click the project or pom.xml file ,choose "Run As"->"Run Configurations", find current maven run setting, at the bottom there's a "maven Runtime" setting , for the dropdown list to select the previous added maven ,Then click the "Apply" button to make it affect .
票数 0
EN

Stack Overflow用户

发布于 2019-01-22 03:27:58

您也可以在控制台中使用以下命令尝试跳过测试:

代码语言:javascript
复制
mvn install -Dmaven.test.skip=true

在Eclipse中,您可以通过添加一个新的maven构建配置来完成此操作,如果您不知道如何操作,可以查看此链接How to skip maven unit test in Eclipse

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54291606

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档