2013-05-20 101 views
0

我试图安装OpenTripPlanner后面的official tutorial。 我已经正确地克隆了git存储库,然后在Eclipse中导入项目,但无法构建所有软件包。一个错误的是“进口org.geotools不能得到解决” 所以我tryed与Maven tutorial但是当我运行“mvn install integration-test -DskipTests -P interactive”我得到:OpenTripPlanner入门教程错误

[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] ------------------------------------------------------------------------ 

谷歌搜索,我还没有发现类似的事情,那么,怎么回事?

+0

是版本变量集? –

+0

@iant,是的,代码是一样的发布在Git存储库https://github.com/openplans/OpenTripPlanner/ 8.0-M4 Yuri

回答

1

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

尝试手动定义它:

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

如果是这样,请打开一个在github网站上的bug报告;) – ccancellieri

+0

它的工作原理!非常感谢!现在我打开github上的bug – Yuri