0
我想優先回購下載依賴關係的順序。這樣,首先,我想我所有的依賴將從默認的maven回購http://repo1.maven.org/maven2
下載,然後如果需要插件沒有找到,回落到其他回購找到它說https://repo.adobe.com/nexus/content/groups/public/
。我正在使用maven2.2.1。我已經在我的項目的POMMaven回購訂單
<distributionManagement>
<repository>
<id>adobe-public-releases</id>
<name>Adobe Public Repository</name>
<url>http://repo.adobe.com/nexus/content/groups/public</url>
<layout>default</layout>
</repository>
</distributionManagement>
添加以下代碼,但仍收到以下錯誤嘗試:
[DEBUG] Connecting to repository: 'central' with url: 'http://repo1.maven.org/maven2'.
Downloading: http://repo1.maven.org/maven2/org/apache/abdera/abdera-extensions-opensearch/1.0-R783018/abdera-extensions-opensearch-1.0-R783018.pom
[DEBUG] Unable to locate resource in repository
org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate resource in repository
我的settings.xml文件是一樣的默認設置。
感謝,
確實使用Maven 2.X? Maven 2是[End of Life](http://maven.apache.org/maven-2.x-eol.html),所以請儘快升級到Maven 3.5.0(最新版本)... – khmarbaise