RE: Execute only a specific phase
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 you can set activation conditions e.g target-env dev http://maven.apache.org/ref/2.0.8/maven-model/maven.html Tack/tack Martin- - Original Message - From: "Doron Solomon" <[EMAIL PROTECTED]> To: 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]
Re: Execute only a specific phase
for each you can set activation conditions e.g target-env dev http://maven.apache.org/ref/2.0.8/maven-model/maven.html Tack/tack Martin- - Original Message - From: "Doron Solomon" <[EMAIL PROTECTED]> To: 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]
RE: Execute only a specific phase
You can't do that. What you could attempt to do is call the plugin:goal that might be bound to this phase. Like jar:package. -Original Message- From: Doron Solomon [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2008 2:57 PM To: users@maven.apache.org 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]
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]