Q: Why maven compiler plugin in child pom not inheriting configuration from compiler plug in parent pom My parent pom defines maven compiler plugin as :
<pluginManagement>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>2.3.2</version>
             <inherited>true</inherited>
            <configuration>
                <source>1.7</source>
                <target>1.7</target>
            </configuration>
        </plugin>
    </plugins>
</pluginManagement>

My child pom not inheriting the above plugin from parent pom, even I tried referencing the parent pom plugin as follows :
<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <!-- inherits config from parent -->
        </plugin>
    </plugins>
</build>

Please help, how to refer parent pom compiler plugin in child pom. 
