Or make a batch file magic.bat/magic.sh in your project top directory
which calls Maven with the proper parameters... I wouldn't suggest
doing this as a regular thing, but its OK for dev purposes.

Wayne

On Fri, Apr 10, 2009 at 2:11 AM, Stephen Connolly
<[email protected]> wrote:
> because executing mojos directly never invokes the lifecycle.
>
> you could have a profile with a default goal of validate and with the
> plugins you want bound to the validate phase of the lifecycle
>
> then
>
> mvn -Pmagic
>
> would do it for you (if your profile id is magic)
>
> Sent from my [rhymes with myPod] ;-)
>
> On 10 Apr 2009, at 10:01, nodje <[email protected]> wrote:
>
>>
>> thanks.
>> It works when you chain the goals manually:
>>
>> mvn buildnumber:create jetty:run-exploded does work.
>>
>> Now, I can already hear the developers complaining.
>> Is there a way to tell jetty plugin to execute buildnumber:create?
>>
>> I could add an <execution> section to link the create goal to any jetty
>> invocation, but then it would call the builnumber:create twice, wouldn't it?
>>
>> I can't really understand why
>> mvn buildnumber:create jetty:run-exploded
>> is different from a regular
>> mvn jetty:run-exploded
>> since buildnumber:create is link to the very first lifecycle goal validate
>> anyway.
>>
>> cheers
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to