individual-phases-maven-plugin
A Maven plugin for executing individual lifecycle phases. It is meant to be used in build pipelines, where build steps could be run individually and in parallel.
Getting started
Add individual-phases-maven-plugin
to your project's pom.xml
:
<project>
<profiles>
<profile>
<id>individual-phases</id>
<build>
<plugins>
<plugin>
<groupId>ee.originaal.maven.plugins</groupId>
<artifactId>individual-phases-maven-plugin</artifactId>
<version>[LATEST]</version>
<extensions>true</extensions> <!-- This is important -->
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
A typical usage of the extension
-
Build your project once
mvn clean package -DskipTests
-
Run unit tests without rebuilding your project (with
individual-phases
profile enabled)mvn test -P individual-phases
-
Run integration tests without rebuilding your project (with
individual-phases
profile enabled)mvn pre-integration-test integration-test post-integration-test -P individual-phases
-
See project-artifact-info-maven-plugin for installing and deploying your artifacts without rebuilding your project