Created attachment 856364 [details] Maven deploy failure for provided version and success for version from Apache Description of problem: Trying to deploy a maven artifact with Fedora provided maven to nexus fails with a 401, although login credentials match. Mvn deploy process works with same maven version (3.0.5) downloaded from Apache or latest 3.1.1 from Apache. It looks like this error is still in the package: http://jira.codehaus.org/browse/MNG-3953 & http://jira.codehaus.org/browse/MNG-4469 Further evidence to proof that the upload is tried to be done without credentials is that the nexus log isn't showing anything for login attempts of the given user. Version-Release number of selected component (if applicable): maven-3.0.5-3.fc19.noarch How reproducible: execute mvn deploy for maven project hosted on secured nexus, with authentication credentials provided in settings.xml Steps to Reproduce: 1. Add authentication credentials to ~/.m2/settings.xml file 2. change into mvn project hosted on secured nexus 3. run mvn deploy Actual results: Deploy fails with 401 error Expected results: Deploy succeeds and maven artifacts are available. Additional info:
This looks like a syntax error in settings file at /etc/maven/settings.xml. Can you check if removing this file and reinstalling maven helps?
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Authentication works for me. Closing - there is insufficient information to reproduce the bug and the reporter didn't respond. Feel free to reopen if there is a working reproducer available.
I'm having the same problem here: I get a 401 using the stock pom.xml and appropriate settings.xml and settings-security.xml. I can make it work by adding the following section to our top-level pom.xml (in the build section): + <extensions> + <extension> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-http-lightweight</artifactId> + <version>1.0</version> + </extension> + </extensions> This was suggested here: https://jira.codehaus.org/browse/MNG-5525 I have not tried installing my own copy of Maven.