reaper-maven-plugin

Maven plugin that can terminate JVM on HTTP request

License

License

Categories

Categories

Maven Build Tools UML Business Logic Libraries Documents Processing
GroupId

GroupId

com.github.fluorumlabs
ArtifactId

ArtifactId

reaper-maven-plugin
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

reaper-maven-plugin
Maven plugin that can terminate JVM on HTTP request
Project URL

Project URL

https://github.com/fluorumlabs/reaper-maven-plugin
Source Code Management

Source Code Management

http://github.com/fluorumlabs/reaper-maven-plugin/tree/master

Download reaper-maven-plugin

How to add to project

<plugin>
    <groupId>com.github.fluorumlabs</groupId>
    <artifactId>reaper-maven-plugin</artifactId>
    <version>1.0.1</version>
</plugin>

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.maven : maven-model jar 3.5.0
org.apache.maven : maven-plugin-api jar 3.5.0
org.takes : takes jar 1.18

provided (2)

Group / Artifact Type Version
org.apache.maven : maven-core jar 3.5.0
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.4

test (1)

Group / Artifact Type Version
junit : junit jar 3.8.1

Project Modules

There are no modules declared in this project.

reaper-maven-plugin

Maven plugin that can do System.exit(0) on HTTP request

Usage

With pom.xml

<plugin>
    <groupId>com.github.fluorumlabs</groupId>
    <artifactId>reaper-maven-plugin</artifactId>
    <version>1.0.1</version>
    <executions>
        <execution>
            <goals><goal>kill</goal></goals>
        </execution>
    </executions>
    <!--configuration>
        <port>8989</port>
    </configuration-->
</plugin>

Then, if maven is started with mvn reaper:kill jetty:run, any HTTP request to http://localhost:8989 will terminate the process.

Without pom.xml

It is possible to invoke plugin without making any changes to pom.xml:

mvn com.github.fluorumlabs:reaper-maven-plugin:kill jetty:run [-Dreaper.port=8989]

Versions

Version
1.0.1
1.0.0
1.0.0-alpha1