You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by puschteblume <pu...@gmx.de> on 2005/11/21 14:31:43 UTC

[M2] how to run a goal by specifying the plugin only -> default goal?

I have created a plugin that can be run via buildnumber:create

Then I remembered that the clean plugin can be startet, by simply run 
clean. How I have to declare the plugin that there is a default goal?

Heiko

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


Re: [M2] how to run a goal by specifying the plugin only -> default goal?

Posted by puschteblume <pu...@gmx.de>.
Is the reference lifecycle correct, as you have written in the 
documentation? Is there a way to print it out?

Thanks Heiko

puschteblume wrote:

> Of course .. now I know :)
>
> Brett Porter wrote:
>
>> clean isn't - we should add it. I'll file a bug.
>>
>> But this is not related to how you add goals to the lifecycle...
>>
>> - Brett
>>
>> On 11/22/05, puschteblume <pu...@gmx.de> wrote:
>>  
>>
>>> Hi Brett
>>>
>>> Why it isn't defined in the lifecycle reference? I can't find any hint
>>> on this topic. Where it is defined?
>>>
>>> Heiko
>>>
>>> Brett Porter wrote:
>>>
>>>   
>>>
>>>> Clean is a special lifecycle phase.
>>>>
>>>> You can't really shorten it, though you can bind it to a lifecycle
>>>> phase so it is run automatically and you never need to run it on the
>>>> command line :)
>>>>
>>>> See: Introduction to the build lifecycle in the documentation
>>>>
>>>> - Brett
>>>>
>>>> On 11/22/05, puschteblume <pu...@gmx.de> wrote:
>>>>
>>>>
>>>>     
>>>>
>>>>> Hi Stephen
>>>>>
>>>>> Thanks. But this hint gives you access to the plugin directly, 
>>>>> without
>>>>> specifying it in the pom or run it by specifying
>>>>> groupid:artifact:version ..
>>>>>
>>>>> Heiko
>>>>>
>>>>> Stephen Cowx wrote:
>>>>>
>>>>>
>>>>>
>>>>>       
>>>>>
>>>>>> Hi
>>>>>>
>>>>>> I saw some notes on how to do this in:
>>>>>> http://maven.apache.org/guides/plugin/guide-java-plugin-development.html 
>>>>>>
>>>>>>
>>>>>> See the section on "Shortening the Command Line"
>>>>>>
>>>>>> I haven't tried it so I don't know if it works but it seems to be 
>>>>>> what
>>>>>> you are asking for
>>>>>>
>>>>>> Regards
>>>>>>
>>>>>> Stephen
>>>>>>
>>>>>>
>>>>>>
>>>>>> puschteblume wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>         
>>>>>>
>>>>>>> I have created a plugin that can be run via buildnumber:create
>>>>>>>
>>>>>>> Then I remembered that the clean plugin can be startet, by 
>>>>>>> simply run
>>>>>>> clean. How I have to declare the plugin that there is a default 
>>>>>>> goal?
>>>>>>>
>>>>>>> Heiko
>>>>>>>
>>>>>>> --------------------------------------------------------------------- 
>>>>>>>
>>>>>>> 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
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>       
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>
>>
>>  
>>
>
>
> ---------------------------------------------------------------------
> 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: [M2] how to run a goal by specifying the plugin only -> default goal?

Posted by puschteblume <pu...@gmx.de>.
Of course .. now I know :)

Brett Porter wrote:

>clean isn't - we should add it. I'll file a bug.
>
>But this is not related to how you add goals to the lifecycle...
>
>- Brett
>
>On 11/22/05, puschteblume <pu...@gmx.de> wrote:
>  
>
>>Hi Brett
>>
>>Why it isn't defined in the lifecycle reference? I can't find any hint
>>on this topic. Where it is defined?
>>
>>Heiko
>>
>>Brett Porter wrote:
>>
>>    
>>
>>>Clean is a special lifecycle phase.
>>>
>>>You can't really shorten it, though you can bind it to a lifecycle
>>>phase so it is run automatically and you never need to run it on the
>>>command line :)
>>>
>>>See: Introduction to the build lifecycle in the documentation
>>>
>>>- Brett
>>>
>>>On 11/22/05, puschteblume <pu...@gmx.de> wrote:
>>>
>>>
>>>      
>>>
>>>>Hi Stephen
>>>>
>>>>Thanks. But this hint gives you access to the plugin directly, without
>>>>specifying it in the pom or run it by specifying
>>>>groupid:artifact:version ..
>>>>
>>>>Heiko
>>>>
>>>>Stephen Cowx wrote:
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>Hi
>>>>>
>>>>>I saw some notes on how to do this in:
>>>>>http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
>>>>>
>>>>>See the section on "Shortening the Command Line"
>>>>>
>>>>>I haven't tried it so I don't know if it works but it seems to be what
>>>>>you are asking for
>>>>>
>>>>>Regards
>>>>>
>>>>>Stephen
>>>>>
>>>>>
>>>>>
>>>>>puschteblume wrote:
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>I have created a plugin that can be run via buildnumber:create
>>>>>>
>>>>>>Then I remembered that the clean plugin can be startet, by simply run
>>>>>>clean. How I have to declare the plugin that there is a default goal?
>>>>>>
>>>>>>Heiko
>>>>>>
>>>>>>---------------------------------------------------------------------
>>>>>>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
>>>>
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>---------------------------------------------------------------------
>>>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
>
>
>  
>


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


Re: [M2] how to run a goal by specifying the plugin only -> default goal?

Posted by Brett Porter <br...@gmail.com>.
clean isn't - we should add it. I'll file a bug.

But this is not related to how you add goals to the lifecycle...

- Brett

On 11/22/05, puschteblume <pu...@gmx.de> wrote:
> Hi Brett
>
> Why it isn't defined in the lifecycle reference? I can't find any hint
> on this topic. Where it is defined?
>
> Heiko
>
> Brett Porter wrote:
>
> >Clean is a special lifecycle phase.
> >
> >You can't really shorten it, though you can bind it to a lifecycle
> >phase so it is run automatically and you never need to run it on the
> >command line :)
> >
> >See: Introduction to the build lifecycle in the documentation
> >
> >- Brett
> >
> >On 11/22/05, puschteblume <pu...@gmx.de> wrote:
> >
> >
> >>Hi Stephen
> >>
> >>Thanks. But this hint gives you access to the plugin directly, without
> >>specifying it in the pom or run it by specifying
> >>groupid:artifact:version ..
> >>
> >>Heiko
> >>
> >>Stephen Cowx wrote:
> >>
> >>
> >>
> >>>Hi
> >>>
> >>>I saw some notes on how to do this in:
> >>>http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
> >>>
> >>>See the section on "Shortening the Command Line"
> >>>
> >>>I haven't tried it so I don't know if it works but it seems to be what
> >>>you are asking for
> >>>
> >>>Regards
> >>>
> >>>Stephen
> >>>
> >>>
> >>>
> >>>puschteblume wrote:
> >>>
> >>>
> >>>
> >>>>I have created a plugin that can be run via buildnumber:create
> >>>>
> >>>>Then I remembered that the clean plugin can be startet, by simply run
> >>>>clean. How I have to declare the plugin that there is a default goal?
> >>>>
> >>>>Heiko
> >>>>
> >>>>---------------------------------------------------------------------
> >>>>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
> >>
> >>
> >>
> >>
> >
> >---------------------------------------------------------------------
> >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: [M2] how to run a goal by specifying the plugin only -> default goal?

Posted by puschteblume <pu...@gmx.de>.
Hi Brett

Why it isn't defined in the lifecycle reference? I can't find any hint 
on this topic. Where it is defined?

Heiko

Brett Porter wrote:

>Clean is a special lifecycle phase.
>
>You can't really shorten it, though you can bind it to a lifecycle
>phase so it is run automatically and you never need to run it on the
>command line :)
>
>See: Introduction to the build lifecycle in the documentation
>
>- Brett
>
>On 11/22/05, puschteblume <pu...@gmx.de> wrote:
>  
>
>>Hi Stephen
>>
>>Thanks. But this hint gives you access to the plugin directly, without
>>specifying it in the pom or run it by specifying
>>groupid:artifact:version ..
>>
>>Heiko
>>
>>Stephen Cowx wrote:
>>
>>    
>>
>>>Hi
>>>
>>>I saw some notes on how to do this in:
>>>http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
>>>
>>>See the section on "Shortening the Command Line"
>>>
>>>I haven't tried it so I don't know if it works but it seems to be what
>>>you are asking for
>>>
>>>Regards
>>>
>>>Stephen
>>>
>>>
>>>
>>>puschteblume wrote:
>>>
>>>      
>>>
>>>>I have created a plugin that can be run via buildnumber:create
>>>>
>>>>Then I remembered that the clean plugin can be startet, by simply run
>>>>clean. How I have to declare the plugin that there is a default goal?
>>>>
>>>>Heiko
>>>>
>>>>---------------------------------------------------------------------
>>>>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
>>
>>
>>    
>>
>
>---------------------------------------------------------------------
>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: [M2] how to run a goal by specifying the plugin only -> default goal?

Posted by Brett Porter <br...@gmail.com>.
Clean is a special lifecycle phase.

You can't really shorten it, though you can bind it to a lifecycle
phase so it is run automatically and you never need to run it on the
command line :)

See: Introduction to the build lifecycle in the documentation

- Brett

On 11/22/05, puschteblume <pu...@gmx.de> wrote:
> Hi Stephen
>
> Thanks. But this hint gives you access to the plugin directly, without
> specifying it in the pom or run it by specifying
> groupid:artifact:version ..
>
> Heiko
>
> Stephen Cowx wrote:
>
> > Hi
> >
> > I saw some notes on how to do this in:
> > http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
> >
> > See the section on "Shortening the Command Line"
> >
> > I haven't tried it so I don't know if it works but it seems to be what
> > you are asking for
> >
> > Regards
> >
> > Stephen
> >
> >
> >
> > puschteblume wrote:
> >
> >> I have created a plugin that can be run via buildnumber:create
> >>
> >> Then I remembered that the clean plugin can be startet, by simply run
> >> clean. How I have to declare the plugin that there is a default goal?
> >>
> >> Heiko
> >>
> >> ---------------------------------------------------------------------
> >> 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
>
>

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


Re: [M2] how to run a goal by specifying the plugin only -> default goal?

Posted by puschteblume <pu...@gmx.de>.
Hi Stephen

Thanks. But this hint gives you access to the plugin directly, without 
specifying it in the pom or run it by specifying 
groupid:artifact:version ..

Heiko

Stephen Cowx wrote:

> Hi
>
> I saw some notes on how to do this in:  
> http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
>
> See the section on "Shortening the Command Line"
>
> I haven't tried it so I don't know if it works but it seems to be what 
> you are asking for
>
> Regards
>
> Stephen
>
>
>
> puschteblume wrote:
>
>> I have created a plugin that can be run via buildnumber:create
>>
>> Then I remembered that the clean plugin can be startet, by simply run 
>> clean. How I have to declare the plugin that there is a default goal?
>>
>> Heiko
>>
>> ---------------------------------------------------------------------
>> 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: [M2] how to run a goal by specifying the plugin only -> default goal?

Posted by Stephen Cowx <sc...@explosion-it.net>.
Hi

I saw some notes on how to do this in:  
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html

See the section on "Shortening the Command Line"

I haven't tried it so I don't know if it works but it seems to be what 
you are asking for

Regards

Stephen



puschteblume wrote:

> I have created a plugin that can be run via buildnumber:create
>
> Then I remembered that the clean plugin can be startet, by simply run 
> clean. How I have to declare the plugin that there is a default goal?
>
> Heiko
>
> ---------------------------------------------------------------------
> 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