maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephane Nicoll" <stephane.nic...@gmail.com>
Subject Re: Subclassing the war plugin
Date Sat, 21 Apr 2007 06:07:15 GMT
Hi,

On 4/21/07, Franz Allan Valencia See <franz.see@gmail.com> wrote:
...
> But if really don't like either approach, then you probably could just
> create your own version of the war plugin ( something like,
> org.apache.maven.plugins:maven-war-plugin:1.0-jochen ). So that using
> pluginManagement, you can nail down your project's war plugin version
> to your own. In that way, when maven tries to find
> org.apache.maven.plugins:maven-war-plugin:<some version>, it will see
> your version and use it.

Notet that this does not work with maven 2.0.x (i.e. having released
plugins with the same groupId/artifactId in two different
repositories).

Cheers,
St├ęphane


>
> Cheers,
> Franz
>
> On 4/20/07, Stephane Nicoll <stephane.nicoll@gmail.com> wrote:
> > Hi,
> >
> > On 4/20/07, Jochen Wiedmann <jochen.wiedmann@gmail.com> wrote:
> > > Hi,
> > >
> > > I am about to implement a plugin, which generates war files. Wait, I
> > > hear you say, there already is a war plugin. Unfortunately, my war
> > > files are very special and need to be created in a way, which the war
> > > file cannot (and will not) fulfill.
> >
> > OK but is there a way you defined the necessary hooks you need? Maybe
> > this could be reused for somebody else.
> >
> > Thanks,
> > St├ęphane
> >
> >
> >
> > >
> > > Ok, basically there is no problem. I am subclassing AbstractMojo,
> > > create an instance of WarMojo internally and delegate the parameters
> > > to the internal instance. However, I have found another problem:
> > >
> > > In the project, where I would like to use the plugin, I would want to declare
> > >
> > >     <packaging>war</packaging>
> > >
> > > Unfortunately, that brings the maven-war-plugin into play, which I
> > > would like to avoid. Of course, I can change that to
> > >
> > >     <packaging>mywar</packaging>
> > >
> > > but that means changing the extension. I do like neither of the above ideas.
> > >
> > > Any better suggestions?
> > >
> > >
> > > Thanks,
> > >
> > > Jochen
> > >
> > > --
> > > My cats know that I am a loser who goes out for hunting every day
> > > without ever returning as much as a single mouse. Fortunately, I've
> > > got a wife who's a real champ: She leaves the house and returns within
> > > half an hour, carrying whole bags full of meal.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: dev-help@maven.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

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


Mime
View raw message