You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by szefo <sz...@o2.pl> on 2007/09/04 21:02:41 UTC
exec-maven-plugin -> how to skip execution in a sub-project
Hi,
My project has a structure similar to this:
root
+child1
+child2
I use the exec goal in the root project.
During the compilation process of both children the "exec goal" from root
project is executed and causes errors - thus I would like to skip it. I
would like it to be executed only during the compilation of the root
project.
How can I achieve it?
Thanks in advance.
Tom
--
View this message in context: http://www.nabble.com/exec-maven-plugin--%3E-how-to-skip-execution-in-a-sub-project-tf4379678s177.html#a12484500
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: exec-maven-plugin -> how to skip execution in a sub-project
Posted by szefo <sz...@o2.pl>.
Inherited=false works!
Thanks
Wayne Fay wrote:
>
> This should work. In root/pom.xml, in the exec plugin config, set
> inherited=false.
> <plugin>
> <artifactId>maven-exec-plugin</artifactId>
> <inherited>false</inherited>
>
> Alternatively, you could put the exec plugin in a profile, and only
> use that profile when building from the root ie -Pdoexec.
>
> Wayne
>
> On 9/4/07, szefo <sz...@o2.pl> wrote:
>>
>> Hi,
>> My project has a structure similar to this:
>>
>> root
>> +child1
>> +child2
>>
>> I use the exec goal in the root project.
>> During the compilation process of both children the "exec goal" from root
>> project is executed and causes errors - thus I would like to skip it. I
>> would like it to be executed only during the compilation of the root
>> project.
>> How can I achieve it?
>> Thanks in advance.
>> Tom
>> --
>> View this message in context:
>> http://www.nabble.com/exec-maven-plugin--%3E-how-to-skip-execution-in-a-sub-project-tf4379678s177.html#a12484500
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/exec-maven-plugin--%3E-how-to-skip-execution-in-a-sub-project-tf4379678s177.html#a12485061
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: exec-maven-plugin -> how to skip execution in a sub-project
Posted by Wayne Fay <wa...@gmail.com>.
This should work. In root/pom.xml, in the exec plugin config, set
inherited=false.
<plugin>
<artifactId>maven-exec-plugin</artifactId>
<inherited>false</inherited>
Alternatively, you could put the exec plugin in a profile, and only
use that profile when building from the root ie -Pdoexec.
Wayne
On 9/4/07, szefo <sz...@o2.pl> wrote:
>
> Hi,
> My project has a structure similar to this:
>
> root
> +child1
> +child2
>
> I use the exec goal in the root project.
> During the compilation process of both children the "exec goal" from root
> project is executed and causes errors - thus I would like to skip it. I
> would like it to be executed only during the compilation of the root
> project.
> How can I achieve it?
> Thanks in advance.
> Tom
> --
> View this message in context: http://www.nabble.com/exec-maven-plugin--%3E-how-to-skip-execution-in-a-sub-project-tf4379678s177.html#a12484500
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org