Package org.apache.maven.plugins.jmod
Class JModHashMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.plugins.jmod.AbstractJModMojo
-
- org.apache.maven.plugins.jmod.JModHashMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="hash", requiresDependencyResolution=COMPILE, defaultPhase=PACKAGE) public class JModHashMojo extends AbstractJModMojojmod hash ...
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.String>classPath--class-path <path>Application jar files|dir containing classes.private java.util.List<java.lang.String>cmds--class-path <path>Application jar files|dir containing classes.private java.io.Fileconfig--config <path>Location of user-editable config files.private booleandryRunprivate java.util.List<java.lang.String>excludesprivate java.util.List<java.io.File>libsprivate java.lang.StringmainClassprivate java.io.FilemodulePathDefine the modulepath for thejmodcall.private java.lang.StringmoduleVersion
-
Constructor Summary
Constructors Constructor Description JModHashMojo(org.apache.maven.toolchain.ToolchainManager toolchainManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private org.apache.maven.shared.utils.cli.CommandlinecreateJModHashCommandLine()voidexecute()-
Methods inherited from class org.apache.maven.plugins.jmod.AbstractJModMojo
executeCommand, getCommaSeparatedList, getJModExecutable, getProject, getSession, getToolchain, projectHasAlreadySetAnArtifact
-
-
-
-
Field Detail
-
classPath
@Parameter private java.util.List<java.lang.String> classPath
--class-path <path>Application jar files|dir containing classes.
-
cmds
@Parameter private java.util.List<java.lang.String> cmds
--class-path <path>Application jar files|dir containing classes.
-
config
@Parameter private java.io.File config
--config <path>Location of user-editable config files.
-
dryRun
@Parameter private boolean dryRun
-
excludes
@Parameter private java.util.List<java.lang.String> excludes
-
mainClass
@Parameter private java.lang.String mainClass
-
libs
@Parameter private java.util.List<java.io.File> libs
-
moduleVersion
@Parameter private java.lang.String moduleVersion
-
modulePath
@Parameter(required=true) private java.io.File modulePath
Define the modulepath for thejmodcall.--module-path <path>Must be a directory.
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
createJModHashCommandLine
private org.apache.maven.shared.utils.cli.Commandline createJModHashCommandLine()
-
-