Re: Need Help | Restricting execution to a particular phase only
Hi Shinjan, I haven't tried doing this, but maybe you'd like to send me your build logs so I can help you debug. For now, all I'm sure is that executing a single phase is not possible without executing the preceeding phases. Dawn I hav shinjan sen wrote: > > Hi Dawn, > Thanks for the input. Well in my case, as one activity of my build script, > I actually need to invoke another build script written in ant which has > separate targets for executing test cases and compilation of java source. > Its an old script and needs to be retained. So in this case adding the > command line parameter to switch off maven-surefire-plugin didn't help and > that's why was wondering if there was any workaround through which I can > restrict the execution to one section of the two execution blocks in my > script. > Thanks a lot, > Shinjan > > On 1/8/07, dawn.angelito <[EMAIL PROTECTED]> wrote: >> >> >> Hi, >> >> If a build phase is called, it will execute not only this phase but also >> every phase prior to the specified build phase. There is no way you can >> restrict the execution to only one phase. You can specify a "goal" >> though. >> >> Anyway, you can't skip the test phase. However, if you want to skip the >> tests (maven-surefire-plugin), you can just add "-Dmaven.test.skip=true". >> >> Hope this helps. >> >> Dawn >> >> >> shinjan sen wrote: >> > >> > Hi, >> > I wanted to restrict the execution of maven-antrun-plugin to a >> particular >> > phase. Normally if we specify the phase as "install" then whatever is >> > specified in the phase "install" gets executed alongwith phases >> preceeding >> > that in maven execution hierarchy, for example, test, compile etc. >> > Is there any way in which I can restrict execution to only one phase >> while >> > execution of the pom file. >> > I have the following pom.xml : >> > >> > http://maven.apache.org/POM/4.0.0"; xmlns:xsi=" >> > http://www.w3.org/2001/XMLSchema-instance"; >> > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 >> > http://maven.apache.org/maven-v4_0_0.xsd";> >> > 4.0.0 >> > test >> > components-test >> > 1.0 >> > pom >> > >> > >> > >> >maven-antrun-plugin >> > >> > >> >one >> >install >> > no >> > >> > >> > >> > >> > >> > >> > run >> > >> > >> > >> > two >> >test >> > >> > >> > > > message="test"/> >> > >> > >> > >> > run >> > >> > >> > >> > >> > >> > >> > >> > >> > Here I have two phases "install" and "test". While executing install is >> > there any way in which I can skip the phase "test". >> > Any pointers will be of great help for me. >> > Thanks in advance, >> > >> > Regards, >> > Shinjan >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Need-Help-%7C-Restricting-execution-to-a-particular-phase-only-tf2929911s177.html#a8211943 >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/Need-Help-%7C-Restricting-execution-to-a-particular-phase-only-tf2929911s177.html#a8214402 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need Help | Restricting execution to a particular phase only
Hi Dawn, Thanks for the input. Well in my case, as one activity of my build script, I actually need to invoke another build script written in ant which has separate targets for executing test cases and compilation of java source. Its an old script and needs to be retained. So in this case adding the command line parameter to switch off maven-surefire-plugin didn't help and that's why was wondering if there was any workaround through which I can restrict the execution to one section of the two execution blocks in my script. Thanks a lot, Shinjan On 1/8/07, dawn.angelito <[EMAIL PROTECTED]> wrote: Hi, If a build phase is called, it will execute not only this phase but also every phase prior to the specified build phase. There is no way you can restrict the execution to only one phase. You can specify a "goal" though. Anyway, you can't skip the test phase. However, if you want to skip the tests (maven-surefire-plugin), you can just add "-Dmaven.test.skip=true". Hope this helps. Dawn shinjan sen wrote: > > Hi, > I wanted to restrict the execution of maven-antrun-plugin to a particular > phase. Normally if we specify the phase as "install" then whatever is > specified in the phase "install" gets executed alongwith phases preceeding > that in maven execution hierarchy, for example, test, compile etc. > Is there any way in which I can restrict execution to only one phase while > execution of the pom file. > I have the following pom.xml : > > http://maven.apache.org/POM/4.0.0"; xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd";> > 4.0.0 > test > components-test > 1.0 > pom > > > >maven-antrun-plugin > > >one >install > no > > > > > > > run > > > > two >test > > > message="test"/> > > > > run > > > > > > > > > Here I have two phases "install" and "test". While executing install is > there any way in which I can skip the phase "test". > Any pointers will be of great help for me. > Thanks in advance, > > Regards, > Shinjan > > -- View this message in context: http://www.nabble.com/Need-Help-%7C-Restricting-execution-to-a-particular-phase-only-tf2929911s177.html#a8211943 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need Help | Restricting execution to a particular phase only
Hi, If a build phase is called, it will execute not only this phase but also every phase prior to the specified build phase. There is no way you can restrict the execution to only one phase. You can specify a "goal" though. Anyway, you can't skip the test phase. However, if you want to skip the tests (maven-surefire-plugin), you can just add "-Dmaven.test.skip=true". Hope this helps. Dawn shinjan sen wrote: > > Hi, > I wanted to restrict the execution of maven-antrun-plugin to a particular > phase. Normally if we specify the phase as "install" then whatever is > specified in the phase "install" gets executed alongwith phases preceeding > that in maven execution hierarchy, for example, test, compile etc. > Is there any way in which I can restrict execution to only one phase while > execution of the pom file. > I have the following pom.xml : > > http://maven.apache.org/POM/4.0.0"; xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd";> > 4.0.0 > test > components-test > 1.0 > pom > > > >maven-antrun-plugin > > >one >install > no > > > > > > > run > > > > two >test > > > message="test"/> > > > > run > > > > > > > > > Here I have two phases "install" and "test". While executing install is > there any way in which I can skip the phase "test". > Any pointers will be of great help for me. > Thanks in advance, > > Regards, > Shinjan > > -- View this message in context: http://www.nabble.com/Need-Help-%7C-Restricting-execution-to-a-particular-phase-only-tf2929911s177.html#a8211943 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need Help | Restricting execution to a particular phase only
Hi, I wanted to restrict the execution of maven-antrun-plugin to a particular phase. Normally if we specify the phase as "install" then whatever is specified in the phase "install" gets executed alongwith phases preceeding that in maven execution hierarchy, for example, test, compile etc. Is there any way in which I can restrict execution to only one phase while execution of the pom file. I have the following pom.xml : http://maven.apache.org/POM/4.0.0"; xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> 4.0.0 test components-test 1.0 pom maven-antrun-plugin one install no run two test run Here I have two phases "install" and "test". While executing install is there any way in which I can skip the phase "test". Any pointers will be of great help for me. Thanks in advance, Regards, Shinjan