[hibernate-issues] [Hibernate-JIRA] Commented: (HV-396) Build for hibernate-validator module fails using Maven 3 due to problem with shade plugin
Hardy Ferentschik (JIRA)
noreply at atlassian.com
Wed Nov 17 06:43:13 EST 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HV-396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=39131#action_39131 ]
Hardy Ferentschik commented on HV-396:
--------------------------------------
Some more outpur using the _-X_ option:
{noformat}
[INFO] --- maven-shade-plugin:1.4:shade (default) @ hibernate-validator ---
[DEBUG] org.apache.maven.plugins:maven-shade-plugin:jar:1.4:
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-model:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-project:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-settings:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-profile:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:compile
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG] junit:junit:jar:3.8.1:compile
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.5:compile
[DEBUG] asm:asm:jar:3.2:compile
[DEBUG] asm:asm-commons:jar:3.2:compile
[DEBUG] asm:asm-tree:jar:3.2:compile
[DEBUG] org.jdom:jdom:jar:1.1:compile
[DEBUG] org.apache.maven.shared:maven-dependency-tree:jar:1.1:compile
[DEBUG] org.vafer:jdependency:jar:0.6:compile
[DEBUG] org.apache.commons:commons-io:jar:1.3.2:compile
[DEBUG] asm:asm-analysis:jar:3.2:compile
[DEBUG] asm:asm-util:jar:3.2:compile
[DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-shade-plugin:1.4
[DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-shade-plugin:1.4
[DEBUG] Included: org.apache.maven.plugins:maven-shade-plugin:jar:1.4
[DEBUG] Included: junit:junit:jar:3.8.1
[DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.5.5
[DEBUG] Included: asm:asm:jar:3.2
[DEBUG] Included: asm:asm-commons:jar:3.2
[DEBUG] Included: asm:asm-tree:jar:3.2
[DEBUG] Included: org.jdom:jdom:jar:1.1
[DEBUG] Included: org.apache.maven.shared:maven-dependency-tree:jar:1.1
[DEBUG] Included: org.vafer:jdependency:jar:0.6
[DEBUG] Included: org.apache.commons:commons-io:jar:1.3.2
[DEBUG] Included: asm:asm-analysis:jar:3.2
[DEBUG] Included: asm:asm-util:jar:3.2
[DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-model:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-project:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-settings:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-profile:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-artifact:jar:2.0.6
[DEBUG] Excluded: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
[DEBUG] Excluded: classworlds:classworlds:jar:1.1-alpha-2
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-shade-plugin:1.4:shade from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-shade-plugin:1.4, parent: ClassRealm[project>org.hibernate:hibernate-validator:4.2.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-shade-plugin:1.4:shade' with basic configurator -->
[DEBUG] (f) includes = [com.googlecode.jtype:jtype]
[DEBUG] (f) artifactSet = org.apache.maven.plugins.shade.mojo.ArtifactSet at 77a6686
[DEBUG] (f) createDependencyReducedPom = true
[DEBUG] (f) createSourcesJar = false
[DEBUG] (f) keepDependenciesWithProvidedScope = false
[DEBUG] (f) localRepository = id: local
url: file:///Users/hardy/tmp/m2/
layout: none
[DEBUG] (f) minimizeJar = false
[DEBUG] (f) outputDirectory = /Users/hardy/work/hibernate/git/validator/hibernate-validator/target
[DEBUG] (f) project = MavenProject: org.hibernate:hibernate-validator:4.2.0-SNAPSHOT @ /Users/hardy/work/hibernate/git/validator/hibernate-validator/pom.xml
[DEBUG] (f) promoteTransitiveDependencies = false
[DEBUG] (f) pattern = com.googlecode.jtype
[DEBUG] (f) shadedPattern = org.hibernate.validator.jtype
[DEBUG] (f) relocations = [org.apache.maven.plugins.shade.mojo.PackageRelocation at 530f243b]
[DEBUG] (f) remoteArtifactRepositories = [ id: jboss-public-repository-group
url: http://repository.jboss.org/nexus/content/groups/public/
layout: default
snapshots: [enabled => true, update => never]
releases: [enabled => true, update => never]
, id: central
url: http://repo1.maven.org/maven2
layout: default
snapshots: [enabled => false, update => daily]
releases: [enabled => true, update => daily]
]
[DEBUG] (f) shadedArtifactAttached = false
[DEBUG] (f) shadedArtifactId = hibernate-validator
[DEBUG] (f) shadedClassifierName = shaded
[DEBUG] (f) transformers = [org.apache.maven.plugins.shade.resource.ComponentsXmlResourceTransformer at 4821e115]
[DEBUG] -- end configuration --
[INFO] Excluding javax.validation:validation-api:jar:1.0.0.GA from the shaded jar.
[INFO] Excluding org.slf4j:slf4j-api:jar:1.5.6 from the shaded jar.
[INFO] Including com.googlecode.jtype:jtype:jar:0.1.1 in the shaded jar.
[INFO] Excluding org.slf4j:slf4j-log4j12:jar:1.5.6 from the shaded jar.
[INFO] Excluding log4j:log4j:jar:1.2.14 from the shaded jar.
[INFO] Excluding org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final from the shaded jar.
[INFO] Excluding joda-time:joda-time:jar:1.6 from the shaded jar.
[DEBUG] Processing JAR /Users/hardy/work/hibernate/git/validator/hibernate-validator/target/hibernate-validator-4.2.0-SNAPSHOT.jar
[DEBUG] Processing JAR /Users/hardy/tmp/m2/com/googlecode/jtype/jtype/0.1.1/jtype-0.1.1.jar
[INFO] Replacing original artifact with shaded artifact.
[INFO] Replacing /Users/hardy/work/hibernate/git/validator/hibernate-validator/target/hibernate-validator-4.2.0-SNAPSHOT.jar with /Users/hardy/work/hibernate/git/validator/hibernate-validator/target/hibernate-validator-4.2.0-SNAPSHOT-shaded.jar
[DEBUG] org.apache.maven.wagon:wagon-webdav:jar:1.0-beta-2:
[DEBUG] slide:slide-webdavlib:jar:2.1:compile
[DEBUG] commons-httpclient:commons-httpclient:jar:2.0.2:compile
[DEBUG] jdom:jdom:jar:1.0:compile
[DEBUG] de.zeigermann.xml:xml-im-exporter:jar:1.1:compile
[DEBUG] commons-logging:commons-logging:jar:1.0.4:runtime
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:compile
[DEBUG] org.apache.felix:maven-bundle-plugin:jar:2.0.1:
[DEBUG] biz.aQute:bndlib:jar:0.0.357:compile
[DEBUG] net.sf.kxml:kxml2:jar:2.2.2:compile
[DEBUG] xmlpull:xmlpull:jar:1.1.3.1:compile
[DEBUG] org.apache.felix:org.osgi.core:jar:1.0.0:compile
[DEBUG] org.apache.felix:org.osgi.service.obr:jar:1.0.1:compile
[DEBUG] org.apache.maven:maven-project:jar:2.0.7:compile
[DEBUG] org.apache.maven:maven-profile:jar:2.0.7:compile
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.7:compile
[DEBUG] org.apache.maven:maven-model:jar:2.0.7:compile
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.7:compile
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.7:compile
[DEBUG] org.apache.maven:maven-archiver:jar:2.2:compile
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.7:compile
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.7:compile
[DEBUG] org.apache.maven:maven-settings:jar:2.0.7:compile
[DEBUG] org.apache.maven.shared:maven-dependency-tree:jar:1.2:compile
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:compile
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG] junit:junit:jar:3.8.1:compile
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2:compile
[DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.7:compile
[DEBUG] Verifying availability of /Users/hardy/tmp/m2/org/jboss/maven/plugins/maven-jdocbook-plugin/2.2.3/maven-jdocbook-plugin-2.2.3.pom from [central (http://repo1.maven.org/maven2, releases=true, snapshots=false, managed=false)]
[DEBUG] Skipped remote update check for org.jboss.maven.plugins:maven-jdocbook-plugin:pom:2.2.3, locally cached artifact up-to-date.
[DEBUG] Using connector WagonRepositoryConnector with priority 0 for http://repo1.maven.org/maven2
Downloading: http://repo1.maven.org/maven2/org/jboss/maven/plugins/maven-jdocbook-plugin/2.2.3/maven-jdocbook-plugin-2.2.3.pom
[DEBUG] Reading resolution tracking file /Users/hardy/tmp/m2/org/jboss/maven/plugins/maven-jdocbook-plugin/2.2.3/maven-jdocbook-plugin-2.2.3.pom.lastUpdated
[DEBUG] Writing resolution tracking file /Users/hardy/tmp/m2/org/jboss/maven/plugins/maven-jdocbook-plugin/2.2.3/maven-jdocbook-plugin-2.2.3.pom.lastUpdated
[WARNING] The POM for org.jboss.maven.plugins:maven-jdocbook-plugin:jar:2.2.3 is missing, no dependency information available
[DEBUG] org.jboss.maven.plugins:maven-jdocbook-plugin:jar:2.2.3:
[DEBUG] org.hibernate:hibernate-jdocbook-style:jdocbook-style:2.0.1:runtime
[DEBUG] org.jboss:jbossorg-jdocbook-style:jdocbook-style:1.1.0:runtime
[DEBUG] org.jboss:jbossorg-docbook-xslt:jar:1.1.0:runtime
[DEBUG] net.sf.docbook:docbook:jar:1.72.0:runtime
[DEBUG] xml-resolver:xml-resolver:jar:1.1:runtime
[DEBUG] saxon:saxon:jar:6.5.3:runtime
[DEBUG] org.jboss.docs:highlight:jar:1.0.0:runtime
[DEBUG] com.uwyn:jhighlight:jar:1.0:runtime
[DEBUG] javax.servlet:servlet-api:jar:2.3:runtime
[DEBUG] org.richfaces.docs:highlight:jar:3.1.4.GA:runtime
[DEBUG] org.jboss:jbossorg-fonts:jdocbook-style:1.0.0:runtime
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime
[DEBUG] Verifying availability of /Users/hardy/tmp/m2/org/jboss/maven/plugins/maven-jdocbook-plugin/2.2.3/maven-jdocbook-plugin-2.2.3.jar from [central (http://repo1.maven.org/maven2, releases=true, snapshots=false, managed=false)]
[DEBUG] Verifying availability of /Users/hardy/tmp/m2/org/hibernate/hibernate-jdocbook-style/2.0.1/hibernate-jdocbook-style-2.0.1.jdocbook-style from [central (http://repo1.maven.org/maven2, releases=true, snapshots=false, managed=false)]
[DEBUG] Verifying availability of /Users/hardy/tmp/m2/org/jboss/jbossorg-jdocbook-style/1.1.0/jbossorg-jdocbook-style-1.1.0.jdocbook-style from [central (http://repo1.maven.org/maven2, releases=true, snapshots=false, managed=false)]
[DEBUG] Verifying availability of /Users/hardy/tmp/m2/org/jboss/jbossorg-docbook-xslt/1.1.0/jbossorg-docbook-xslt-1.1.0.jar from [central (http://repo1.maven.org/maven2, releases=true, snapshots=false, managed=false)]
[DEBUG] Verifying availability of /Users/hardy/tmp/m2/org/jboss/docs/highlight/1.0.0/highlight-1.0.0.jar from [central (http://repo1.maven.org/maven2, releases=true, snapshots=false, managed=false)]
[DEBUG] Verifying availability of /Users/hardy/tmp/m2/org/richfaces/docs/highlight/3.1.4.GA/highlight-3.1.4.GA.jar from [central (http://repo1.maven.org/maven2, releases=true, snapshots=false, managed=false)]
[DEBUG] Verifying availability of /Users/hardy/tmp/m2/org/jboss/jbossorg-fonts/1.0.0/jbossorg-fonts-1.0.0.jdocbook-style from [central (http://repo1.maven.org/maven2, releases=true, snapshots=false, managed=false)]
[DEBUG] Skipped remote update check for org.jboss.maven.plugins:maven-jdocbook-plugin:jar:2.2.3, locally cached artifact up-to-date.
[DEBUG] Skipped remote update check for org.hibernate:hibernate-jdocbook-style:jdocbook-style:2.0.1, locally cached artifact up-to-date.
[DEBUG] Skipped remote update check for org.jboss:jbossorg-jdocbook-style:jdocbook-style:1.1.0, locally cached artifact up-to-date.
[DEBUG] Skipped remote update check for org.jboss:jbossorg-docbook-xslt:jar:1.1.0, locally cached artifact up-to-date.
[DEBUG] Skipped remote update check for org.jboss.docs:highlight:jar:1.0.0, locally cached artifact up-to-date.
[DEBUG] Skipped remote update check for org.richfaces.docs:highlight:jar:3.1.4.GA, locally cached artifact up-to-date.
[DEBUG] Skipped remote update check for org.jboss:jbossorg-fonts:jdocbook-style:1.0.0, locally cached artifact up-to-date.
[DEBUG] Using connector WagonRepositoryConnector with priority 0 for http://repo1.maven.org/maven2
Downloading: http://repo1.maven.org/maven2/org/jboss/maven/plugins/maven-jdocbook-plugin/2.2.3/maven-jdocbook-plugin-2.2.3.jar
Downloading: http://repo1.maven.org/maven2/org/hibernate/hibernate-jdocbook-style/2.0.1/hibernate-jdocbook-style-2.0.1.jdocbook-style
Downloading: http://repo1.maven.org/maven2/org/jboss/docs/highlight/1.0.0/highlight-1.0.0.jar
Downloading: http://repo1.maven.org/maven2/org/jboss/jbossorg-jdocbook-style/1.1.0/jbossorg-jdocbook-style-1.1.0.jdocbook-style
Downloading: http://repo1.maven.org/maven2/org/jboss/jbossorg-docbook-xslt/1.1.0/jbossorg-docbook-xslt-1.1.0.jar
Downloading: http://repo1.maven.org/maven2/org/richfaces/docs/highlight/3.1.4.GA/highlight-3.1.4.GA.jar
Downloading: http://repo1.maven.org/maven2/org/jboss/jbossorg-fonts/1.0.0/jbossorg-fonts-1.0.0.jdocbook-style
{noformat}
> Build for hibernate-validator module fails using Maven 3 due to problem with shade plugin
> -----------------------------------------------------------------------------------------
>
> Key: HV-396
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-396
> Project: Hibernate Validator
> Issue Type: Bug
> Components: build
> Affects Versions: 4.1.0.Final
> Reporter: Hardy Ferentschik
> Assignee: Hardy Ferentschik
> Fix For: 4.2.0.Beta1
>
>
> {noformat}
> [INFO] Replacing /Users/hardy/work/hibernate/git/validator/hibernate-validator/target/hibernate-validator-4.2.0-SNAPSHOT.jar with /Users/hardy/work/hibernate/git/validator/hibernate-validator/target/hibernate-validator-4.2.0-SNAPSHOT-shaded.jar
> Downloading: http://repo1.maven.org/maven2/org/jboss/maven/plugins/maven-jdocbook-plugin/2.2.3/maven-jdocbook-plugin-2.2.3.pom
> [WARNING] The POM for org.jboss.maven.plugins:maven-jdocbook-plugin:jar:2.2.3 is missing, no dependency information available
> Downloading: http://repo1.maven.org/maven2/org/jboss/maven/plugins/maven-jdocbook-plugin/2.2.3/maven-jdocbook-plugin-2.2.3.jar
> Downloading: http://repo1.maven.org/maven2/org/hibernate/hibernate-jdocbook-style/2.0.1/hibernate-jdocbook-style-2.0.1.jdocbook-style
> Downloading: http://repo1.maven.org/maven2/org/jboss/jbossorg-docbook-xslt/1.1.0/jbossorg-docbook-xslt-1.1.0.jar
> Downloading: http://repo1.maven.org/maven2/org/jboss/docs/highlight/1.0.0/highlight-1.0.0.jar
> Downloading: http://repo1.maven.org/maven2/org/jboss/jbossorg-jdocbook-style/1.1.0/jbossorg-jdocbook-style-1.1.0.jdocbook-style
> Downloading: http://repo1.maven.org/maven2/org/richfaces/docs/highlight/3.1.4.GA/highlight-3.1.4.GA.jar
> Downloading: http://repo1.maven.org/maven2/org/jboss/jbossorg-fonts/1.0.0/jbossorg-fonts-1.0.0.jdocbook-style
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 18.139s
> [INFO] Finished at: Wed Nov 17 12:04:13 CET 2010
> [INFO] Final Memory: 12M/81M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:1.4:shade (default) on project hibernate-validator: Error creating shaded jar: 1 problem was encountered while building the effective model for org.hibernate:hibernate-validator:4.2.0-SNAPSHOT
> [ERROR] [ERROR] Unresolveable build extension: Plugin org.jboss.maven.plugins:maven-jdocbook-plugin:2.2.3 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.jboss.maven.plugins:maven-jdocbook-plugin:jar:2.2.3, org.hibernate:hibernate-jdocbook-style:jdocbook-style:2.0.1, org.jboss:jbossorg-jdocbook-style:jdocbook-style:1.1.0, org.jboss:jbossorg-docbook-xslt:jar:1.1.0, net.sf.docbook:docbook:jar:1.72.0, org.jboss.docs:highlight:jar:1.0.0, org.richfaces.docs:highlight:jar:3.1.4.GA, org.jboss:jbossorg-fonts:jdocbook-style:1.0.0: Could not find artifact org.jboss.maven.plugins:maven-jdocbook-plugin:jar:2.2.3 in central (http://repo1.maven.org/maven2) @
> [ERROR] for project org.hibernate:hibernate-validator:4.2.0-SNAPSHOT at /Users/hardy/work/hibernate/git/validator/hibernate-validator/dependency-reduced-pom.xml for project org.hibernate:hibernate-validator:4.2.0-SNAPSHOT at /Users/hardy/work/hibernate/git/validator/hibernate-validator/dependency-reduced-pom.xml
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> {noformat}
> See also the Hudson build environment.
> The problem does not occur with Beta1 of Maven 3.
> Looking at the error message it seems that when the shading plugin tries to resolve the dependency maven-jdocbook-plugin it uses the wrong remote repository.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list