You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/07/01 10:10:36 UTC
[GitHub] [maven-integration-testing] michael-o commented on a diff in pull request #178: Use a plugin to download all dependencies to bypass conflict resolution
michael-o commented on code in PR #178:
URL: https://github.com/apache/maven-integration-testing/pull/178#discussion_r911819991
##########
core-it-suite/pom.xml:
##########
@@ -82,6 +82,8 @@ under the License.
<proxy.nonProxyHosts>localhost</proxy.nonProxyHosts>
<slf4jVersion>1.6.1</slf4jVersion>
<jetty9Version>9.0.4.v20130625</jetty9Version>
+
+ <stubPluginVersion>0.1-stub-SNAPSHOT</stubPluginVersion>
Review Comment:
Where is this used?
##########
core-it-suite/src/test/resources-filtered/bootstrap.txt:
##########
@@ -0,0 +1,162 @@
+#0
+#1 This file contains a list of artifacts that will be downloaded (with their transitive dependencies)
+#2 during the bootstrap phase.
+#3 It should be kept sorted alphabetically using the following command:
+#4 mv bootstrap.txt tmp.txt && cat tmp.txt | sort -u > bootstrap.txt && rm tmp.txt
+#5
+com.google.code.findbugs:jsr305:1.3.9
+com.google.guava:guava:10.0.1
+com.thoughtworks.qdox:qdox:2.0-M9
+commons-lang:commons-lang:2.6
+junit:junit:4.12
+org.apache.ant:ant:1.10.8
+org.apache.geronimo.specs:geronimo-jcdi_2.0_spec:1.3
+org.apache.groovy:groovy-ant:4.0.0-alpha-3
+org.apache.groovy:groovy:4.0.0-alpha-3
+org.apache.maven.its.plugins.class-loader:dep-c:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-active-collection:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-all:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-ant-based:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-artifact:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-class-loader:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-configuration:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-context-passing:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-dependency-collection:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-dependency-resolution:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-error:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-expression:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-extension-consumer:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-extension-provider:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-extension1:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-extension2:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-fork:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-invalid-descriptor:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-log-file:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-log4j:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-no-default-comp:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-no-project:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-online:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-optional-mojos:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-packaging:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-parameter-implementation:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-plexus-component-api:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-plexus-utils-11:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-plexus-utils-new:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-plugin-dependency:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-project:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-setter:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-singleton-component:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-site:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-toolchain:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-touch:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-uses-properties:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-uses-wagon:2.1-SNAPSHOT
+org.apache.maven.its.plugins:mng-5805-pkg-type-mojo-configuration-extension2:2.1-SNAPSHOT
+org.apache.maven.its.plugins:mng-5805-pkg-type-mojo-configuration-extension:2.1-SNAPSHOT
+org.apache.maven.its.plugins:mng-5805-pkg-type-mojo-configuration-plugin:2.1-SNAPSHOT
+org.apache.maven.its.plugins:mng-5958-pkg-type-extension:2.1-SNAPSHOT
+org.apache.maven.its:core-it-extension:2.1-SNAPSHOT
+org.apache.maven.its:core-it-toolchain:2.1-SNAPSHOT
+org.apache.maven.its:core-it-wagon:2.1-SNAPSHOT
Review Comment:
If this file is filtered I would replace `2.1-SNAPSHOT` with `${project.version}`, no?
##########
core-it-suite/src/test/resources/bootstrap/pom.xml:
##########
@@ -20,131 +20,44 @@ under the License.
-->
<project>
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>org.apache.maven.its.bootstrap</groupId>
- <artifactId>maven-it-boostrap</artifactId>
- <version>1.0</version>
- <packaging>pom</packaging>
-
- <name>Maven Integration Test :: Boostrap</name>
- <description>
- This project pulls down all the artifacts/plugins required for the IT suite. Due to MNG-2974, snapshot versions of
- plugins cannot be downloaded by Maven from non-default repositories configured in the POM if the plugin is invoked
- directly from the command line. Also, having this in a central place spares us from copying the snapshot repo
- config all around in the IT POMs.
- </description>
-
- <modules>
- <!-- Dependencies are split into groups when conflict resolution would otherwise prevent downloads -->
- <module>group-1</module>
- <module>group-2</module>
- <module>group-3</module>
- <module>group-4</module>
- <module>group-5</module>
- <module>group-6</module>
- <module>group-7</module>
- <module>group-8</module>
- <module>group-9</module>
- <module>group-10</module>
- <module>group-11</module>
- <module>group-12</module>
- <module>group-13</module>
- <module>group-14</module>
- <module>group-15</module>
- </modules>
-
- <properties>
- <maven.test.skip>true</maven.test.skip>
- </properties>
-
- <build>
- <!-- This merely locks the plugin versions to disable auto-update -->
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.0.2</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>2.2</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-ejb-plugin</artifactId>
- <version>2.5.1</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.7</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-ear-plugin</artifactId>
- <version>2.8</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <version>2.6</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.12.4</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>flatten-maven-plugin</artifactId>
- <version>1.0.0</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>3.1.0</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-wrapper-plugin</artifactId>
- <version>3.1.0</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <version>3.1.1</version>
- <configuration>
- <includeScope>runtime</includeScope>
- <prependGroupId>true</prependGroupId>
- </configuration>
- <executions>
- <execution>
- <id>get-all-plugins-deps</id>
- <phase>pre-integration-test</phase>
- <inherited>false</inherited><!-- only parent pom selects plugins -->
- <goals>
- <goal>resolve-plugins</goal>
- </goals>
- <configuration>
- <outputFile>${project.build.directory}/resolve-plugins.txt</outputFile>
- </configuration>
- </execution>
- <execution>
- <id>get-all-deps</id>
- <phase>pre-integration-test</phase>
- <goals>
- <goal>resolve</goal>
- </goals>
- <configuration>
- <sort>true</sort>
- <outputScope>false</outputScope>
- <outputFile>${project.build.directory}/resolve.txt</outputFile>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.its.bootstrap</groupId>
+ <artifactId>maven-it-boostrap</artifactId>
+ <version>1.0</version>
+ <packaging>pom</packaging>
+
+ <name>Maven Integration Test :: Boostrap</name>
+ <description>
+ This project pulls down all the artifacts/plugins required for the IT suite. Due to MNG-2974, snapshot versions of
+ plugins cannot be downloaded by Maven from non-default repositories configured in the POM if the plugin is invoked
+ directly from the command line. Also, having this in a central place spares us from copying the snapshot repo
+ config all around in the IT POMs.
+ </description>
+
+ <properties>
+ <maven.test.skip>true</maven.test.skip>
+ </properties>
+
+ <build>
+ <!-- This merely locks the plugin versions to disable auto-update -->
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.its</groupId>
+ <artifactId>maven-it-plugin-bootstrap</artifactId>
+ <version>2.1-SNAPSHOT</version>
Review Comment:
`${project.version}`?
##########
core-it-suite/src/test/resources-filtered/bootstrap.txt:
##########
@@ -0,0 +1,162 @@
+#0
+#1 This file contains a list of artifacts that will be downloaded (with their transitive dependencies)
+#2 during the bootstrap phase.
+#3 It should be kept sorted alphabetically using the following command:
Review Comment:
commands
##########
core-it-suite/src/test/resources-filtered/bootstrap.txt:
##########
@@ -0,0 +1,162 @@
+#0
+#1 This file contains a list of artifacts that will be downloaded (with their transitive dependencies)
+#2 during the bootstrap phase.
+#3 It should be kept sorted alphabetically using the following command:
+#4 mv bootstrap.txt tmp.txt && cat tmp.txt | sort -u > bootstrap.txt && rm tmp.txt
+#5
+com.google.code.findbugs:jsr305:1.3.9
+com.google.guava:guava:10.0.1
+com.thoughtworks.qdox:qdox:2.0-M9
+commons-lang:commons-lang:2.6
+junit:junit:4.12
+org.apache.ant:ant:1.10.8
+org.apache.geronimo.specs:geronimo-jcdi_2.0_spec:1.3
+org.apache.groovy:groovy-ant:4.0.0-alpha-3
+org.apache.groovy:groovy:4.0.0-alpha-3
+org.apache.maven.its.plugins.class-loader:dep-c:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-active-collection:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-all:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-ant-based:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-artifact:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-class-loader:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-configuration:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-context-passing:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-dependency-collection:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-dependency-resolution:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-error:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-expression:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-extension-consumer:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-extension-provider:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-extension1:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-extension2:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-fork:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-invalid-descriptor:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-log-file:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-log4j:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-no-default-comp:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-no-project:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-online:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-optional-mojos:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-packaging:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-parameter-implementation:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-plexus-component-api:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-plexus-utils-11:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-plexus-utils-new:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-plugin-dependency:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-project:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-setter:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-singleton-component:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-site:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-toolchain:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-touch:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-uses-properties:2.1-SNAPSHOT
+org.apache.maven.its.plugins:maven-it-plugin-uses-wagon:2.1-SNAPSHOT
+org.apache.maven.its.plugins:mng-5805-pkg-type-mojo-configuration-extension2:2.1-SNAPSHOT
+org.apache.maven.its.plugins:mng-5805-pkg-type-mojo-configuration-extension:2.1-SNAPSHOT
+org.apache.maven.its.plugins:mng-5805-pkg-type-mojo-configuration-plugin:2.1-SNAPSHOT
+org.apache.maven.its.plugins:mng-5958-pkg-type-extension:2.1-SNAPSHOT
+org.apache.maven.its:core-it-extension:2.1-SNAPSHOT
+org.apache.maven.its:core-it-toolchain:2.1-SNAPSHOT
+org.apache.maven.its:core-it-wagon:2.1-SNAPSHOT
+org.apache.maven.its:maven-core-it-support:1.0
+org.apache.maven.its:maven-core-it-support:1.3
+org.apache.maven.its:maven-core-it-support:1.4
+org.apache.maven.plugins:maven-antrun-plugin:3.0.0
+org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5
+org.apache.maven.plugins:maven-assembly-plugin:3.1.0
+org.apache.maven.plugins:maven-clean-plugin:0.1-stub-SNAPSHOT
+org.apache.maven.plugins:maven-clean-plugin:2.5
+org.apache.maven.plugins:maven-compiler-plugin:0.1-stub-SNAPSHOT
+org.apache.maven.plugins:maven-compiler-plugin:2.0.2
+org.apache.maven.plugins:maven-compiler-plugin:3.1
+org.apache.maven.plugins:maven-compiler-plugin:3.8.1
+org.apache.maven.plugins:maven-dependency-plugin:2.7
+org.apache.maven.plugins:maven-dependency-plugin:2.8
+org.apache.maven.plugins:maven-deploy-plugin:0.1-stub-SNAPSHOT
Review Comment:
Same for this, no?
--
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-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org