我正在尝试按照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] ------------------------------------------------------------------------在谷歌上,我没有找到任何类似的东西,那么,有什么问题吗?
发布于 2013-05-21 20:23:03
似乎没有在主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.RELEASEhttps://stackoverflow.com/questions/16651763
复制相似问题