Thanks for your suggestions everyone. I decided to go with the shell script
approach.
Jeff
Stephen Connolly-2 wrote:
>
> unless your profile specifies a defaultGoal of validate and you bind
> your execution to the validate phase (hack)
>
> Sent from my [rhymes with tryPod] ;-)
>
> On 1 Dec 2009, at 06:07, Barrie Treloar <[email protected]> wrote:
>
>> On Tue, Dec 1, 2009 at 4:36 PM, Barrie Treloar <[email protected]>
>> wrote:
>>> On Tue, Dec 1, 2009 at 3:35 PM, Anders Hammar <[email protected]>
>>> wrote:
>>>> No. The syntax is
>>>> mvn phase
>>>> or
>>>> mvn plugin:goal
>>>>
>>>> But you could create a shell script/bat file with a better name
>>>> which
>>>> executes "mvn antrun:run".
>>>
>>> Or you could use a profile.
>>>
>>> mvn -Prun-server
>>>
>>> where the profile would invoke your antrun:run goal.
>>
>> Buuuut it will still run the default lifecycle, so it may not work the
>> way you want afterall.
>
>
--
View this message in context:
http://old.nabble.com/Can-you-assign-a-different-name-id-to-an-antrun-goal--tp26582911p26599454.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]