Skip to content

Commit

Permalink
[#noissue] Improved maven-failsafe-plugin to only work with it-modules
Browse files Browse the repository at this point in the history
  • Loading branch information
emeroad committed Oct 8, 2024
1 parent 34527c4 commit b5f895b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 29 deletions.
9 changes: 8 additions & 1 deletion agent-module/plugins-it/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@
</plugin>
</plugins>
</pluginManagement>


<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
</plugin>
</plugins>

</build>
</project>
57 changes: 29 additions & 28 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1763,6 +1763,34 @@
<artifactId>build-helper-maven-plugin</artifactId>
<version>${plugin.build-helper.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${plugin.failsafe.version}</version>
<configuration>
<jvm>${test.jdk.home}/bin/java</jvm>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
<configuration>
<excludes>
<exclude>**/*Base</exclude>
</excludes>
<includes>
<include>**/*IT.java</include>
</includes>
<!-- AbstractPinpointPluginTestSuite needs this to resolve
path of required jars -->
<useSystemClassLoader>false</useSystemClassLoader>
</configuration>
</execution>
</executions>
</plugin>

<!-- reporting -->
<plugin>
Expand Down Expand Up @@ -1906,34 +1934,7 @@
<reuseForks>true</reuseForks>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${plugin.failsafe.version}</version>
<configuration>
<jvm>${test.jdk.home}/bin/java</jvm>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
<configuration>
<excludes>
<exclude>**/*Base</exclude>
</excludes>
<includes>
<include>**/*IT.java</include>
</includes>
<!-- AbstractPinpointPluginTestSuite needs this to resolve
path of required jars -->
<useSystemClassLoader>false</useSystemClassLoader>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
Expand Down

0 comments on commit b5f895b

Please sign in to comment.