maven 编译 Velocity 源码出错


从Velocity 的trunk分支http://svn.apache.org/repos/asf/velocity/engine/trunk拉下来的代码,用mvn install ,报错,编译结果如下:
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.apache.velocity:velocity-engine-parent:2.0.0-SNAPSHOT
(F:\velocity-trunk\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact org.apache.veloci
ty:velocity-master:pom:1-SNAPSHOT and 'parent.relativePath' points at wrong loca
l POM @ line 25, column 13 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/di...
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/di...
delException

编译信息里的[Help 1]的wiki也不存在,该怎么解决呢?

maven

DDD49 11 years, 8 months ago

试了下,删除主pom里的

   
  <parent>
  
<artifactId>velocity-master</artifactId>
<groupId>org.apache.velocity</groupId>
<version>1-SNAPSHOT</version>
</parent>

即可

老沙沙沙鱼 answered 11 years, 8 months ago

Your Answer