Hi Martin,

Thanks for your reply.  Unfortunately, I don't see how a profile can be
used to include/exclude certain phases of a lifecycle.  Can you please
elaborate?

Thanks,
Doron

-----Original Message-----
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: March 15, 2008 00:24
To: Doron Solomon
Cc: Maven Users List
Subject: Re: Execute only a specific phase

for each <profile>

you can set activation conditions e.g
      <activation>
        <property>
   <name>target-env</name>
   <value>dev</value>
 </property>
      </activation>

http://maven.apache.org/ref/2.0.8/maven-model/maven.html

Tack/tack
Martin-
----- Original Message -----
From: "Doron Solomon" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, March 14, 2008 1:57 PM
Subject: Execute only a specific phase


Hi,

I'm wondering if there's a way to execute ONLY a given phase of a
lifecycle.  For example, let's say I only want to execute the 'package'
phase.  Calling the specific goal that I might expect to be associated
to that phase isn't good enough because the POM might have configured
additional goals to that phase, and I want to execute all of them.

In particular, say I want to execute only the 'package' phase on an
aggregate (parent) POM.  If some of the modules of this POM are jars,
some are wars, etc. then I cannot call a particular goal; I need maven
to figure out which goal(s) to execute for that phase for each module.

Thanks,
Doron

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



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

Reply via email to