Hi,

If I understand correctly (from the log you sent) you are trying to deploy
from Hudson using the Hudson deploy bundle plugin to a nexus server,
If this is the case I think you addressed your question at the wrong forum.

However Artifactory has an extremely powerful integration with Hudson using
the Hudson Artifactory plugin, The plugin works best with Artifactory but
can also work with other servers.
To learn more you can watch this screen
cast<http://www.youtube.com/user/artifrog#p/u/3/Pshw28_SZVk>and read
more up to date info at these wikis:
http://wiki.jfrog.org/confluence/display/RTD/Hudson+Artifactory+Plugin and
http://wiki.jfrog.org/confluence/display/RTF/Build+Integration

HTH,

Eli
The Artifactory Team

On Wed, Jan 12, 2011 at 7:00 PM, linzhang <[email protected]> wrote:

>
> 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
>
------------------------------------------------------------------------------
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