These answer my "unstated" question - does what I'm trying to do make sense :)? I currently do execute via ant, but thought I could do the same using maven. Guess I'll scrap the idea and stick with ant.

Thanks for the help.
Mike

Wendy Smoak wrote:
On 2/15/07, Mike Darretta <[EMAIL PROTECTED]> wrote:

I know this is a very simple question, but I'm lost on how to solve it.

I want to add an antrun task to my pom.xml that I can execute outside of
any lifecycle phase. In short, I want to run it much like a normal ant goal.


Half of me wants to say, "Then why not just use Ant?" and the other
half wants to know what you're doing in those tasks.  The default
lifecycle covers most situations, what are you doing that doesn't fit?

In any case, there is no getting around the fact that Maven is
lifecycle based.  Since it does work if you bind to a phase, try doing
that, and put it in a profile.  Then 'mvn antrun:run [phase]
-Pmyprofile' should work.


--

Mike Darretta
NIC Web Project Lead
Computer Sciences Corporation (CSC)
(o) 831.656.4324
(c) 209.814.2774
[EMAIL PROTECTED]

------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.
------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to