所有的行家镜子都一样吗?

时间:2019-07-08 02:17:29

标签: maven maven-3 janusgraph

使用mvn clean install构建janusgraph示例时出现以下错误

[ERROR]     Non-resolvable parent POM for 
org.janusgraph:janusgraph-examples:[unknown-version]: 
Could not find artifact org.janusgraph:janusgraph:pom:0.4.0 in alimaven
 (http://maven.aliyun.com/nexus/content/groups/public/) 
and 'parent.relativePath' points at wrong local POM 
@ line 3, column 13 -> [Help 2]

根据错误,我打开了我的setting.xml的Maven,镜像配置为

<mirrors>
    <mirror>
      <id>alimaven</id>
      <name>aliyun maven</name>
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
      <mirrorOf>central</mirrorOf>
    </mirror>
<mirrors>

它说它在这个镜子中找不到,所以如果我换另一个镜子,它会起作用吗?所有镜像是否都相同(网络速度除外)?

1 个答案:

答案 0 :(得分:2)

不,有大量不同内容的Maven存储库。不过,通常情况下,您会从MavenCentral提取大部分内容:

https://repo1.maven.org/maven2/