Inherited is true by default. Prior to 2.0.9, only executions could be
marked to not inherit, not the entire config.

-----Original Message-----
From: Trevor Harmon [mailto:[email protected]] 
Sent: Tuesday, March 24, 2009 3:04 PM
To: Maven Users List
Subject: Does a plugin with no executions need to be marked inherited?

Hi,

I have a parent POM that configures the Compiler plugin for Java 1.4.  
It modifies the plugin's configuration and does not define any goals  
or executions. In such a situation, does setting the plugin's  
<inherited> element to true have any effect? For example:

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
                <source>1.4</source>
                <target>1.4</target>
        </configuration>
        <inherited>true</inherited>
</plugin>

My tests (using help:effective-pom) indicate that <inherited> has no  
effect on whether this configuration get passed on to children, but  
does anyone know for sure? Thanks,

Trevor


---------------------------------------------------------------------
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