rfscholte commented on a change in pull request #464: URL: https://github.com/apache/maven/pull/464#discussion_r606827891
########## File path: maven-core/src/test/projects/lifecycle-executor/mojo-inline-configuration/pom.xml ########## @@ -0,0 +1,71 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>org.apache.maven.lifecycle.test</groupId> + <artifactId>mojo-inline-configuration</artifactId> + <packaging>jar</packaging> + <version>1.0</version> + <name>project-with-additional-lifecycle-elements</name> + <url>http://maven.apache.org</url> + + <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-clean-plugin</artifactId> + <version>0.1</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>0.1</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-deploy-plugin</artifactId> + <version>0.1</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-install-plugin</artifactId> + <version>0.1</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <version>0.1</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-plugin-plugin</artifactId> + <version>0.1</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>0.1</version> + </plugin> + </plugins> + </pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.its.plugins</groupId> + <artifactId>maven-it-plugin</artifactId> + <version>0.1</version> + <executions> + <execution> + <goals> + <goal>xpp3-reader</goal> + </goals> + <phase>generate-sources</phase> + <configuration> + <models>item1</models> Review comment: This scares me. `models` sounds like plural, wheres is contains only one item. And with plexus you can define how elements should be merged. Here I would expect that items2 overrides item1. To this will make the configuration less clear, so I'm -1 -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org