-1
Helllo,的Maven - 生成越來越失敗
我想在MVN
mvn -X archetype:generate -DarchetypeGroupId=org.apache.servicemix.tooling -DarchetypeArtifactId=servicemix-cxf-code-first-osgi-bundle -DarchetypeVersion=2012.01.0.redhat-60024 -DgroupId=org.fusesource.example -DartifactId=cxf-basic -Dversion=1.0-SNAPSHOT
執行下面的命令執行此操作時,提示以下錯誤:
3626 [main] [ERROR] org.apache.maven.cli.MavenCli - Plugin org.apache.maven.plugins:maven-archetype-plugin:2.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-archetype-plugin:jar:2.4: Could not transfer artifact org.apache.maven.plugins:maven-archetype-plugin:pom:2.4 from/to redhat-techpreview-all-repository (http:// maven.repository.redhat.com/techpreview/all/): Access denied to: http: // maven.repository.redhat.com/techpreview/all/org/apache/maven/plugins/maven-archetype-plugin/2.4/maven-archetype-plugin-2.4.pom , ReasonPhrase:Forbidden. -> [Help 1]
Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.maven.plugins:maven-archetype-plugin:jar:2.4
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.apache.maven.plugins:maven-archetype-plugin:pom:2.4 from/to redhat-techpreview-all-repository (http:// maven.repository.redhat.com/techpreview/all/): Access denied to: http:// maven.repository.redhat.com/techpreview/all/org/apache/maven/plugins/maven-archetype-plugin/2.4/maven-archetype-plugin-2.4.pom , ReasonPhrase:Forbidden.
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact org.apache.maven.plugins:maven-archetype-plugin:pom:2.4 from/to redhat-techpreview-all-repository (http:// maven.repository.redhat.com/techpreview/all/): Access denied to: http:// maven.repository.redhat.com/techpreview/all/org/apache/maven/plugins/maven-archetype-plugin/2.4/maven-archetype-plugin-2.4.pom , ReasonPhrase:Forbidden.
起初,我認爲這是由於代理設置。但事實並非如此。我甚至用選項代替了代理-DproxySet=true -DproxyHost=10.142.125.36 -DproxyPort=8080
請問您是否可以幫助解決該問題?
感謝和問候 新手