Skip to content

Commit

Permalink
[MINSTALL-184] Cleanup IT tests
Browse files Browse the repository at this point in the history
remove createChecksum - parameter from tests - was removed in MINSTALL-143
remove updateReleaseInfo - parameter from tests - was removed in MINSTALL-149
refresh plugins versions in tests
  • Loading branch information
slawekjaranowski committed Nov 12, 2022
1 parent f5980b0 commit ce0666e
Show file tree
Hide file tree
Showing 27 changed files with 91 additions and 135 deletions.
11 changes: 11 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,17 @@
<mavenVersion>3.2.5</mavenVersion>
<aetherVersion>1.0.0.v20140518</aetherVersion> <!-- Maven bound -->
<slf4jVersion>1.7.5</slf4jVersion> <!-- Maven bound -->

<!-- plugin versions used in IT tests -->
<mavenAntrunPluginVersion>3.1.0</mavenAntrunPluginVersion>
<mavenCompilerPluginVersion>3.10.1</mavenCompilerPluginVersion>
<mavenEnforcerPluginVersion>3.1.0</mavenEnforcerPluginVersion>
<mavenJarPluginVersion>3.3.0</mavenJarPluginVersion>
<mavenPluginPluginVersion>3.7.0</mavenPluginPluginVersion>
<mavenResourcesPluginVersion>3.3.0</mavenResourcesPluginVersion>
<mavenSourcePluginVersion>3.2.1</mavenSourcePluginVersion>
<mavenSurefirePluginVersion>3.0.0-M7</mavenSurefirePluginVersion>

<project.build.outputTimestamp>2022-07-19T14:21:53Z</project.build.outputTimestamp>
</properties>

Expand Down
1 change: 0 additions & 1 deletion src/it/MINSTALL-108/invoker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@

invoker.goals = clean install
# waiting for MINSTALL-108 fix
invoker.maven.version = 3.2.4+
22 changes: 0 additions & 22 deletions src/it/MINSTALL-108/module1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,4 @@
</parent>
<artifactId>module1</artifactId>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.3.1</version>
<executions>
<execution>
<id>enforce</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<AlwaysPass/>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
8 changes: 4 additions & 4 deletions src/it/MINSTALL-108/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<version>@mavenCompilerPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -54,17 +54,17 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.5</version>
<version>@mavenJarPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<version>@mavenResourcesPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<version>@mavenSurefirePluginVersion@</version>
</plugin>
</plugins>
</build>
Expand Down
8 changes: 4 additions & 4 deletions src/it/MINSTALL-98/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<version>@mavenCompilerPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -54,17 +54,17 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.1</version>
<version>@mavenJarPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.2</version>
<version>@mavenResourcesPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<version>@mavenSurefirePluginVersion@</version>
</plugin>
</plugins>
</build>
Expand Down
8 changes: 4 additions & 4 deletions src/it/MINSTALL-99/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<version>@mavenCompilerPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -54,17 +54,17 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.1</version>
<version>@mavenJarPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.2</version>
<version>@mavenResourcesPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<version>@mavenSurefirePluginVersion@</version>
</plugin>
</plugins>
</build>
Expand Down
16 changes: 8 additions & 8 deletions src/it/attach-jar-checksum/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,30 +41,30 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<version>@mavenCompilerPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>@project.version@</version>
<configuration>
<createChecksum>true</createChecksum>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.1</version>
<version>@mavenJarPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.2</version>
<version>@mavenResourcesPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.0.4</version>
<version>@mavenSourcePluginVersion@</version>
<configuration>
<forceCreation>true</forceCreation>
</configuration>
<executions>
<execution>
<id>attach-sources</id>
Expand All @@ -77,7 +77,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.3.1</version>
<version>@mavenSurefirePluginVersion@</version>
</plugin>
</plugins>
</build>
Expand Down
16 changes: 8 additions & 8 deletions src/it/attach-release-jar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,30 +41,30 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<version>@mavenCompilerPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>@project.version@</version>
<configuration>
<updateReleaseInfo>true</updateReleaseInfo>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.1</version>
<version>@mavenJarPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.2</version>
<version>@mavenResourcesPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.0.4</version>
<version>@mavenSourcePluginVersion@</version>
<configuration>
<forceCreation>true</forceCreation>
</configuration>
<executions>
<execution>
<id>attach-sources</id>
Expand All @@ -77,7 +77,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.3.1</version>
<version>@mavenSurefirePluginVersion@</version>
</plugin>
</plugins>
</build>
Expand Down
1 change: 0 additions & 1 deletion src/it/generate-pom-auto-1/test.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ groupId = org.apache.maven.its.install.gpa1
artifactId = test
version = 0.1
packaging = jar
createChecksum = true
2 changes: 1 addition & 1 deletion src/it/install-at-end-fail/module1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.2</version>
<version>@mavenEnforcerPluginVersion@</version>
<executions>
<execution>
<id>enforce</id>
Expand Down
8 changes: 4 additions & 4 deletions src/it/install-at-end-fail/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<version>@mavenCompilerPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -54,17 +54,17 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.1</version>
<version>@mavenJarPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.2</version>
<version>@mavenResourcesPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<version>@mavenSurefirePluginVersion@</version>
</plugin>
</plugins>
</build>
Expand Down
8 changes: 4 additions & 4 deletions src/it/install-at-end-pass/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<version>@mavenCompilerPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -54,17 +54,17 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.1</version>
<version>@mavenJarPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.2</version>
<version>@mavenResourcesPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<version>@mavenSurefirePluginVersion@</version>
</plugin>
</plugins>
</build>
Expand Down
2 changes: 0 additions & 2 deletions src/it/jar-sources-javadoc/test.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,3 @@ version = 0.1
packaging = jar
javadoc = javadoc.jar
sources = sources.jar
createChecksum = true
updateReleaseInfo = true
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ groupId = gid
artifactId = test
version = 0.1
packaging = jar
createChecksum = true
generatePom = true
localRepositoryPath = target/local-repo
1 change: 0 additions & 1 deletion src/it/local-repo-override-with-checksum/test.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ groupId = gid
artifactId = test
version = 0.1
packaging = jar
createChecksum = true
localRepositoryPath = target/local-repo
14 changes: 7 additions & 7 deletions src/it/no-main-artifact-1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.1</version>
<version>@mavenAntrunPluginVersion@</version>
<configuration>
<tasks>
<target>
<!--
NOTE: The Compiler Plugin sets this as the main artifact file, should be non-existent for this test.
-->
<delete dir="target/classes"/>
</tasks>
</target>
</configuration>
<executions>
<execution>
Expand All @@ -65,12 +65,12 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<version>@mavenCompilerPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.1</version>
<version>@mavenJarPluginVersion@</version>
<configuration>
<classifier>it</classifier>
</configuration>
Expand All @@ -83,12 +83,12 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.2</version>
<version>@mavenResourcesPluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.3.1</version>
<version>@mavenSurefirePluginVersion@</version>
</plugin>
</plugins>
</build>
Expand Down
Loading

0 comments on commit ce0666e

Please sign in to comment.