0

我正在尝试按照官方教程安装 OpenTripPlanner 。我已经正确克隆了 git 存储库,然后我在 Eclipse 中导入了项目,但它无法构建所有包。错误之一是“无法解析导入 org.geotools”所以我尝试了Maven 教程,但是当我运行“ mvn install integration-test -DskipTests -P interactive”时,我得到:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.geotools:library:pom:null

Reason: Cannot find parent: org.geotools:modules for project: org.geotools:library:pom:null for project org.geotools:library:pom:null


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Mon May 20 15:53:31 CEST 2013
[INFO] Final Memory: 44M/473M
[INFO] ------------------------------------------------------------------------

谷歌搜索,我没有找到类似的东西,所以,怎么回事?

4

1 回答 1

1

似乎 geotools.version (和其他)属性未在主 pom (https://github.com/openplans/OpenTripPlanner/blob/master/pom.xml)中设置。hudson builder 可能正在使用来自 settings.xml 的变量。

尝试手动定义它:

mvn install integration-test -DskipTests -Pinteractive -Dgeotools.version=9.1 -Dspring.version=3.1.1.RELEASE
于 2013-05-21T12:23:02.970 回答