[ 
https://issues.apache.org/jira/browse/MNG-6498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16663445#comment-16663445
 ] 
Luca Botti commented on MNG-6498:
---------------------------------

Closing, since I understand the behaviour is different - all plugins are 
subsituted in a profile based activation.

> 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.3.9, 3.5.2
>            Reporter: Luca Botti
>            Priority: Critical
>             Fix For: waiting-for-feedback
>
>
> 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)

Reply via email to