I have the same problem, and have the setting as follows. I got this error,
can not find out why, could you please help me on this?

<distributionManagement>
        <repository>
            <id>releases</id>
            <name>deployment</name>
            
<url>http://192.168.0.20:8081/nexus/content/repositories/releases</url>
        </repository>
        <snapshotRepository>
            <id>snapshots</id>
            <name>Snapshots</name>
           
<url>http://192.168.0.20:8081/nexus/content/repositories/snapshots</url>
        </snapshotRepository>
 </distributionManagement>

-----
                <server>
                        <id>releases</id>
                        <username>deployment</username>
                        <password>deployment123</password>
                </server>
                <server>
                        <id>snapshots</id>
                        <username>deployment</username>
                        <password>deployment123</password>
                </server>
                <server>
                        <id>thirdparty</id>
                        <username>deployment</username>
                        <password>deployment123</password>
                </server>

==============================================
Deploying the main artifact all-1.0-SNAPSHOT.pom
[INFO ] Retrieving previous build number from 
[INFO ] repository metadata for: 'snapshot com.reverb:all:1.0-SNAPSHOT'
could not be found on repository: , so will be created
org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error
deploying artifact: Failed to transfer file:
http://192.168.0.20:8081/nexus/content/repositories/releases/com/reverb/all/1.0-SNAPSHOT/all-1.0-SNAPSHOT.pom.
Return code is: 401
        at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:94)
        at
hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:119)
        at
hudson.maven.reporters.MavenAggregatedArtifactRecord.deploy(MavenAggregatedArtifactRecord.java:79)
        at
hudson.maven.reporters.MavenAbstractArtifactRecord$1.perform(MavenAbstractArtifactRecord.java:214)
        at hudson.model.TaskThread.run(TaskThread.java:126)
Caused by: org.apache.maven.wagon.TransferFailedException: Failed to
transfer file:
http://192.168.0.20:8081/nexus/content/repositories/releases/com/reverb/all/1.0-SNAPSHOT/all-1.0-SNAPSHOT.pom.
Return code is: 401
        at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.put(LightweightHttpWagon.java:172)
        at
org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:244)
        at
org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:160)
        at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:80)
        ... 4 more

-- 
View this message in context: 
http://forums.jfrog.org/mvn-deploy-on-Artifactory-gives-File-transfer-error-Return-Code-401-tp4943810p5915316.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to