I just installed Nexus 2.2-01 behind a corporate proxy. Maven works when I go straight to the central repo, but when I set up <mirror> in %M2_HOME%\conf\settings.xml , I can't do simple mvn archetype:create or mvn clean .
From the Nexus Web user interface, you can:
- "Remote Review" in the center.
- Index Review
- and on the "Artifact Information" tab where it says "(Not Locally Cached)" I can load banners
- and then view the .jar and .jar.sha1 files under "http://127.0.0.1:8081/nexus/content/groups/public/" and "\ nexus \ sonatype-work \ nexus \ storage \ central"
... but for some reason it is not loading .pom files
Nexus 2.2 came with a proxy repository for centralized pre-configuration, and I can view the index and upload files manually from the web interface - so why doesn't this work with Maven?
I configured Nexus with the default HTTP proxy settings using authentication, but still get errors such as:
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.4.1 from/to nexus (http://myserver:8081/nexus/content/groups/public): Failed to transfer file: http://myserver:8081/nexus/content/groups/public/ org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom. Return code is: 504, ReasonPhrase:Gateway Timeout. -> [Help 1]
and
[INFO] Scanning for projects... Downloading: http://myserver:8081/nexus/content/groups/public/ org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.4.1: Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1 Downloading: http://myserver:8081/nexus/content/groups/public/ org/codehaus/mojo/maven-metadata.xml Downloading: http://myserver:8081/nexus/content/groups/public/ org/apache/maven/plugins/maven-metadata.xml [WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to nexus (http://myserver:8081/nexus/content/groups/public): Failed to transfer file: http://myserver:8081/nexus/content/groups/public/org/ apache/maven/plugins/maven-metadata.xml. Return code is: 504, ReasonPhrase:Gateway Timeout.
maven installation proxy nexus configuration
Nicholas albion
source share