我有一个开源项目(https://github.com/mikera/vectorz),它使用部署在 Maven 中心(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 已在 Central 上成功发布
clojars
构建甚至不需要 repo- 我在 Windows 上运行(尽管这个问题似乎也影响了 Linux 上的其他人)
- 我以前有过这样的项目,但是我最近升级到了 Maven 3.2.2——这会导致这个错误吗?
PS我尝试检查我的本地.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=
任何想法如何解决这个问题?