当pom已经在Maven Central时,Maven“不可解析的父POM”

时间:2014-08-11 07:55:22

标签: java maven parent-pom

我有一个开源项目(https://github.com/mikera/vectorz),它使用部署在Maven Central上的父pom(http://search.maven.org/#artifactdetails%7Cnet.mikera%7Cmikera-pom%7C0.2.0%7Cpom

但是我开始遇到一个奇怪的错误:

[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project net.mikera:vectorz:0.39.1-SNAPSHOT (C:\Users\Mike\git\vect
orz\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Could not find artifact net.mikera:mikera
-pom:pom:0.2.0 in clojars.org (http://clojars.org/repo) and 'parent.relativePath
' points at wrong local POM @ line 9, column 10 -> [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

可能导致这种情况的原因是什么?请注意:

  • 我99%确定父pom已在中央
  • 成功发布
  • clojars repo甚至不应该用于构建
  • 我在Windows上运行(虽然问题似乎也影响了Linux上的其他人)
  • 我之前有过像这样的项目,但是我最近升级到了Maven 3.2.2 - 这会导致这个错误吗?

P.S。我尝试检查我的本地.m2存储库,它包含的所有文件都是.lastUpdated文件,其中包含以下内容:

#NOTE: This is an Aether internal implementation file, its format can be changed without prior notice.
#Mon Aug 11 13:23:30 SGT 2014
http\://repo.maven.apache.org/maven2/.lastUpdated=1407734610196
http\://clojars.org/repo/.lastUpdated=1407734609627
http\://clojars.org/repo/.error=
http\://repo.maven.apache.org/maven2/.error=

有任何想法如何解决这个问题?

0 个答案:

没有答案