Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-8732

xwiki-platform-extension-script build fails if the integration tests for xwiki-platform-tool-packager-plugin are run

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      You can reproduce the problem with the following reactor:

      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Build Order:
      [INFO] 
      [INFO] XWiki Platform - Parent POM
      [INFO] XWiki Platform - Tools - Parent POM
      [INFO] XWiki Platform - Tools - Packager
      [INFO] XWiki Platform - Core - Parent POM
      [INFO] XWiki Platform - Extension - Parent POM
      [INFO] XWiki Platform - Extension - Script
      [INFO]                                                                         
      [INFO] ------------------------------------------------------------------------
      

      executing:

      rm -fr ~/.m2/repository/org/xwiki/commons/xwiki-commons-extension-api/
      mvn clean install -Pintegration-tests -U
      

      The result is:

      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO] 
      [INFO] XWiki Platform - Parent POM ....................... SUCCESS [4.797s]
      [INFO] XWiki Platform - Tools - Parent POM ............... SUCCESS [2.716s]
      [INFO] XWiki Platform - Tools - Packager ................. SUCCESS [1:15.234s]
      [INFO] XWiki Platform - Core - Parent POM ................ SUCCESS [3.218s]
      [INFO] XWiki Platform - Extension - Parent POM ........... SUCCESS [0.612s]
      [INFO] XWiki Platform - Extension - Script ............... FAILURE [0.178s]
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1:29.277s
      [INFO] Finished at: Wed Jan 23 11:11:01 EET 2013
      [INFO] Final Memory: 56M/708M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal on project xwiki-platform-extension-script: Could not resolve dependencies for project org.xwiki.platform:xwiki-platform-extension-script:jar:4.5-SNAPSHOT: Could not find artifact org.xwiki.commons:xwiki-commons-extension-api:jar:tests:4.5-SNAPSHOT -> [Help 1]
      

      The problem seems to be that maven-invoker-plugin (even the latest version, 1.8) which is used for running the integration tests of xwiki-platform-tool-packager-plugin generates maven-metadata-local.xml in the local Maven repository. Removing

      ~/.m2/repository/org/xwiki/commons/xwiki-commons-extension-api/4.5-SNAPSHOT/maven-metadata-local.xml
      

      fixes the build.

      I found this related issue: Maven 3 dependency resolution fails until maven-metadata-local.xml files (created by maven-invoker-plugin) are deleted which is still open. Note that I tested with Maven 3.0.4 which uses aether 1.13.1 .

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: