Skip to content

A Maven lifecycle plugin, like "jar" but with no "package", "deploy", or "release" phase.

License

Apache-2.0, Apache-2.0 licenses found

Licenses found

Apache-2.0
LICENSE
Apache-2.0
LICENSE.md
Notifications You must be signed in to change notification settings

rwperrott/rwperrott-transient-lifecycle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

transient-lifecycle-extension

A Maven lifecycle plugin, like "jar", but with with no "package", "deploy", or "release" phase.

It was created for transient test projects, and for speculative creation of transient release modules for multi-release jars, where I don't want anything installed in the local repo, or a remote one, thus the "transient" name.

Use like this:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <!-- ... -->
    <groupId>.</groupId>
    <artifactId>.</artifactId>
    <version>.</version>
    <packaging>transient</packaging> <!-- use "transient" packaging -->
    <!-- ... -->
    <build>
        <!-- ... -->
        <extensions>
            <extension> <!-- Register "transient" packaging -->
                <groupId>rwperrott.maven.plugins</groupId>
                <artifactId>rwperrott-transient-lifecycle-extension</artifactId>
                <version>1.1.1-SNAPSHOT</version>
            </extension>
            <!-- ... -->
        </extensions>
        <!-- ... -->
    </build>
</project>

.. to replace verbose hacks like:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <!-- ... -->
    <groupId>.</groupId>
    <artifactId>.</artifactId>
    <version>.</version>
    <packaging>transient</packaging> <!-- use "transient" packaging -->
    <!-- ... -->
    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>.</version>
                    <executions>
                        <execution>
                            <id>default-jar</id>
                            <phase>none</phase>
                        </execution>
                        <execution>
                            <id>default-test-jar</id>
                            <phase>none</phase>
                        </execution>
                    </executions>
                </plugin>
                <!-- ... -->
            </plugins>
        </pluginManagement>
    </build>
</project>

About

A Maven lifecycle plugin, like "jar" but with no "package", "deploy", or "release" phase.

Topics

Resources

License

Apache-2.0, Apache-2.0 licenses found

Licenses found

Apache-2.0
LICENSE
Apache-2.0
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published