Hi Vincent,
OK, following the instructions I got it built and deployed to my local
repository. However, the only way I could get it to run was to type:
m2 sample.plugin:maven-hello-plugin:1.0-SNAPSHOT:sayhi
or
m2 sample.plugin:maven-hello-plugin:sayhi
I tried updating my settings.xml (~/.m2/settings.xml I presume)
<settings>
<pluginGroups>
<pluginGroup>sample.plugin</pluginGroup>
</pluginGroups>
</settings>
but I could not get
m2 hello:sayhi
to work
maven-hello-plugin> m2 hello:sayhi
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'hello'.
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-hello-plugin' does not
exist or no valid version could be found
[INFO]
----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Oct 17 14:19:49 MEST 2005
[INFO] Final Memory: 1M/4M
[INFO]
----------------------------------------------------------------------------
Any help appreciated,
Kevin
PS. Is this the only way to write plugins? Is Marmalade dead?
-----Original Message-----
From: Vincent Siveton [mailto:[EMAIL PROTECTED]
Sent: 17 October 2005 13:01
To: 'Maven Users List'
Subject: RE: [m2] Help! Getting started with plugins
Hi Kevin,
Have a look on this following:
http://www.codehaus.org/~jvanzyl/maven2/guides/plugin/guide-java-plugin-deve
lopment.html
Thanks Jason to work on m2 documentation.
HTH
Cheers,
Vincent
> -----Original Message-----
> From: Kevin McNamee [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 17, 2005 6:39 AM
> To: 'Maven Users List'
> Subject: [m2] Help! Getting started with plugins
>
> Hi,
>
>
>
> I have been trying to create a plugin for Maven 2 without much success.
>
>
>
> I have looked at the following links for help:
>
> http://www.onjava.com/pub/a/onjava/2004/03/17/maven.html?page=1 (Maven
> 1)
>
> http://maven.apache.org/maven2/developers/plugin-development-guide.html
> (Maven 2 - empty)
>
> http://maven.apache.org/maven2/developers/developing-plugins-with-
> marmalade.
> html (Marmalade - doesn't seem to work)
>
>
>
> All I need is a working "Hello World" example that preferably does not
> involve writing Java.
>
> My goal is to encapsulate some of our Ant functionality with a plugin.
>
>
>
> Much appreciated,
>
> Kevin
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]