我需要从maven下载一个依赖项“ proxy-vole”,它存在于“ https://artifacts.alfresco.com/nexus/content/groups/public”上
所以我在maven的setting.xml中提到了上述URL作为镜像,但是每次我从maven运行项目时,它都会尝试从不存在这种依赖关系的其他URL(镜像2)下载jar文件。而我得到错误。
我的setting.xml是:
<mirrors>
<mirror>
<id>maven.alfresco</id>
<mirrorOf>alfresco-public</mirrorOf>
<name>alfresco artifacts repository</name>
<url>https://artifacts.alfresco.com/nexus/content/groups/public</url>
</mirror>
<mirror>
<id>FTRDProxy_central</id>
<mirrorOf>central</mirrorOf>
<name>FTRD Maven Proxy mirroring central (maven 2) repository</name>
<url>url for mirror2</url>
</mirror>
<mirror>
<id>maven.apache</id>
<mirrorOf>maven2</mirrorOf>
<name>Apache Maven Proxy mirroring central (maven 2) repository</name>
<url>https://repo.maven.apache.org/maven2</url>
</mirror>