基本信息: 我在Eclipse Juno中使用嵌入式Maven 3.0.4(帶有JBoss工具)。Maven不能終身下載maven-plugin-descriptor-2.0.6
的settings.xml(直接從community.jboss.org/wiki/MavenGettingStarted-Users):
<profile>
<id>jboss-public-repository</id>
<repositories>
<repository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Maven Repository Group</name>
<url>https://repository.jboss.org/nexus/content/groups/public-jboss</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Maven Repository Group</name>
<url>https://repository.jboss.org/nexus/content/groups/public-jboss</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
<activeProfiles>
<activeProfile>jboss-public-repository</activeProfile>
<activeProfile>jboss-deprecated-repository</activeProfile>
</activeProfiles>
注:我想還repository.jboss.org/nexus/content/groups/jboss和存儲庫.jboss.org/nexus/content/groups/public /具有相同的結果。
我做了什麼: 我使用工件org.jboss.spec.archetypes jboss-javaee6-webapp從scrath創建了Maven項目。系統嘗試下載回購協議。一切都下載細但有兩個多金屬氧酸鹽:
maven-plugin-descriptor-2.0.6.pom
plexus-2.0.2.pom
我將重點放在了Maven插件描述符,但叢表現相同。
錯誤:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources (default-resources) on project example:
Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources failed:
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved:
Failed to collect dependencies for org.apache.maven.plugins:maven-resources-plugin:jar:2.5():
Failed to read artifact descriptor for org.apache.maven:maven-plugin-descriptor:jar:2.0.6:
Could not transfer artifact org.apache.maven:maven-plugin-descriptor:pom:2.0.6 from/to central (repo.maven.apache.org/maven2):
No response received after 60000 -> [Help 1]
請求的文件不存在於所有repository.jboss.org/nexus/content/groups/public-jboss/org/apache/maven/maven-plugin-descriptor/2.0 .6 /(返回404)。 我試圖直接在瀏覽器中訪問repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-descriptor/2.0.6/。文件maven-plugin-descriptor-2.0.6.pom存在,但點擊後認爲...認爲...認爲... aaand連接重置。請注意,許多其他POM從repo.maven.apache.org下載沒有問題。由於某種原因Just Do not Work(TM)只有這個文件。
其他: 我不是後面的代理。我DID使用「delete whatever.lastUpdated」技巧。即使刪除整個回購強制再次下載一切。當然沒有工作。
任何想法?或者,也許我在吠叫錯誤的樹,並且其他一些存儲庫必須在settings.xml中設置?我有印象,maven試圖下載過舊的版本...