Goals available for this plugin:
Goal | Description |
---|---|
jar-module:jar | Plugin class for the goal jar. In this goal the jar is cleaned form unused folder entries and the size is set correct. Saves 4 bytes per entry. |
jar-module:javapackager | Implements the goal javapackager. Javapackager calls the javapackager command. Before it is done, it copies all needed jar to the module dir. Than it tests if the jars are automatic modules, if so it generates the module-info and adds it to the jar. |
jar-module:jlink | Implements the goal jlink. Jlink calls the jlink command. Before it is done, it copies all needed jar to the module dir. Than it tests if the jars are automatic modules, if so it generates the module-info and adds it to the jar. |
The following specifies the minimum requirements to run this Maven plugin:
Maven | 3.6.0 |
JDK | 9 |
Memory | No minimum requirement. |
Disk Space | No minimum requirement. |
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>com.mt-ag.tools.maven</groupId> <artifactId>jar-module-maven-plugin</artifactId> <version>1.1</version> </plugin> ... </plugins> </pluginManagement> <!-- To use the plugin goals in your POM or parent POM --> <plugins> <plugin> <groupId>com.mt-ag.tools.maven</groupId> <artifactId>jar-module-maven-plugin</artifactId> <version>1.1</version> </plugin> ... </plugins> </build> ... </project>
For more information, see "Guide to Configuring Plug-ins"