Frank Jakop created MINVOKER-180: ------------------------------------ Summary: Profiles are passed to invoked executions since version 1.6 Key: MINVOKER-180 URL: https://jira.codehaus.org/browse/MINVOKER-180 Project: Maven Invoker Plugin Issue Type: Bug Affects Versions: 1.9, 1.8, 1.7, 1.6 Environment: Maven 3.2.3 Reporter: Frank Jakop Priority: Blocker Attachments: maven-invoker-profile-inheritance.zip
We recently upgraded to version > 1.5 (tried all versions) of invoker plugin and it seems to me that starting with 1.6 all profiles, which are activated on the invoker-triggering project are now passed into the invoked lifecycles. This is a blocker for us, because now too much mojo executions take place, which fail our builds. I attached a test case. To reproduce, unpack and go to maven-invoker-profile-inheritance. Run "mvn generate-resources -PmyProfile" and you see the echo mojo being executed and printing "########## Running in myProfile ##########". Now change the version of invoker plugin to 1.5 and repeat the test. You will notice that the mojo is not executed. According to the docs this is the expected behaviour, since we do not have invoker.profiles file and do set the profiles for the invocation explicitly. -- This message was sent by Atlassian JIRA (v6.1.6#6162)