You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Milos Kleint <mk...@gmail.com> on 2005/10/15 12:08:57 UTC

howto release/deploy an m2 plugin?

hello,

I have the maven-nbm-plugin (to create netbeans module artifacts) converted
from m1 to m2. I would like to release it now but I'm actually clueless
howto do it. My plugin is located at
mevenide.codehaus.org<http://mevenide.codehaus.org>(like the m1
version was). Is there a m2 repository synchronization in place
like there is for m1? or shall I copy the repository related pom elements
from poms at mojo.codehaus.org <http://mojo.codehaus.org>? will I have
enough privileges to perform the deploy?

and the release is done by running "m2 deploy" i suppose. Or is there more
to do?

Regards,

Milos Kleint

Re: howto release/deploy an m2 plugin?

Posted by Milos Kleint <mk...@gmail.com>.
On 10/15/05, Brett Porter <br...@gmail.com> wrote:
>
> On 10/16/05, Milos Kleint <mk...@gmail.com> wrote:
> > hmmm.. ok i will try, that came to my mind as well, just wanted to make
> it
> > easier to use the plugin. any non-central repository plugin's
> > usability is seriously hurt IMHO.
>
> Can you elaborate? Adding a new update center to netbeans is not that
> big of a problem...


oh, now we probably misunderstood each other. I was talking about the m2
plugin.
there seem to be multiple levels of citizenship in the m2's plugin
enviroment.
first clas citizens like site, eclipse or war plugins get recognized easily,
so you just type m2 "site:site" and it works.
with a second class citizen you need to type the
groupId:artifactId:version:goal combo to make it run. I do understand the
reasoning here and it makes perfect sense, but from useability point of view
it's a complication.
now if I don't have my plugin in the central repository I become even 3rd
class citizen, because someone wanting to use the plugin needs to specify
the additional repository in the pom of the project (Am I correct here?)

I guess I can overcome that by creating the archetype template and make the
setup work correctly. Then everything should work alost out of the box for
everyone.

Cheers

Milos

Re: howto release/deploy an m2 plugin?

Posted by Brett Porter <br...@gmail.com>.
On 10/16/05, Milos Kleint <mk...@gmail.com> wrote:
> hmmm.. ok i will try, that came to my mind as well, just wanted to make it
> easier to use the plugin. any non-central repository plugin's
> usability is seriously hurt IMHO.

Can you elaborate? Adding a new update center to netbeans is not that
big of a problem...

> well, netbeans project generator creates netbeans project related files in
> the project's directory (the funny part about it is that it creates an
> ant-based build out of the maven based setup :)
> my nbm plugin allows to build netbeans modules (like eclipse plugins) using
> maven.

Ok. They sound best as separate plugins.

> one more question. how do I create another template for the
> maven-archetype-plugin? I'd like to create a template for creating the
> netbeans modules. Will you accept it as contribution? or does it have some
> kind of registration mechanism to find templates elsewhere?

I'm hoping there is some docs on this in the new site, but if not you
can use the existing ones as an example. There's nothing special about
publishing them, they just need to be a jar in the repository with the
appopriate template files within them.

eg.

m2 archetype:create -DarchetypeGroupId=org.codehaus.mevenide
-DarchetypeArtifactId=mevenide-nbm-archetype [-DarchetypeVersion=...]

Cheers,
Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: howto release/deploy an m2 plugin?

Posted by Milos Kleint <mk...@gmail.com>.
On 10/15/05, Brett Porter <br...@gmail.com> wrote:
>
> m2 deploy is for copying to the repo. We should talk about setting up
> a sync process. For now, create a repository in the m2 layout for
> yourself - you can add that to your POM to use the plugin, and later
> we will get them synced to ibiblio.


hmmm.. ok i will try, that came to my mind as well, just wanted to make it
easier to use the plugin. any non-central repository plugin's
usability is seriously hurt IMHO.

Does this relate to the Netbeans project generator plugins by Wilfred
> and Raphael?


well, netbeans project generator creates netbeans project related files in
the project's directory (the funny part about it is that it creates an
ant-based build out of the maven based setup :)
my nbm plugin allows to build netbeans modules (like eclipse plugins) using
maven.

one more question. how do I create another template for the
maven-archetype-plugin? I'd like to create a template for creating the
netbeans modules. Will you accept it as contribution? or does it have some
kind of registration mechanism to find templates elsewhere?

regards

Milos

Cheers,
> Brett
>
> On 10/15/05, Milos Kleint <mk...@gmail.com> wrote:
> > hello,
> >
> > I have the maven-nbm-plugin (to create netbeans module artifacts)
> converted
> > from m1 to m2. I would like to release it now but I'm actually clueless
> > howto do it. My plugin is located at
> > mevenide.codehaus.org <http://mevenide.codehaus.org><
> http://mevenide.codehaus.org>(like the m1
> > version was). Is there a m2 repository synchronization in place
> > like there is for m1? or shall I copy the repository related pom
> elements
> > from poms at mojo.codehaus.org <http://mojo.codehaus.org> <
> http://mojo.codehaus.org>? will I have
> > enough privileges to perform the deploy?
> >
> > and the release is done by running "m2 deploy" i suppose. Or is there
> more
> > to do?
> >
> > Regards,
> >
> > Milos Kleint
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>

Re: howto release/deploy an m2 plugin?

Posted by Brett Porter <br...@gmail.com>.
m2 deploy is for copying to the repo. We should talk about setting up
a sync process. For now, create a repository in the m2 layout for
yourself - you can add that to your POM to use the plugin, and later
we will get them synced to ibiblio.

Does this relate to the Netbeans project generator plugins by Wilfred
and Raphael?

Cheers,
Brett

On 10/15/05, Milos Kleint <mk...@gmail.com> wrote:
> hello,
>
> I have the maven-nbm-plugin (to create netbeans module artifacts) converted
> from m1 to m2. I would like to release it now but I'm actually clueless
> howto do it. My plugin is located at
> mevenide.codehaus.org<http://mevenide.codehaus.org>(like the m1
> version was). Is there a m2 repository synchronization in place
> like there is for m1? or shall I copy the repository related pom elements
> from poms at mojo.codehaus.org <http://mojo.codehaus.org>? will I have
> enough privileges to perform the deploy?
>
> and the release is done by running "m2 deploy" i suppose. Or is there more
> to do?
>
> Regards,
>
> Milos Kleint
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org