Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5542

Parent resolution issue when using -pl on the command line

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.1
    • Fix Version/s: None
    • Component/s: Dependencies
    • Labels:
      None

      Description

      When I build using -pl and one of the pom has a parent that isn't in my local repository, I get a failure:

      Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.xwiki.platform:xwiki-platform-core:pom:5.3-SNAPSHOT in local.central (file:///Users/vmassol/.m2/repository)
              at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1012)
              at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1004)
              at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:725)
              at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
      

      I think Maven should download it from the remote repository.

      To reproduce:

      mvn -B -f XWIKIHOME/xwiki-platform/pom.xml -amd -pl org.xwiki.platform:xwiki-platform-tool-packager-plugin,org.xwiki.platform:xwiki-platform-administration-test-tests,org.xwiki.platform:xwiki-platform-messagestream-test-tests,org.xwiki.platform:xwiki-platform-panels-test-tests,org.xwiki.platform:xwiki-platform-wysiwyg-test-tests clean deploy -Plegacy,integration-tests -U -e
      

        Activity

        Hide
        vmassol Vincent Massol added a comment -

        Note that the real life use case for this is configuring Jenkins to do partial builds.

        Show
        vmassol Vincent Massol added a comment - Note that the real life use case for this is configuring Jenkins to do partial builds.

          People

          • Assignee:
            Unassigned
            Reporter:
            vmassol Vincent Massol
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development