[JIRA] (JENKINS-12843) Failure with maven 3 jobs and shade plugin

2013-02-19 Thread ever...@free.fr (JIRA)














































evernat
 commented on  JENKINS-12843


Failure with maven 3 jobs and shade plugin















Is it reproduced with a recent Jenkins version?



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[JIRA] (JENKINS-12843) Failure with maven 3 jobs and shade plugin

2012-02-21 Thread henri.go...@gmail.com (JIRA)
Henri Gomez created JENKINS-12843:
-

 Summary: Failure with maven 3 jobs and shade plugin
 Key: JENKINS-12843
 URL: https://issues.jenkins-ci.org/browse/JENKINS-12843
 Project: Jenkins
  Issue Type: Bug
  Components: maven2
Affects Versions: current
 Environment: Jenkins 1.451, Sun/Oracle Java 1.6.0-31 
Reporter: Henri Gomez
 Attachments: company.zip, parent.zip, product.zip, settings-buggy.xml

A Maven project fail on Jenkins (in Maven job) whereas it works with Maven 
3.0.3 in console or Maven 3.0.3 Job in freestyle.
This project use Maven Shade plugin and failed with Shade 1.3.2 and 1.5.

There is : 

* a company pom (version 2)
* a parent pom (1.0.0-SNAPSHOT) 
* a product pom (0.0.1-SNAPSHOT)

Artifacts stored on Artifactory OSS 2.5.0 :

* company pom
* parent pom

settings.xml attached :

If I use local repository for each job or if I remove org.mycorp artifacts from 
shared repo before building product, build fail with :

{code}
[DEBUG]   (f) outputDirectory =
/Users/henri/Documents/jenkins/data/jobs/test-product/workspace/target
[DEBUG]   (f) project = MavenProject:
org.mycorp:product:0.0.1-SNAPSHOT @
/Users/henri/Documents/jenkins/data/jobs/test-product/workspace/pom.xml
[DEBUG]   (f) promoteTransitiveDependencies = false
[DEBUG]   (f) remoteArtifactRepositories = [   id: central
 url: http://staging-darwin-ci.mycorp.org:12365/libs-release
  layout: default
snapshots: [enabled = false, update = daily]
 releases: [enabled = true, update = daily]
,id: snapshots
 url: http://staging-darwin-ci.mycorp.org:12365/libs-snapshot
  layout: default
snapshots: [enabled = true, update = daily]
 releases: [enabled = true, update = daily]
]
[DEBUG]   (f) shadedArtifactAttached = false
[DEBUG]   (f) shadedArtifactId = product
[DEBUG]   (f) shadedClassifierName = shaded
[DEBUG] -- end configuration --
[INFO] Including net.sourceforge.javacsv:javacsv:jar:2.0 in the shaded jar.
[INFO] Replacing original artifact with shaded artifact.
[INFO] Replacing
/Users/henri/Documents/jenkins/data/jobs/test-product/workspace/target/product-0.0.1-SNAPSHOT.jar
with 
/Users/henri/Documents/jenkins/data/jobs/test-product/workspace/target/product-0.0.1-SNAPSHOT-shaded.jar
[DEBUG] Could not find metadata
org.mycorp:parent:1.0.0-SNAPSHOT/maven-metadata.xml in local
(/Users/henri/.m2/repository)
[DEBUG] Verifying availability of
/Users/henri/.m2/repository/org/mycorp/parent/1.0.0-SNAPSHOT/parent-1.0.0-SNAPSHOT.pom
from [central (http://repo1.maven.org/maven2, releases)]
[JENKINS] Archiving
/Users/henri/Documents/jenkins/data/jobs/test-product/workspace/pom.xml
to 
/Users/henri/Documents/jenkins/data/jobs/test-product/modules/org.mycorp$product/builds/2012-02-21_11-00-44/archive/org.mycorp/product/0.0.1-SNAPSHOT/product-0.0.1-SNAPSHOT.pom
[JENKINS] Archiving
/Users/henri/Documents/jenkins/data/jobs/test-product/workspace/target/product-0.0.1-SNAPSHOT.jar
to 
/Users/henri/Documents/jenkins/data/jobs/test-product/modules/org.mycorp$product/builds/2012-02-21_11-00-44/archive/org.mycorp/product/0.0.1-SNAPSHOT/product-0.0.1-SNAPSHOT.jar
[DEBUG] Could not find metadata
org.mycorp:parent:1.0.0-SNAPSHOT/maven-metadata.xml in local
(/Users/henri/.m2/repository)
[DEBUG] Intercepted metadata downloading event: METADATA_DOWNLOADING
org.mycorp:parent:1.0.0-SNAPSHOT/maven-metadata.xml @ snapshots
(http://staging-darwin-ci.mycorp.org:12365/libs-snapshot,
releases+snapshots)
[DEBUG] Enforcing repository URL: null for event: METADATA_DOWNLOADING
org.mycorp:parent:1.0.0-SNAPSHOT/maven-metadata.xml @ snapshots
(http://staging-darwin-ci.mycorp.org:12365/libs-snapshot,
releases+snapshots)
[DEBUG] Using connector WagonRepositoryConnector with priority 0 for
http://staging-darwin-ci.mycorp.org:12365/libs-snapshot
Downloading: 
http://staging-darwin-ci.mycorp.org:12365/libs-snapshot/org/mycorp/parent/1.0.0-SNAPSHOT/maven-metadata.xml
Downloaded: 
http://staging-darwin-ci.mycorp.org:12365/libs-snapshot/org/mycorp/parent/1.0.0-SNAPSHOT/maven-metadata.xml
(572 B at 37.2 KB/sec)
[DEBUG] Reading resolution tracking file
/Users/henri/.m2/repository/org/mycorp/parent/1.0.0-SNAPSHOT/resolver-status.properties
[DEBUG] Writing resolution tracking file
/Users/henri/.m2/repository/org/mycorp/parent/1.0.0-SNAPSHOT/resolver-status.properties
[DEBUG] Extension realms for project
org.mycorp:parent:pom:1.0.0-SNAPSHOT: (none)
[DEBUG] Looking up lifecyle mappings for packaging pom from
ClassRealm[plexus.core, parent: null]
[DEBUG] Extension realms for project org.mycorp:company:pom:2: (none)
[DEBUG] Looking up lifecyle mappings for packaging pom from
ClassRealm[plexus.core, parent: null]
[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time: 5.750s
[INFO] Finished at: Tue Feb 21 

[JIRA] (JENKINS-12843) Failure with maven 3 jobs and shade plugin

2012-02-21 Thread henri.go...@gmail.com (JIRA)

 [ 
https://issues.jenkins-ci.org/browse/JENKINS-12843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Henri Gomez updated JENKINS-12843:
--

Description: 
A Maven project fail on Jenkins (in Maven job) whereas it works with Maven 
3.0.3 in console or Maven 3.0.3 Job in freestyle.
This project use Maven Shade plugin and failed with Shade 1.3.2 and 1.5.

Similar to Shade Plugin error : https://jira.codehaus.org/browse/MSHADE-103

There is : 

* a company pom (version 2)
* a parent pom (1.0.0-SNAPSHOT) 
* a product pom (0.0.1-SNAPSHOT)

Artifacts stored on Artifactory OSS 2.5.0 :

* company pom
* parent pom

settings.xml attached :

If I use local repository for each job or if I remove org.mycorp artifacts from 
shared repo before building product, build fail with :

{code}
[DEBUG]   (f) outputDirectory =
/Users/henri/Documents/jenkins/data/jobs/test-product/workspace/target
[DEBUG]   (f) project = MavenProject:
org.mycorp:product:0.0.1-SNAPSHOT @
/Users/henri/Documents/jenkins/data/jobs/test-product/workspace/pom.xml
[DEBUG]   (f) promoteTransitiveDependencies = false
[DEBUG]   (f) remoteArtifactRepositories = [   id: central
 url: http://staging-darwin-ci.mycorp.org:12365/libs-release
  layout: default
snapshots: [enabled = false, update = daily]
 releases: [enabled = true, update = daily]
,id: snapshots
 url: http://staging-darwin-ci.mycorp.org:12365/libs-snapshot
  layout: default
snapshots: [enabled = true, update = daily]
 releases: [enabled = true, update = daily]
]
[DEBUG]   (f) shadedArtifactAttached = false
[DEBUG]   (f) shadedArtifactId = product
[DEBUG]   (f) shadedClassifierName = shaded
[DEBUG] -- end configuration --
[INFO] Including net.sourceforge.javacsv:javacsv:jar:2.0 in the shaded jar.
[INFO] Replacing original artifact with shaded artifact.
[INFO] Replacing
/Users/henri/Documents/jenkins/data/jobs/test-product/workspace/target/product-0.0.1-SNAPSHOT.jar
with 
/Users/henri/Documents/jenkins/data/jobs/test-product/workspace/target/product-0.0.1-SNAPSHOT-shaded.jar
[DEBUG] Could not find metadata
org.mycorp:parent:1.0.0-SNAPSHOT/maven-metadata.xml in local
(/Users/henri/.m2/repository)
[DEBUG] Verifying availability of
/Users/henri/.m2/repository/org/mycorp/parent/1.0.0-SNAPSHOT/parent-1.0.0-SNAPSHOT.pom
from [central (http://repo1.maven.org/maven2, releases)]
[JENKINS] Archiving
/Users/henri/Documents/jenkins/data/jobs/test-product/workspace/pom.xml
to 
/Users/henri/Documents/jenkins/data/jobs/test-product/modules/org.mycorp$product/builds/2012-02-21_11-00-44/archive/org.mycorp/product/0.0.1-SNAPSHOT/product-0.0.1-SNAPSHOT.pom
[JENKINS] Archiving
/Users/henri/Documents/jenkins/data/jobs/test-product/workspace/target/product-0.0.1-SNAPSHOT.jar
to 
/Users/henri/Documents/jenkins/data/jobs/test-product/modules/org.mycorp$product/builds/2012-02-21_11-00-44/archive/org.mycorp/product/0.0.1-SNAPSHOT/product-0.0.1-SNAPSHOT.jar
[DEBUG] Could not find metadata
org.mycorp:parent:1.0.0-SNAPSHOT/maven-metadata.xml in local
(/Users/henri/.m2/repository)
[DEBUG] Intercepted metadata downloading event: METADATA_DOWNLOADING
org.mycorp:parent:1.0.0-SNAPSHOT/maven-metadata.xml @ snapshots
(http://staging-darwin-ci.mycorp.org:12365/libs-snapshot,
releases+snapshots)
[DEBUG] Enforcing repository URL: null for event: METADATA_DOWNLOADING
org.mycorp:parent:1.0.0-SNAPSHOT/maven-metadata.xml @ snapshots
(http://staging-darwin-ci.mycorp.org:12365/libs-snapshot,
releases+snapshots)
[DEBUG] Using connector WagonRepositoryConnector with priority 0 for
http://staging-darwin-ci.mycorp.org:12365/libs-snapshot
Downloading: 
http://staging-darwin-ci.mycorp.org:12365/libs-snapshot/org/mycorp/parent/1.0.0-SNAPSHOT/maven-metadata.xml
Downloaded: 
http://staging-darwin-ci.mycorp.org:12365/libs-snapshot/org/mycorp/parent/1.0.0-SNAPSHOT/maven-metadata.xml
(572 B at 37.2 KB/sec)
[DEBUG] Reading resolution tracking file
/Users/henri/.m2/repository/org/mycorp/parent/1.0.0-SNAPSHOT/resolver-status.properties
[DEBUG] Writing resolution tracking file
/Users/henri/.m2/repository/org/mycorp/parent/1.0.0-SNAPSHOT/resolver-status.properties
[DEBUG] Extension realms for project
org.mycorp:parent:pom:1.0.0-SNAPSHOT: (none)
[DEBUG] Looking up lifecyle mappings for packaging pom from
ClassRealm[plexus.core, parent: null]
[DEBUG] Extension realms for project org.mycorp:company:pom:2: (none)
[DEBUG] Looking up lifecyle mappings for packaging pom from
ClassRealm[plexus.core, parent: null]
[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time: 5.750s
[INFO] Finished at: Tue Feb 21 11:00:53 CET 2012
[INFO] Final Memory: 11M/81M
[INFO] 
[WARNING] The requested profile activateDarwinPlugin could not be
activated because it does not exist.