Package com.mt_ag.jar.module
Class JlinkMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- com.mt_ag.jar.module.UpdateModules
-
- com.mt_ag.jar.module.JlinkMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="jlink", defaultPhase=PACKAGE, requiresDependencyCollection=RUNTIME, requiresDependencyResolution=RUNTIME) public class JlinkMojo extends UpdateModules
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.
-
-
Field Summary
-
Fields inherited from class com.mt_ag.jar.module.UpdateModules
EXTENSION_LENGTH
-
-
Constructor Summary
Constructors Modifier Constructor Description JlinkMojo()
The default constructor.protected
JlinkMojo(org.apache.maven.plugin.logging.Log pLog, org.apache.maven.project.MavenProject pProject, org.apache.maven.project.MavenProjectHelper helper, CompressEnum pCompress, boolean minData, boolean openmodule, boolean createMissing, String... launcherArray)
The constructor for testing.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
The implementation of the Mojo.-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class com.mt_ag.jar.module.UpdateModules
callInDir, createModules, zipDir
-
-
-
-
Constructor Detail
-
JlinkMojo
public JlinkMojo()
The default constructor.
-
JlinkMojo
protected JlinkMojo(org.apache.maven.plugin.logging.Log pLog, org.apache.maven.project.MavenProject pProject, org.apache.maven.project.MavenProjectHelper helper, CompressEnum pCompress, boolean minData, boolean openmodule, boolean createMissing, String... launcherArray)
The constructor for testing.- Parameters:
pLog
- the MockLog.pProject
- the param project.helper
- the project helper.pCompress
- the compress enum.minData
- nin data.openmodule
- openmodule.createMissing
- create missing classes in missing module.launcherArray
- the launchers as array.
-
-