Package org.apache.maven.plugins.jmod
Class JModDescribeMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.jmod.AbstractJModMojo
org.apache.maven.plugins.jmod.JModDescribeMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="describe",
requiresDependencyResolution=NONE,
defaultPhase=NONE)
public class JModDescribeMojo
extends AbstractJModMojo
This goal is to support the usage of
jmod describe.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FileThe name of the jmod file which is examined viajmod describe jmodFileprivate FileFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsConstructorDescriptionJModDescribeMojo(org.apache.maven.toolchain.ToolchainManager toolchainManager) -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.maven.shared.utils.cli.Commandlinevoidexecute()Methods inherited from class org.apache.maven.plugins.jmod.AbstractJModMojo
executeCommand, getCommaSeparatedList, getJModExecutable, getProject, getSession, getToolchain, projectHasAlreadySetAnArtifactMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
outputDirectory
@Parameter(defaultValue="${project.build.directory}", required=true, readonly=true) private File outputDirectory -
jmodFile
@Parameter(defaultValue="${project.build.directory}/jmods/${project.artifactId}.jmod", property="jmodfile", required=true) private File jmodFileThe name of the jmod file which is examined viajmod describe jmodFile
-
-
Constructor Details
-
JModDescribeMojo
@Inject public JModDescribeMojo(org.apache.maven.toolchain.ToolchainManager toolchainManager)
-
-
Method Details
-
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
-
createJModDescribeCommandLine
private org.apache.maven.shared.utils.cli.Commandline createJModDescribeCommandLine() throws org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoFailureException
-