You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by youhaodeyi <yo...@gmail.com> on 2008/09/05 08:40:23 UTC

How to disable a plugin?

In the parent pom, it includes copy-dependency plugin which I want to disable
in the child pom. I use this configuration:

<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<inherited>false</inherited>
</plugin>

But every time running 'mvn package', it will copy all the dependencies to
the child module. How can I disable this?
-- 
View this message in context: http://www.nabble.com/How-to-disable-a-plugin--tp19325716p19325716.html
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: How to disable a plugin?

Posted by youhaodeyi <yo...@gmail.com>.
This configure works.
thanks

Asgeir S. Nilsen-2 wrote:
> 
> In the submodule where you don't want the plugin to run, add a <plugin>
> element with the following elements within:
> <executions>
>   <execution>
>     <id>some-id</id>
>     <phase>none</phase>
>   </execution>
> </executions>
> 
> On Fri, Sep 5, 2008 at 08:40, youhaodeyi <yo...@gmail.com> wrote:
> 
>>
>> In the parent pom, it includes copy-dependency plugin which I want to
>> disable
>> in the child pom. I use this configuration:
>>
>> <plugin>
>>                               
>> <groupId>org.apache.maven.plugins</groupId>
>>
>>  <artifactId>maven-dependency-plugin</artifactId>
>>                                <inherited>false</inherited>
>> </plugin>
>>
>> But every time running 'mvn package', it will copy all the dependencies
>> to
>> the child module. How can I disable this?
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-disable-a-plugin--tp19325716p19325716.html
>> 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
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-disable-a-plugin--tp19325716p19326911.html
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: How to disable a plugin?

Posted by "Asgeir S. Nilsen" <as...@gmail.com>.
In the submodule where you don't want the plugin to run, add a <plugin>
element with the following elements within:
<executions>
  <execution>
    <id>some-id</id>
    <phase>none</phase>
  </execution>
</executions>

On Fri, Sep 5, 2008 at 08:40, youhaodeyi <yo...@gmail.com> wrote:

>
> In the parent pom, it includes copy-dependency plugin which I want to
> disable
> in the child pom. I use this configuration:
>
> <plugin>
>                                <groupId>org.apache.maven.plugins</groupId>
>
>  <artifactId>maven-dependency-plugin</artifactId>
>                                <inherited>false</inherited>
> </plugin>
>
> But every time running 'mvn package', it will copy all the dependencies to
> the child module. How can I disable this?
> --
> View this message in context:
> http://www.nabble.com/How-to-disable-a-plugin--tp19325716p19325716.html
> 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: How to disable a plugin?

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
The inherited flag in the plugin block is broken, but in 2.0.9 we made
sure the inherited flag inside the execution block does work.

-----Original Message-----
From: youhaodeyi [mailto:youhaodeyi@gmail.com] 
Sent: Friday, September 05, 2008 2:40 AM
To: users@maven.apache.org
Subject: How to disable a plugin?


In the parent pom, it includes copy-dependency plugin which I want to
disable
in the child pom. I use this configuration:

<plugin>
	
<groupId>org.apache.maven.plugins</groupId>
	
<artifactId>maven-dependency-plugin</artifactId>
				<inherited>false</inherited>
</plugin>

But every time running 'mvn package', it will copy all the dependencies
to
the child module. How can I disable this?
-- 
View this message in context:
http://www.nabble.com/How-to-disable-a-plugin--tp19325716p19325716.html
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