Skip to content

Commit

Permalink
Merge pull request #645 from bjhargrave/it-maven-target-version
Browse files Browse the repository at this point in the history
Raise maven target version to 3.8.1 and add integration test execution for the maven target version
  • Loading branch information
bjhargrave authored Aug 28, 2024
2 parents 030ef80 + 5c13f2b commit 34d4f9d
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 5 deletions.
4 changes: 4 additions & 0 deletions bnd-plugins/org.eclipse.transformer.bnd.analyzer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
Expand Down
6 changes: 5 additions & 1 deletion maven-plugins/transformer-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,14 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
</project>
40 changes: 36 additions & 4 deletions org.eclipse.transformer.parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<assertj.version>3.26.3</assertj.version>
<xmlunit.version>2.10.0</xmlunit.version>
<bytebuddy.version>1.15.0</bytebuddy.version>
<maven.target.version>3.3.9</maven.target.version>
<maven.target.version>3.8.1</maven.target.version>
<shrinkwrap.version>1.2.6</shrinkwrap.version>
<!-- Reproducible build -->
<project.build.outputTimestamp>1980-02-01T00:00:00Z</project.build.outputTimestamp>
Expand Down Expand Up @@ -180,6 +180,27 @@ SPDX-License-Identifier: ${project.licenses[0].name}
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.8.0</version>
<executions>
<execution>
<id>maven-target-version</id>
<phase>pre-integration-test</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.apache.maven</groupId>
<artifactId>apache-maven</artifactId>
<version>${maven.target.version}</version>
<classifier>bin</classifier>
<type>zip</type>
<outputDirectory>${project.build.directory}/it</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -213,9 +234,10 @@ SPDX-License-Identifier: ${project.licenses[0].name}
<configuration>
<projectsDirectory>${basedir}/src/it</projectsDirectory>
<settingsFile>${basedir}/src/it/settings.xml</settingsFile>
<localRepositoryPath>${project.build.directory}/it-repo</localRepositoryPath>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
<localRepositoryPath>${project.build.directory}/it/${mojo.executionId}/repo</localRepositoryPath>
<cloneProjectsTo>${project.build.directory}/it/${mojo.executionId}/projects</cloneProjectsTo>
<cloneClean>true</cloneClean>
<reportsDirectory>${project.build.directory}/invoker-reports/${mojo.executionId}</reportsDirectory>
<properties>
<project.build.sourceEncoding>${project.build.sourceEncoding}</project.build.sourceEncoding>
<project.reporting.outputEncoding>${project.reporting.outputEncoding}</project.reporting.outputEncoding>
Expand All @@ -241,6 +263,16 @@ SPDX-License-Identifier: ${project.licenses[0].name}
<goal>run</goal>
</goals>
</execution>
<execution>
<id>integration-test-maven-target-version</id>
<goals>
<goal>install</goal>
<goal>run</goal>
</goals>
<configuration>
<mavenHome>${project.build.directory}/it/apache-maven-${maven.target.version}</mavenHome>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
Expand Down Expand Up @@ -528,7 +560,7 @@ SPDX-License-Identifier: ${project.licenses[0].name}
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-aether-provider</artifactId>
<version>${maven.target.version}</version>
<version>3.3.9</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down

0 comments on commit 34d4f9d

Please sign in to comment.