OpenTripPlanner入门教程错误

时间:2013-05-20 14:29:59

标签: maven gis geotools opentripplanner

我正在尝试在official tutorial之后安装OpenTripPlanner。 我正确地克隆了git存储库,然后我在Eclipse中导入项目,但它无法构建所有的包。其中一个错误是“导入org.geotools无法解析” 所以我尝试了Maven tutorial,但当我运行“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] ------------------------------------------------------------------------
谷歌搜索,我没有找到类似的东西,所以,这是什么问题?

1 个答案:

答案 0 :(得分:1)

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

尝试手动定义:

mvn install integration-test -DskipTests -Pinteractive -Dgeotools.version=9.1 -Dspring.version=3.1.1.RELEASE