Nous utilisons le plugin maven release sur hudson et essayons d'automatiser le processus de release. La libération: préparer fonctionne bien. Lorsque nous essayons de faire la release: perform, elle échoue car elle essaie de télécharger deux fois un artefact source dans le référentiel.Le plugin Maven release échoue: les artefacts source se déploient deux fois
choses que j'ai essayé,
- enlever le profil qui inclut le plug-in source maven de la super pom (ne fonctionne pas)
- spécifiant les objectifs sur hudson pour la libération comme -P! Attachement source release: préparer la version: perform. Ce que je pensais exclut l'exécution du plugin source. (n'a pas fonctionné).
- essayé de spécifier la phase de plug-in à une phase inexistante dans le super pom. (N'a pas fonctionné)
- essayé de spécifier la configuration du plugin, pourReleaseProfile comme faux. (devinez quoi ?? ne fonctionnait pas trop)
Il crache toujours cette erreur.
[INFO] [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
[INFO] [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
[INFO] [DEBUG] Checking for pre-existing User-Agent configuration.
[INFO] [DEBUG] Adding User-Agent configuration.
[INFO] [DEBUG] not adding permissions to wagon connection
[INFO] Uploading: http://xx.xx.xx.xx:8081/nexus/content/repositories/releases//com/yyy/xxx/hhh/hhh-hhh/1.9.40/hhh-hhh-1.9.40-sources.jar
[INFO] 57K uploaded (xxx-xxx-1.9.40-sources.jar)
[INFO] [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
[INFO] [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
[INFO] [DEBUG] Checking for pre-existing User-Agent configuration.
[INFO] [DEBUG] Adding User-Agent configuration.
[INFO] [DEBUG] not adding permissions to wagon connection
[INFO] Uploading: http://xx.xxx.xx.xx:8081/nexus/content/repositories/releases//com/xxx/xxxx/xxx/xxx-xxx/1.9.40/xxx-xxx-1.9.40-sources.jar
[INFO] [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] BUILD ERROR
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Error deploying artifact: Authorization failed: Access denied to: http://xx.xxx.xx.xx:8081/nexus/content/repositories/releases/com/xxx/xxx/xxx/xxx-config/1.9.40/xxx-xxx-1.9.40-sources.jar
Toute aide concernant ceci sera vraiment appréciée.
Sujet pour voter: http://jira.codehaus.org/browse/MSOURCES-8 – Vadzim