我有一个开源项目(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
可能导致这种情况的原因是什么?请注意:
clojars
repo甚至不应该用于构建 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=
有任何想法如何解决这个问题?