Hi

Can anyone tell me if I can change the deploy configuration to prevent
this....

In a multi-module project I am getting problems deploying multiple release
artifacts (each module builds 3 artifacts for deployment:  .jar,
-sources.jar and -javadoc.jar )

running> mvn release:prepare release:perform on the parent project...

everything proceeds fine until the final repository deployment
(the artifacts build ok in target/checkout/_module_/target)

the main .jar deploys ok, 
then the -sources.jar deploys ok,
but then an attempt is made to deploy the -sources.jar a second time:
causing a build failure 

[INFO] [deploy:deploy {execution: default-deploy}]
Uploading:
http://***:8080/archiva/repository/internal//org/resspecies/resspecies-model/0.13/resspecies-model-0.13.jar
23K uploaded  (resspecies-model-0.13.jar)
[INFO] Uploading project information for resspecies-model 0.13
[INFO] Retrieving previous metadata from archiva.internal
[INFO] Uploading repository metadata for: 'artifact
org.resspecies:resspecies-model'
Uploading:
http://***:8080/archiva/repository/internal//org/resspecies/resspecies-model/0.13/resspecies-model-0.13-sources.jar
17K uploaded  (resspecies-model-0.13-sources.jar)
Uploading:
http://***:8080/archiva/repository/internal//org/resspecies/resspecies-model/0.13/resspecies-model-0.13-sources.jar
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error deploying artifact: Failed to transfer file:
http://***:8080/archiva/repository/internal/org/resspecies/resspecies-model/0.13/resspecies-model-0.13-sources.jar.
Return code is: 409
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/release-perform-deploy-goal-fails-with-duplicate-deployment-tp3257211p3257211.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to