Rik Schaaf created MNG-6690:
-------------------------------

             Summary: Child pom doesn't use the plugin version specified in the 
parent pom plugin management
                 Key: MNG-6690
                 URL: https://issues.apache.org/jira/browse/MNG-6690
             Project: Maven
          Issue Type: Bug
    Affects Versions: 3.6.0
            Reporter: Rik Schaaf


I have a parent pom file with the following inside the build tag:
{code}
        <pluginManagement>
            <plugins>
                  ...
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.22.2</version>
                </plugin>
            </plugins>
        </pluginManagement>
{code}
And I have a child pom (a direct child) that has the following in the build tag:

{code}
        <plugins>
             ...
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
            </plugin>
        </plugins>
{code}

My expectation is that the build will use version 2.22.2 of the maven surefire 
plugin. 

Instead it runs using version 2.22.1. Only when I explicitly specify the 
version in the child pom, the build uses version 2.22.2. 

I think this is a bug, or at the very least VERY unintuitive behavior.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to