Affects Version/s: 3.3.1
Fix Version/s: None
Environment:-- OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
-- Default locale: ru_RU, platform encoding: Cp1251
-- Java version: 1.8.0_77, vendor: Oracle Corporation
-- Apache Maven 3.3.1 (cab6659f9874fa96462afef40fcf6bc033d58c1c; 2015-03-13T23:10:27+03:00)
See attached repro:
In some specific cases inherited executions order (on single phase) is corrupted after merge with executions from profile.
1. Steps to reproduce:
1.1. cd to mng-4416-reproducer/server-app/env-modules/child-with-profile-disabled/
1.2. mvn initialize:
U can see expected plugin execution ordering: grandparent executions first, parent executions after.
1.3. cd to mng-4416-reproducer/server-app/env-modules/child-with-profile-enabled/
1.4. mvn initialize:
As you see this is affected execution order: parent first, grandparent after. It doesn`t metter, what grandparent-parent
order consider to correct, but order must not be changed when profile activated!
2. Reproduced on environment:
– OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
– Default locale: ru_RU, platform encoding: Cp1251
– Java version: 1.8.0_77, vendor: Oracle Corporation
– Apache Maven 3.3.1 (cab6659f9874fa96462afef40fcf6bc033d58c1c; 2015-03-13T23:10:27+03:00)
3. Special conditions to reproduce:
3.1. plugin in test-profile (parent/pom.xml) must be the same as plugin defined before affected executions(grandparent/pom.xml).
That is, in our case maven-compiler-plugin and maven-compiler-plugin
3.2. affected plugins must have different types: maven-antrun-plugin in grandparent and gmaven-plugin in parent. Tried
with gmaven-plugin on grandparent – cant reporduce.
3.3. depends on directory structure. Tried in flat structure – cant reproduce.