[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
Thu Nov 18 06:54:13 EST 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HV-396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=39147#action_39147 ] 

Hardy Ferentschik commented on HV-396:
--------------------------------------

See http://jira.codehaus.org/browse/MNG-4900
>From Paul:
{quote}
I wasn't aware of this issue before, but it seems to be something specific to the shade plugin in combination with a plugin from a non-central repo.  I created an upstream issue to track the problem [1]. For a short term fix if you add the JBoss repositories to the pom it seems to work.
{quote}

> 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