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

[regression] invoker:install uses wrong local repo path when settings.xml contains wildcard mirror

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0-alpha-6
    • 3.0-alpha-7
    • None
    • None
    • MacOS 10.6.2 with Maven 3.0-alpha6

    Description

      I'm coding on an archetype project (http://github.com/sonatype/sonatype-archetype) and am using the install goal of Invoker 1.5. If I use an alternate repo with the <localRepositoryUrl>, the archetype JAR is not copied into the local repo location. If I use Maven 2.2.1, the resource is copied into the localRepositoryUrl location with no problem.

      I've commented out the <install> and <localRepositoryUrl> tags in the committed version so that it passes when built with Maven 3.0-alpha-6.

      File:
      http://github.com/sonatype/sonatype-archetype/blob/master/archetype-archetypes/quickstart/pom.xml

      To reproduce this.
      1) Download Maven 3.0-alpha-6
      2) Set it to be your active maven version
      3) git clone git@github.com:sonatype/sonatype-archetype.git
      4) Hijack and uncomment the <goal>install</goal> and <localRepositoryPath>${project.build.directory}/it/repo</localRepositoryPath> in the file archetype-archetypes/quickstart/pom.xml
      5) build the entire source tree with "mvn install"
      5) It will fail with the following error:

      [INFO] [INFO] ------------------------------------------------------------------------
      [INFO] [INFO] BUILD FAILURE
      [INFO] [INFO] ------------------------------------------------------------------------
      [INFO] [INFO] Total time: 15.576s
      [INFO] [INFO] Finished at: Mon Feb 15 19:49:33 MST 2010
      [INFO] [INFO] Final Memory: 6M/80M
      [INFO] [INFO] ------------------------------------------------------------------------
      [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate (default-cli) on project standalone-pom: The desired archetype does not exist (org.sonatype.maven.archetype:quickstart:0.8.4-SNAPSHOT) -> [Help 1]
      [INFO] [ERROR]
      [INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [INFO] [ERROR]
      [INFO] [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [INFO] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
      [INFO] ..FAILED (16.8 s)
      [INFO] The build exited with code 1. See /Users/mccm06/Documents/Code/OpenSourceContribs/sonatype-archetype_git/archetype-archetypes/quickstart/target/it/projects/quickstart/build.log for details.
      [INFO] -------------------------------------------------
      [INFO] Build Summary:
      [INFO] Passed: 0, Failed: 1, Errors: 0, Skipped: 0
      [INFO] -------------------------------------------------
      [ERROR] The following builds failed:
      [ERROR] * quickstart
      [INFO] -------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 21.310s
      [INFO] Finished at: Mon Feb 15 19:49:34 MST 2010
      [INFO] Final Memory: 8M/80M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-invoker-plugin:1.5:run (integration-test) on project quickstart: 1 build failed. -> [Help 1]

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            bentmann Benjamin Bentmann
            matthew.mccullough Matthew McCullough
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment