org.apache.maven.plugins:Maven的实施者 - 插件:1.4.1:执行

问题描述 投票:-1回答:1

我试图运行Optaplanner的vrp-dataset-generator。但我有一些错误。我试图运行Optaplanner网络示例,但它也有错误。

这是Web示例错误。

##         at 
 org.apache.maven.surefire.junit4.JUnit4Provider.invoke 
 (JUnit4Provider.java:128)


Results :

Tests in error:
  JUnit4Provider.invoke:128->executeTestSet:153->executeWithRerun:173-        
>execute:283 ▒ ExceptionInInitializer

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

[INFO] ---------------------------------------------------------------------
---
[INFO] BUILD FAILURE
[INFO] ---------------------------------------------------------------------
 ---
[INFO] Total time: 01:48 min
[INFO] Finished at: 2018-01-28T11:17:13+02:00
[INFO] Final Memory: 78M/149M
[INFO] ---------------------------------------------------------------------
---
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-        
plugin:2.18.1:test (default-test) on project optaplanner-webexamples: There     
are test failures.
[ERROR]
[ERROR] Please refer to F:\optaplanner\optaplanner-master\optaplanner-    
webexamples\target\surefire-reports for the individual test results.
[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/MojoFailureException

这是vrp-dataset-generator的错误。

[INFO] --- maven-enforcer-plugin:1.4.1:enforce (no-managed-deps) @ 
vrpdatasetgenerator ---
[WARNING] Rule 0: org.commonjava.maven.enforcer.rule.EnforceManagedDepsRule 
failed with message:
The following 1 dependencies are NOT using a managed version:

- com.graphhopper:graphhopper:jar
[INFO] ---------------------------------------------------------------------
---
[INFO] BUILD FAILURE
[INFO] ---------------------------------------------------------------------
---
[INFO] Total time: 26.236 s
[INFO] Finished at: 2018-01-28T11:26:19+02:00
[INFO] Final Memory: 35M/118M
[INFO] ---------------------------------------------------------------------
---
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-    
plugin:1.4.1:enforce (no-managed-deps) on project vrpdatasetgenerator: Some 
Enforcer rules have failed. Look above for specific messages explaining why 
the rule failed. -> [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/MojoExecutionException ##

我想我在Maven有一些问题,但我找不到错误。

请帮我。

java maven optaplanner
1个回答
0
投票

这个问题是将两个单独的问题混合成一个问题,这会产生很多混乱。一个是关于optaplanner-webexamples,一个是关于外部repo vrp-dataset-generator。

vrp-dataset-generator不是OptaPlanner的一部分。它不在OptaPlanner GitHub存储库中。这是我的GitHub回购中的实验性回购。有一天它可能会被清理掉,并且一些代码可能会添加到optaplanner-examples(或者我们开始时的optashift-vehicle-routing)中,但是今天它还没有为大众消费做好准备。

(无论如何,vrp-dataset-generator显然失败的原因是在maven pom中,依赖项的版本应该在dependencyManagment中声明而不仅仅是依赖项。)

optaplanner-webexamples应该从源代码构建。如果没有,那么很想弄明白为什么,看看我们是否可以改进来源。还有一个jenkins工作也在构建它并且它是绿色的,所以它必须是你本地机器上不同的东西。你能编辑你的问题以包括失败的单元测试和它的堆栈跟踪吗?还要说明您的JDK,maven和wildfly版本。

© www.soinside.com 2019 - 2024. All rights reserved.