You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by 陈思淼 <ch...@gmail.com> on 2008/09/27 07:47:12 UTC
How to name my own plugin?
I want to create a new Plugin to package my project in my own way witch I
call it "jcar", how should I name my plugin?If I don't use
maven-jcar-plugin, i must use com.mycompany.jcar:goal to run this plugin, Is
There good way for my to solve this problem?
Re: How to name my own plugin?
Posted by Wendy Smoak <ws...@gmail.com>.
2008/9/26 陈思淼 <ch...@gmail.com>:
> I want to create a new Plugin to package my project in my own way witch I
> call it "jcar", how should I name my plugin?If I don't use
> maven-jcar-plugin, i must use com.mycompany.jcar:goal to run this plugin, Is
> There good way for my to solve this problem?
As Stephen mentioned, the naming convention for non-core plugins is
xyz-maven-plugin.
You can add the group id in settings.xml so that the mvn plugin:goal
syntax works. (This is where a "custom" Maven distribution comes in--
replace settings.xml with one that has your internal repositories and
plugin groups.)
Another option is to submit the plugin to the Codehaus Mojo project,
if it's something that would be useful to others and your company will
allow it.
--
Wendy
Re: How to name my own plugin?
Posted by Stephen Connolly <st...@gmail.com>.
AFAIK you should call it
jcar-maven-plugin
AFAIK only plugins with the groupId org.apache.maven.plugins are allowed to
use the maven-______-plugin pattern
You should also look into the plugin goal prefix pararmeter and adding your
groupId to the plugin search stuff in settings.xml
-Stephen
2008/9/27 陈思淼 <ch...@gmail.com>
> I want to create a new Plugin to package my project in my own way witch I
> call it "jcar", how should I name my plugin?If I don't use
> maven-jcar-plugin, i must use com.mycompany.jcar:goal to run this plugin,
> Is
> There good way for my to solve this problem?
>