Hi,

I ran into the same error. You need to update to the latest maven release
(or at least the RC version). There seems to be a method added in this
release which is used by the latest version from the plugin creator plugin.

Good luck,
Roy

On 10/19/05, Jan Bartel <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Using the 2.0-beta-3 release of Maven, I'm trying to create a Java
> plugin. I've tried just cutting and pasting the Hello World example
> from the website, but I get the same error, which is when I try to
> generate the plugin.xml as part of the "m2 install" command, I get:
>
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.apache.maven.plugin.descriptor.PluginDescriptor.setName
> (Ljava/lang/String;)V
> at
> org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(
> AbstractGeneratorMojo.java:91)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:417)
> [..snip..]
>
> My project looks like:
> /helloworld
> pom.xml
> /src/main/java/sample/plugin
> GreetingMojo.java
>
> Again, pom.xml and GreetingMojo.java are straight from the website.
>
> If someone could point me in the right direction I'd be grateful.
>
> thanks
> Jan Bartel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to