You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Allison, Bob" <ro...@qwest.com> on 2005/10/05 20:12:13 UTC

[m20b3] Problems Getting My First Plugin to Work

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m20b3] Problems Getting My First Plugin to Work

Posted by Wendell Beckwith <wb...@gmail.com>.
I had a the exact same problem however it went away when I updated to m2b2
and blew away my local repo allowing m2 to recreate it. Since then, it has
all work fine.

Wb


On 10/5/05, Allison, Bob <ro...@qwest.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>