Package org.apache.maven.plugins.jmod
Class AbstractJModMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.jmod.AbstractJModMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
JModCreateMojo,JModDescribeMojo,JModHashMojo,JModListMojo
public abstract class AbstractJModMojo
extends org.apache.maven.plugin.AbstractMojo
This contains the code to handle toolchains and the execution of the command which is similar to code in
maven-jlink-plugin (maven-jdeps-plugin?). Later we need to think about a way to combine that code to reduce
duplication.
- Author:
- Karl Heinz Marbaise khmarbaise@apache.org
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractJModMojo(org.apache.maven.toolchain.ToolchainManager toolchainManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecuteCommand(org.apache.maven.shared.utils.cli.Commandline cmd, File outputDirectory) protected StringgetCommaSeparatedList(List<String> modules) Convert a list into aprotected Stringorg.apache.maven.project.MavenProjectorg.apache.maven.execution.MavenSessionprotected org.apache.maven.toolchain.Toolchainprotected booleanMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Constructor Details
-
AbstractJModMojo
protected AbstractJModMojo(org.apache.maven.toolchain.ToolchainManager toolchainManager)
-
-
Method Details
-
getJModExecutable
- Throws:
IOException
-
projectHasAlreadySetAnArtifact
protected boolean projectHasAlreadySetAnArtifact() -
getCommaSeparatedList
Convert a list into a- Parameters:
modules- The list of modules.- Returns:
- The string with the module list which is separated by
,.
-
getToolchain
protected org.apache.maven.toolchain.Toolchain getToolchain() -
getProject
public org.apache.maven.project.MavenProject getProject() -
getSession
public org.apache.maven.execution.MavenSession getSession()
-