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 AbstractJModMojo
jmod 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.File
config
--config <path>
Location of user-editable config files.private boolean
dryRun
private java.util.List<java.lang.String>
excludes
private java.util.List<java.io.File>
libs
private java.lang.String
mainClass
private java.io.File
modulePath
Define the modulepath for thejmod
call.private java.lang.String
moduleVersion
-
Constructor Summary
Constructors Constructor Description JModHashMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private org.codehaus.plexus.util.cli.Commandline
createJModHashCommandLine()
void
execute()
-
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 thejmod
call.--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.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
createJModHashCommandLine
private org.codehaus.plexus.util.cli.Commandline createJModHashCommandLine()
-
-