Package com.mt_ag.jar.module
Class PackageMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- com.mt_ag.jar.module.UpdateModules
-
- com.mt_ag.jar.module.PackageMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="javapackager", defaultPhase=PACKAGE, requiresDependencyCollection=RUNTIME, requiresDependencyResolution=RUNTIME) public class PackageMojo extends UpdateModules
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PackageMojo.NativeType
The enum of the output type.
-
Field Summary
-
Fields inherited from class com.mt_ag.jar.module.UpdateModules
EXTENSION_LENGTH
-
-
Constructor Summary
Constructors Modifier Constructor Description PackageMojo()
The standard constructor.protected
PackageMojo(org.apache.maven.plugin.logging.Log pLog, org.apache.maven.project.MavenProject pProject, org.apache.maven.project.MavenProjectHelper pHelper, PackageMojo.NativeType pNative, boolean openmodule, boolean createmissing)
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
-
PackageMojo
public PackageMojo()
The standard constructor.
-
PackageMojo
protected PackageMojo(org.apache.maven.plugin.logging.Log pLog, org.apache.maven.project.MavenProject pProject, org.apache.maven.project.MavenProjectHelper pHelper, PackageMojo.NativeType pNative, boolean openmodule, boolean createmissing)
The constructor for testing.- Parameters:
pLog
- the MockLog.pProject
- the param project.pHelper
- the project helper.pNative
- nativeType.openmodule
- openmodule.createmissing
- create missing classes in missing module.
-
-