maven-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-trunkpom.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/display/MAVEN/ProjectBuildin
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableMo
delException
编译信息里的[Help 1]的wiki也不存在,该怎么解决呢?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看这个错误:The project org.apache.velocity:velocity-engine-parent:2.0.0-SNAPSHOT(F:velocity-trunkpom.xml) has 1 error,你将velocity-engine-parent也check下来。
如果你有eclipse,最好下载m2eclipse插件,这样在install之前能看到pom的错误。
试了下,删除主pom里的
<parent>
<artifactId>velocity-master</artifactId>
<groupId>org.apache.velocity</groupId>
<version>1-SNAPSHOT</version>
</parent>
即可