After disabling the password encryption in Artifactory (Admin->Security->General) it works.
-----Original Message-----
From: Villemos, Gert [mailto:
[hidden email]]
Sent: Wednesday, November 04, 2009 2:27 PM
To:
[hidden email]
Subject: Failure to deploy artefact to artifactory - code 401
We are building a Maven2 multi-module project using Hudson v1.323. When using the 'deploy' goal, the build fails with the exception;
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error deploying artifact: Failed to transfer file:
http://10.48.29.168:8888/artifactory-2.0.5/internal-repository/esa/dops/game/game/1/game-1.pom. Return code is: 401 [INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying
artifact: Failed to transfer file:
http://10.48.29.168:8888/artifactory-2.0.5/internal-repository/esa/dops/game/game/1/game-1.pom. Return code is: 401
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:703)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:540)
...
It seems Hudson / maven2 are not authorized to deploy artefacts to the repository. We have updated the local Hudson .m2/settings.xml file to contain;
<servers>
<server>
<id>internal-repository</id>
<username>[username]</username>
<password>[password]</password>
</server>
</servers>
<repositories>
<repository>
<id>internal-repository</id>
<url>http://[IP]/artifactory-2.0.5/internal-repository/</url>
</repository>
</repositories>
URL and user / password are correct. What are we doing wrong?
Thanks,
Gert.
Please help Logica to respect the environment by not printing this email / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. / Por favor ajude a Logica a respeitar o ambiente nao imprimindo este correio electronico.
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]
Please help Logica to respect the environment by not printing this email / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. / Por favor ajude a Logica a respeitar o ambiente nao imprimindo este correio electronico.
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]