You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Farhan Sarwar <fa...@gmail.com> on 2007/08/27 18:26:20 UTC

Associate a default goal for a plugin and type the plugin name only on cmdln

Hello Guys,

I was just wondering if there is a way to configure/associate a
default goal for plugin so that we need not to type the goal name
explicitly on the command line

Thanks and Regards,

Farhan.

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


Re: Associate a default goal for a plugin and type the plugin name only on cmdln

Posted by Arnaud HERITIER <ah...@gmail.com>.
I'm not sure, but that is probably to not have a clash with a phase name.

Arnaud

On 27/08/07, Farhan Sarwar <fa...@gmail.com> wrote:
> though i wonder why would they have taken the feature out..i certainly
> see it handy..
> Farhan.
>
> On 8/27/07, Farhan Sarwar <fa...@gmail.com> wrote:
> > i see..thanks
> >
> > On 8/27/07, Arnaud HERITIER <ah...@gmail.com> wrote:
> > > not in maven 2. It was only in maven 1.
> > > In m2 you have to call aPlugin:aGoal
> > >
> > > Arnaud
> > >
> > > On 27/08/07, Farhan Sarwar <fa...@gmail.com> wrote:
> > > > Well actually there are scenarios where i would want to execute a
> > > > plugin:goal outside of the build-cylce and i think i read somewhere
> > > > that u can bind a default goal to a plugin...
> > > >
> > > > On 8/27/07, Wayne Fay <wa...@gmail.com> wrote:
> > > > > I don't know of a way to configure a default goal for a plugin.
> > > > >
> > > > > However, if you bind the goal to a phase, you don't even need to type
> > > > > the plugin (nor the goal) on the CLI... It just all happens
> > > > > automagically.
> > > > >
> > > > > Wayne
> > > > >
> > > > > On 8/27/07, Farhan Sarwar <fa...@gmail.com> wrote:
> > > > > > Hello Guys,
> > > > > >
> > > > > > I was just wondering if there is a way to configure/associate a
> > > > > > default goal for plugin so that we need not to type the goal name
> > > > > > explicitly on the command line
> > > > > >
> > > > > > Thanks and Regards,
> > > > > >
> > > > > > Farhan.
> > > > > >
> > > > > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > >
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > ..........................................................
> > > Arnaud HERITIER
> > > ..........................................................
> > > OCTO Technology - aheritier AT octo DOT com
> > > www.octo.com | blog.octo.com
> > > ..........................................................
> > > ASF - aheritier AT apache DOT org
> > > www.apache.org | maven.apache.org
> > > ...........................................................
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
..........................................................
Arnaud HERITIER
..........................................................
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..........................................................
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...........................................................

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


Re: Associate a default goal for a plugin and type the plugin name only on cmdln

Posted by Farhan Sarwar <fa...@gmail.com>.
though i wonder why would they have taken the feature out..i certainly
see it handy..
Farhan.

On 8/27/07, Farhan Sarwar <fa...@gmail.com> wrote:
> i see..thanks
>
> On 8/27/07, Arnaud HERITIER <ah...@gmail.com> wrote:
> > not in maven 2. It was only in maven 1.
> > In m2 you have to call aPlugin:aGoal
> >
> > Arnaud
> >
> > On 27/08/07, Farhan Sarwar <fa...@gmail.com> wrote:
> > > Well actually there are scenarios where i would want to execute a
> > > plugin:goal outside of the build-cylce and i think i read somewhere
> > > that u can bind a default goal to a plugin...
> > >
> > > On 8/27/07, Wayne Fay <wa...@gmail.com> wrote:
> > > > I don't know of a way to configure a default goal for a plugin.
> > > >
> > > > However, if you bind the goal to a phase, you don't even need to type
> > > > the plugin (nor the goal) on the CLI... It just all happens
> > > > automagically.
> > > >
> > > > Wayne
> > > >
> > > > On 8/27/07, Farhan Sarwar <fa...@gmail.com> wrote:
> > > > > Hello Guys,
> > > > >
> > > > > I was just wondering if there is a way to configure/associate a
> > > > > default goal for plugin so that we need not to type the goal name
> > > > > explicitly on the command line
> > > > >
> > > > > Thanks and Regards,
> > > > >
> > > > > Farhan.
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > >
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > ..........................................................
> > Arnaud HERITIER
> > ..........................................................
> > OCTO Technology - aheritier AT octo DOT com
> > www.octo.com | blog.octo.com
> > ..........................................................
> > ASF - aheritier AT apache DOT org
> > www.apache.org | maven.apache.org
> > ...........................................................
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>

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


Re: Associate a default goal for a plugin and type the plugin name only on cmdln

Posted by Farhan Sarwar <fa...@gmail.com>.
i see..thanks

On 8/27/07, Arnaud HERITIER <ah...@gmail.com> wrote:
> not in maven 2. It was only in maven 1.
> In m2 you have to call aPlugin:aGoal
>
> Arnaud
>
> On 27/08/07, Farhan Sarwar <fa...@gmail.com> wrote:
> > Well actually there are scenarios where i would want to execute a
> > plugin:goal outside of the build-cylce and i think i read somewhere
> > that u can bind a default goal to a plugin...
> >
> > On 8/27/07, Wayne Fay <wa...@gmail.com> wrote:
> > > I don't know of a way to configure a default goal for a plugin.
> > >
> > > However, if you bind the goal to a phase, you don't even need to type
> > > the plugin (nor the goal) on the CLI... It just all happens
> > > automagically.
> > >
> > > Wayne
> > >
> > > On 8/27/07, Farhan Sarwar <fa...@gmail.com> wrote:
> > > > Hello Guys,
> > > >
> > > > I was just wondering if there is a way to configure/associate a
> > > > default goal for plugin so that we need not to type the goal name
> > > > explicitly on the command line
> > > >
> > > > Thanks and Regards,
> > > >
> > > > Farhan.
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> ..........................................................
> Arnaud HERITIER
> ..........................................................
> OCTO Technology - aheritier AT octo DOT com
> www.octo.com | blog.octo.com
> ..........................................................
> ASF - aheritier AT apache DOT org
> www.apache.org | maven.apache.org
> ...........................................................
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


Re: Associate a default goal for a plugin and type the plugin name only on cmdln

Posted by Farhan Sarwar <fa...@gmail.com>.
Thanks Remy...


On 8/28/07, Rémy Sanlaville <re...@gmail.com> wrote:
> > not in maven 2. It was only in maven 1.
> > In m2 you have to call aPlugin:aGoal
>
>
> Yes, it's not available in maven 2. I ask for a such feature some time ago
> and I had this reply that explain why it is not so easy.
> http://www.nabble.com/-Proposal--New-profile-activation-tf3240038s177.html#a9031422
>
> Rémy
>

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


Re: Associate a default goal for a plugin and type the plugin name only on cmdln

Posted by Rémy Sanlaville <re...@gmail.com>.
> not in maven 2. It was only in maven 1.
> In m2 you have to call aPlugin:aGoal


Yes, it's not available in maven 2. I ask for a such feature some time ago
and I had this reply that explain why it is not so easy.
http://www.nabble.com/-Proposal--New-profile-activation-tf3240038s177.html#a9031422

Rémy

Re: Associate a default goal for a plugin and type the plugin name only on cmdln

Posted by Arnaud HERITIER <ah...@gmail.com>.
not in maven 2. It was only in maven 1.
In m2 you have to call aPlugin:aGoal

Arnaud

On 27/08/07, Farhan Sarwar <fa...@gmail.com> wrote:
> Well actually there are scenarios where i would want to execute a
> plugin:goal outside of the build-cylce and i think i read somewhere
> that u can bind a default goal to a plugin...
>
> On 8/27/07, Wayne Fay <wa...@gmail.com> wrote:
> > I don't know of a way to configure a default goal for a plugin.
> >
> > However, if you bind the goal to a phase, you don't even need to type
> > the plugin (nor the goal) on the CLI... It just all happens
> > automagically.
> >
> > Wayne
> >
> > On 8/27/07, Farhan Sarwar <fa...@gmail.com> wrote:
> > > Hello Guys,
> > >
> > > I was just wondering if there is a way to configure/associate a
> > > default goal for plugin so that we need not to type the goal name
> > > explicitly on the command line
> > >
> > > Thanks and Regards,
> > >
> > > Farhan.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
..........................................................
Arnaud HERITIER
..........................................................
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..........................................................
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...........................................................

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


Re: Associate a default goal for a plugin and type the plugin name only on cmdln

Posted by Farhan Sarwar <fa...@gmail.com>.
Well actually there are scenarios where i would want to execute a
plugin:goal outside of the build-cylce and i think i read somewhere
that u can bind a default goal to a plugin...

On 8/27/07, Wayne Fay <wa...@gmail.com> wrote:
> I don't know of a way to configure a default goal for a plugin.
>
> However, if you bind the goal to a phase, you don't even need to type
> the plugin (nor the goal) on the CLI... It just all happens
> automagically.
>
> Wayne
>
> On 8/27/07, Farhan Sarwar <fa...@gmail.com> wrote:
> > Hello Guys,
> >
> > I was just wondering if there is a way to configure/associate a
> > default goal for plugin so that we need not to type the goal name
> > explicitly on the command line
> >
> > Thanks and Regards,
> >
> > Farhan.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


Re: Associate a default goal for a plugin and type the plugin name only on cmdln

Posted by Wayne Fay <wa...@gmail.com>.
I don't know of a way to configure a default goal for a plugin.

However, if you bind the goal to a phase, you don't even need to type
the plugin (nor the goal) on the CLI... It just all happens
automagically.

Wayne

On 8/27/07, Farhan Sarwar <fa...@gmail.com> wrote:
> Hello Guys,
>
> I was just wondering if there is a way to configure/associate a
> default goal for plugin so that we need not to type the goal name
> explicitly on the command line
>
> Thanks and Regards,
>
> Farhan.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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