Thanks Brett, I really appreciate getting this in for beta1. +2 for releasing 2.0 beta 1 now :)
Mark On 15/09/05, Brett Porter (JIRA) <[EMAIL PROTECTED]> wrote: > [ http://jira.codehaus.org/browse/MNG-874?page=all ] > > Brett Porter closed MNG-874: > ---------------------------- > > Resolution: Fixed > > > Cannot download plugin POM when auto-discovering plugins > > -------------------------------------------------------- > > > > Key: MNG-874 > > URL: http://jira.codehaus.org/browse/MNG-874 > > Project: Maven 2 > > Type: Bug > > Versions: 2.0-beta-1 > > Environment: Windows XP, Cygwin > > Reporter: Mark Hobson > > Assignee: Brett Porter > > Fix For: 2.0-beta-1 > > Attachments: test-plugin.zip, test-plugin2.zip > > > > > > 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 > > [EMAIL PROTECTED] 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 > > [EMAIL PROTECTED] 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..? > > -- > This message is automatically generated by JIRA. > - > If you think it was sent incorrectly contact one of the administrators: > http://jira.codehaus.org/secure/Administrators.jspa > - > For more information on JIRA, see: > http://www.atlassian.com/software/jira > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]