Skip to content

Instantly share code, notes, and snippets.

@BenjaminKlatt
Created February 14, 2021 10:06
Show Gist options
  • Save BenjaminKlatt/2e8d72776457a9636166354167e576d7 to your computer and use it in GitHub Desktop.
Save BenjaminKlatt/2e8d72776457a9636166354167e576d7 to your computer and use it in GitHub Desktop.
Maven configuration to run integration tests only for integration test maven module
<!-- Integration Test Phase with failsafe -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<configuration>
<excludes>
<exclude>*</exclude>
</excludes>
</configuration>
</plugin>
<!-- Skip install and deploy phase for integration tests -->
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment