Skip to content

raigok/individual-phases-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Build your project once

    mvn clean package -DskipTests
  2. Run unit tests without rebuilding your project (with individual-phases profile enabled)

    mvn test -P individual-phases
  3. Run integration tests without rebuilding your project (with individual-phases profile enabled)

    mvn pre-integration-test integration-test post-integration-test -P individual-phases
  4. See project-artifact-info-maven-plugin for installing and deploying your artifacts without rebuilding your project

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published