You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Luca Botti (JIRA)" <ji...@apache.org> on 2018/10/24 17:41:00 UTC
[jira] [Created] (MNG-6498) Order plugin execution changes
depending on profile activation method
Luca Botti created MNG-6498:
-------------------------------
Summary: Order plugin execution changes depending on profile activation method
Key: MNG-6498
URL: https://issues.apache.org/jira/browse/MNG-6498
Project: Maven
Issue Type: Bug
Components: Profiles
Affects Versions: 3.5.2, 3.3.9
Reporter: Luca Botti
In a project with parent child relationship (and spring boot maven plugin) I can observe that the order of execution of same phase plugins (boot maven plugin and spotify docker plugin, both of which activate in the package phase) is not preserved if profile is activated with the file exists.
As an example, the spring boot maven plugin left in the default build / pluginManagement section will not be activated if I add a profile like the following:
{noformat}
<profiles>
<profile>
<id>local-docker-image</id>
<activation>
<activeByDefault>false</activeByDefault>
<file>
<exists>${basedir}/src/main/docker/Dockerfile</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>${docker.maven.plugin.version}</version>
<executions>
<execution>
<id>build-image</id>
<phase>package</phase>
<goals>
<goal>build</goal>
{noformat}
The docker plugin will file trying to find the artifact jar (which gets renamed from the boot maven plugin, because the execution order is
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)