【发布时间】:2015-02-19 00:07:46
【问题描述】:
我第一次尝试在我的系统上构建一个版本的 OpenTripPlanner。有几个依赖项错误,我可以通过手动下载 jar 并将其添加到 .m2/repository
但是,我无法解决第二个依赖错误。以下是 maven 构建的错误日志
[INFO] opentripplanner-geocoder .......................... SUCCESS [ 1.976 s]
[INFO] opentripplanner-gui ............................... FAILURE [ 11.088 s]
[INFO] opentripplanner-webapp ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 53.144 s
[INFO] Finished at: 2015-02-18T15:33:08-05:00
[INFO] Final Memory: 25M/412M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project opentripplanner-gui: Could not resolve dependencies for project org.opentripplanner:opentripplanner-gui:jar:0.6.0-SNAPSHOT: Failed to collect dependencies at org.processing:core:jar:1.0.7: Failed to read artifact descriptor for org.processing:core:jar:1.0.7: Could not transfer artifact org.processing:core:pom:1.0.7 from/to axis (http://people.apache.org/repo/m1-ibiblio-rsync-repository/org.apache.axis2/): connect timed out -> [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/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :opentripplanner-gui
我知道这与 core-1.0.7.jar 有关,但我无法绕过它
【问题讨论】:
-
你能从你的主机curl到people.apache.org/repo/m1-ibiblio-rsync-repository/…吗?
-
是的,curl 没有问题。
-
org.processing:core:pom在该存储库中不可用是第三方还是您本地的东西? -
他们可能会删除它。我正在尝试构建的版本是自定义版本,但基于旧版本的 OpenTripPlanner(opentripplanner.org)。我想知道是否可以下载 core-1.0.7.jar 并手动添加它,它可能会成功,但不确定在哪里添加它
-
问题似乎出在此处:` 无法从/向轴传输工件 org.processing:core:pom:1.0.7 (people.apache.org/repo/m1-ibiblio-rsync-repository/…):连接超时 -> [帮助 1 ]` 你在 settings.xml 中的配置看起来有问题。