Tried the first option and that got it working. Thanks! -----Original Message----- From: John Casey [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 05, 2005 14:20 To: Maven Developers List Subject: Re: [m20b3] Problems Getting My First Plugin to Work
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 it's probably trying to resolve RELEASE metadata for the plugin. By default, the plugin version manager only works with defined versions (on the CLI, as you mentioned, or with <version/> in the client POM) and RELEASE versions. You have two options here: 1. update the release metadata for your plugin when you install it locally, using: ~ m2 -DupdateReleaseInfo=true install 2. run your client build (the one that uses the plugin) with LATEST metadata enabled, like so: ~ m2 --check-plugin-latest hello:sayhi also ~ m2 -cpl hello:sayhi This second option works by virtue of the fact that currently, when a plugin is installed or deployed, LATEST version metadata is always updated. This option may or may not be around for the long term (there's a bit of debate over its usefulness), but for now it should work. Good luck, john Allison, Bob wrote: | I am trying to build my first plugin and having a problem. | | I wrote a plugin which I can run as | sample.plugin:maven-hello-plugin:1.0-SNAPSHOT:sayhi and that works | perfectly. | | I want to set things up so I can reference the goal as hello:sayhi but | can't seem to get it to work. I added "sample.plugin" as a pluginGroup | in my settings.xml file. When I run "m2 hello:sayhi", Maven tries to | check for updates from central then fails the build when it can't find | it on ibiblio even though it was installed into my local repository. | | Am I missing something vital? | | On another note, I am trying to use this experience to make a start at | the Plugin Development Guide. You can see what I have so far at | http://sd.no-ip.biz/maven2pdg/. I welcome any comments, suggestions, | and corrections. Right now, it only covers making a plugin with a | single mojo that takes no parameters, but I wanted to start simple and | add complexities one at a time. This said, the only part of the | document that has been started is the part under "Your First Plugin". | | --------------------------------------------------------------------- | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | | | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFDRBlMK3h2CZwO/4URAi0UAJ47ZBpUlDtX7zlXTRsvhNo4UkIB2wCcDbdu nCu58rjcHrSLI0OtkRaUrtA= =yB47 -----END PGP SIGNATURE----- --------------------------------------------------------------------- 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]