lfvjimisola commented on PR #1209:
URL: https://github.com/apache/maven/pull/1209#issuecomment-2839728140

   > > One challenge we have with Maven Tiles is that plugin configurations for 
the same plugin will overwrite each other. How is this handled with mixins?
   > 
   > They use the same mechanism as parents, so it will be like if one plugin 
definition is in the parent and the other one in the grand-parent. They end up 
being merged. The order will have to be clearly specified though.
   
   When you say merged - in what way?
   
   A (parent):
   
   ```
       <build>
           <plugins>
               <plugin>
                   <groupId>plugin</groupId>
                   <artifactId>plugin</artifactId>
                   <configuration>
                       <a>a</a>
                       <c>a</c>
                   </configuration>
               </plugin>
           </plugins>
       </build>
   ```
   
   B (child)
   
   ```
       <build>
           <plugins>
               <plugin>
                   <groupId>plugin</groupId>
                   <artifactId>plugin</artifactId>
                   <configuration>
                       <b>b</b>
                       <c>b</c>
                   </configuration>
               </plugin>
           </plugins>
       </build>
   
   ```
   
   What would be the outcome of the above?
   
   1. The entire plugin is configured by A or B depending on order
   2. Everything is merged but A has priority so
                       <a>a</a>
                       <b>b</b>
                       <c>a</c>
   3. Everything is merged but B has priority so
                       <a>a</a>
                       <b>b</b>
                       <c>b</c>
   4. other outcome


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to