Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.6.0
-
None
-
None
-
None
Description
I have a parent pom file with the following inside the build tag:
<pluginManagement> <plugins> ... <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.2</version> </plugin> </plugins> </pluginManagement>
And I have a child pom (a direct child) that has the following in the build tag:
<plugins> ... <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> </plugin> </plugins>
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.