You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Wendell Beckwith <wb...@gmail.com> on 2005/09/02 02:16:36 UTC

Hot to set the prefix for a plugin

Thanks to help from Brett and the ability to hit my head against the wall 
without giving up, I now have my plugin at least installing and working. 
However it only works when I execute it with the groupId:artifactId:goal 
formula. How do I set the prefix for it? I noticed a plugin.xml in my 
<repo>/com/intervoice/maven/plugins directory with the following content:

<metadata>
<groupId>com.intervoice.maven.plugins</groupId>
<plugins>
<plugin>
<prefix>hello</prefix>
<artifactId>maven-hello-plugin</artifactId>
</plugin>
</plugins>
</metadata>

Since I didn't create it, m2 must have, however I have not found a way to 
actually use the prefix 'hello' with my goals. 

Also I use to have a settings.xml file, but since I wiped everything out and 
started fresh by building 2.0-beta-1, I no longer have a
settings.xmlauto-generated. In its place I now have a
plugin-registry.xml file. Somewhere, can't find the message at the moment, I 
saw an email that said I needed to add an xml fragment to my settings.xml, 
however the settings descriptor document doesn't show where to any <prefix/> 
element. So in a nutshell, how do I make this work?

Wendell

Re: Hot to set the prefix for a plugin

Posted by Brett Porter <br...@gmail.com>.
<settings>
<pluginGroups>
<pluginGroup>com.intervoice.maven.plugins</pluginGroup>
</pluginGroups>
</settings>

- Brett

On 9/2/05, Wendell Beckwith <wb...@gmail.com> wrote:
> 
> Thanks to help from Brett and the ability to hit my head against the wall
> without giving up, I now have my plugin at least installing and working.
> However it only works when I execute it with the groupId:artifactId:goal
> formula. How do I set the prefix for it? I noticed a plugin.xml in my
> <repo>/com/intervoice/maven/plugins directory with the following content:
> 
> <metadata>
> <groupId>com.intervoice.maven.plugins</groupId>
> <plugins>
> <plugin>
> <prefix>hello</prefix>
> <artifactId>maven-hello-plugin</artifactId>
> </plugin>
> </plugins>
> </metadata>
> 
> Since I didn't create it, m2 must have, however I have not found a way to
> actually use the prefix 'hello' with my goals.
> 
> Also I use to have a settings.xml file, but since I wiped everything out 
> and
> started fresh by building 2.0-beta-1, I no longer have a
> settings.xmlauto-generated. In its place I now have a
> plugin-registry.xml file. Somewhere, can't find the message at the moment, 
> I
> saw an email that said I needed to add an xml fragment to my settings.xml,
> however the settings descriptor document doesn't show where to any 
> <prefix/>
> element. So in a nutshell, how do I make this work?
> 
> Wendell
> 
>