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

Cannot download plugin POM when auto-discovering plugins

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-beta-1
    • 2.0-beta-1
    • None
    • None
    • Windows XP, Cygwin

    Description

      This issue is following the thread: [m2] using deployed plugin snapshots with new metadata

      See attached test-plugin project. Steps to reproduce:

      1) Deploy the plugin: m2 -DupdateReleaseInfo=true clean:clean deploy

      [mark@mark test-plugin]$ m2 -DupdateReleaseInfo=true clean:clean deploy
      [INFO] Searching repository for plugin with prefix: 'clean'.
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building hello:hello:maven-plugin:1.0
      [INFO] task-segment: [clean:clean, deploy]
      [INFO] ----------------------------------------------------------------------------
      [INFO] [clean:clean]
      [INFO] Deleting directory c:\Documents and Settings\mark\Desktop\test-plugin\target
      [INFO] [plugin:descriptor]
      [INFO] [resources:resources]
      [INFO] [compiler:compile]
      Compiling 1 source file to c:\Documents and Settings\mark\Desktop\test-plugin\target\classes
      [INFO] [resources:testResources]
      [INFO] [compiler:testCompile]
      [INFO] No sources to compile
      [INFO] [surefire:test]
      [INFO] Setting reports dir: c:\Documents and Settings\mark\Desktop\test-plugin\target/surefire-reports

      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      There are no test to run.

      Results :
      [surefire] Tests run: 0, Failures: 0, Errors: 0

      [INFO] [jar:jar]
      [INFO] Building jar: c:\Documents and Settings\mark\Desktop\test-plugin\target\hello-1.0.jar
      [INFO] [plugin:addPluginArtifactMetadata]
      [INFO] [install:install]
      [INFO] Installing c:\Documents and Settings\mark\Desktop\test-plugin\target\hello-1.0.jar to C:\Documents and Settings\m
      ark\.m2\repository\hello\hello\1.0\hello-1.0.jar
      [INFO] [deploy:deploy]
      Uploading: file:target/test-repo/hello/hello/1.0/hello-1.0.jar
      2K uploaded
      [INFO] Retrieving previous metadata from test
      [INFO] Uploading repository metadata for: 'hello'
      [INFO] Retrieving previous metadata from test
      [INFO] Uploading project information for hello 1.0
      [INFO] Retrieving previous metadata from test
      [INFO] Uploading repository metadata for: 'artifact hello:hello'
      [INFO] ----------------------------------------------------------------------------
      [INFO] BUILD SUCCESSFUL
      [INFO] ----------------------------------------------------------------------------
      [INFO] Total time: 13 seconds
      [INFO] Finished at: Tue Sep 13 20:25:05 BST 2005
      [INFO] Final Memory: 4M/12M
      [INFO] ----------------------------------------------------------------------------

      2) Clean all knowledge of plugin from local-repo:

      rm -rf ~/.m2/repository/hello
      rm ~/.m2/plugin-registry.xml

      3) Attempt to auto-discover plugin: m2 -s settings.xml hello:hello

      [mark@mark test-plugin]$ m2 -s settings.xml hello:hello
      [INFO] Searching repository for plugin with prefix: 'hello'.
      [INFO] hello: checking for updates from test
      [INFO] hello: checking for updates from central-plugins
      [INFO] artifact hello:hello: checking for updates from test
      [INFO] artifact hello:hello: checking for updates from central-plugins
      Downloading: http://repo1.maven.org/maven2/plugins/hello/hello/1.0/hello-1.0.pom
      [WARNING]

              • Using defaults for missing POM hello:hello:pom:1.0 *****

      Downloading: file:target/test-repo/hello/hello/1.0/hello-1.0.jar
      2K downloaded
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building hello:hello:maven-plugin:1.0
      [INFO] task-segment: [hello:hello]
      [INFO] ----------------------------------------------------------------------------
      [INFO] [hello:hello]
      [INFO] *** Hello ***
      [INFO] ----------------------------------------------------------------------------
      [INFO] BUILD SUCCESSFUL
      [INFO] ----------------------------------------------------------------------------
      [INFO] Total time: < 1 second
      [INFO] Finished at: Tue Sep 13 20:26:04 BST 2005
      [INFO] Final Memory: 1M/3M
      [INFO] ----------------------------------------------------------------------------

      The plugin jar is successfully found, but not the POM..?

      Attachments

        1. test-plugin2.zip
          1 kB
          Mark Hobson
        2. test-plugin.zip
          1 kB
          Mark Hobson

        Issue Links

          Activity

            People

              brett Brett Porter
              markh Mark Hobson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: