所有maven镜像都一样吗?
Are all maven mirrors the same?
我在使用 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,镜像conf是
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirrors>
说在这个镜像里找不到,请问换个镜像可以吗?所有的镜像都一样吗(网速除外)?
不,有大量不同内容的不同 Maven 存储库。不过,通常您会从 MavenCentral 获取大部分内容:
我在使用 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,镜像conf是
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirrors>
说在这个镜像里找不到,请问换个镜像可以吗?所有的镜像都一样吗(网速除外)?
不,有大量不同内容的不同 Maven 存储库。不过,通常您会从 MavenCentral 获取大部分内容: