Fork me on GitHub

Plugin Documentation

Goals available for this plugin:

Goal Description
jar-runner:help Display help information on jar-runner-maven-plugin.
Call mvn jar-runner:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.
jar-runner:run Mojo to launch a new JVM based on a given artifact with optional arguments.

The given artifacts dependencies are resolved and a fully qualified class path is created.

The main class to execute can either be specified by argument or is taken from the artifacts JAR.

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven 3.3.9
JDK 1.8

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>de.lars-sh</groupId>
          <artifactId>jar-runner-maven-plugin</artifactId>
          <version>0.9.7-SNAPSHOT</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>de.lars-sh</groupId>
        <artifactId>jar-runner-maven-plugin</artifactId>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"