Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-210

rendering fails to build with maven3 unless commons has already been built on the same machine.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 4.0, 4.1-milestone-2
    • Standalone
    • N/A
    • N/A

    Description

      The problem is outlined in http://jira.codehaus.org/browse/MSHADE-103 and the current solution, downgrade to maven 3.0.3 may be solving part of the problem but is not sufficient.

      ~/apps/apache-maven-3.0.1-SNAPSHOT/bin/mvn clean install
      
      ......
      
      
      
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 3:05.553s
      [INFO] Finished at: Wed Jun 06 14:06:14 EDT 2012
      [INFO] Final Memory: 81M/2008M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:1.6:shade (default) on project xwiki-rendering-standalone: Error creating shaded jar: 2 problems were encountered while building the effective model for org.xwiki.rendering:xwiki-rendering-standalone:4.1-SNAPSHOT
      [ERROR] [WARNING] 'parent.relativePath' of POM org.xwiki.rendering:xwiki-rendering:4.1-SNAPSHOT (/home/user/wrk/xwiki.git/xwiki-trunks/xwiki-rendering/pom.xml) points at org.xwiki.commons:xwiki-trunks instead of org.xwiki.commons:xwiki-commons-pom, please verify your project structure @ org.xwiki.rendering:xwiki-rendering:4.1-SNAPSHOT, /home/user/wrk/xwiki.git/xwiki-trunks/xwiki-rendering/pom.xml, line 27, column 11
      [ERROR] [FATAL] Non-resolvable parent POM for org.xwiki.rendering:xwiki-rendering:4.1-SNAPSHOT: Could not find artifact org.xwiki.commons:xwiki-commons-pom:pom:4.1-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ org.xwiki.rendering:xwiki-rendering:4.1-SNAPSHOT, /home/user/wrk/xwiki.git/xwiki-trunks/xwiki-rendering/pom.xml, line 27, column 11
      [ERROR] for project org.xwiki.rendering:xwiki-rendering-standalone:4.1-SNAPSHOT at /home/user/wrk/xwiki.git/xwiki-trunks/xwiki-rendering/xwiki-rendering-standalone/dependency-reduced-pom.xml for project org.xwiki.rendering:xwiki-rendering-standalone:4.1-SNAPSHOT at /home/user/wrk/xwiki.git/xwiki-trunks/xwiki-rendering/xwiki-rendering-standalone/dependency-reduced-pom.xml
      [ERROR] -> [Help 1]
      [ERROR] 
      
      ...
      
      

      to repeat:

      cd xwiki-rendering
      rm ~/.m2/repository/org/xwiki/commons -r
      mvn clean install

      Attachments

        Activity

          People

            vmassol Vincent Massol
            calebjamesdelisle CalebJamesDeLisle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: