Class AbstractDependencyJarsMojo<T extends AbstractDependencyHandler>
java.lang.Object
org.apache.maven.plugin.AbstractMojo
net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractToolMojo
net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractDependencyJarsMojo<T>
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
CollectJarsMojo
,CollectNonModJarsMojo
,JPackToolPrepareMojo
public abstract class AbstractDependencyJarsMojo<T extends AbstractDependencyHandler> extends AbstractToolMojo
- Author:
- bei
-
Field Summary
Fields Modifier and Type Field Description org.apache.maven.shared.dependency.graph.DependencyGraphBuilder
dependencyGraphBuilder
protected T
handler
Fields inherited from class net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractToolMojo
buildDirectory, classpathArtifacts, excludedArtifacts, javaVersion, jdkToolchain, jpacktoolModel, jpacktoolPropertyPrefix, locationManager, mavenProjectHelper, outputDirectoryAutomaticJars, outputDirectoryClasspathJars, outputDirectoryJPacktool, outputDirectoryModules, project, session, shouldSkipReason, skip, systemModules, templateMap, toolchainManager, verbose, zipArchiver
-
Constructor Summary
Constructors Constructor Description AbstractDependencyJarsMojo()
Constructor -
Method Summary
Modifier and Type Method Description abstract T
createHandler()
void
executeToolMain()
org.apache.maven.shared.dependency.graph.DependencyGraphBuilder
getDependencyGraphBuilder()
T
getHandler()
Methods inherited from class net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractToolMojo
bytesToHex, checkShouldSkip, createZipArchiveFromDirectory, execute, executeCommand, executeToolFinish, executeToolStart, getArtifactFile, getClasspathArtifacts, getExcludedArtifacts, getFinalName, getJavaVersion, getJdkToolchain, getJpacktoolPropertyPrefix, getLocationManager, getOutputDirectoryAutomaticJars, getOutputDirectoryClasspathJars, getOutputDirectoryJPacktool, getOutputDirectoryModules, getPluginVersion, getProject, getSession, getShouldSkipReason, getSystemModules, getToolchain, getToolchainManager, getToolExecutable, hasClassifier, isVerbose, publishJPacktoolProperties, publishSHA256, setShouldSkipReason
-
Field Details
-
dependencyGraphBuilder
@Component(role=org.apache.maven.shared.dependency.graph.DependencyGraphBuilder.class, hint="maven31") public org.apache.maven.shared.dependency.graph.DependencyGraphBuilder dependencyGraphBuilder -
handler
-
-
Constructor Details
-
AbstractDependencyJarsMojo
public AbstractDependencyJarsMojo()Constructor
-
-
Method Details
-
createHandler
public abstract T createHandler() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
executeToolMain
public void executeToolMain() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
executeToolMain
in classAbstractToolMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
getHandler
-
getDependencyGraphBuilder
public org.apache.maven.shared.dependency.graph.DependencyGraphBuilder getDependencyGraphBuilder()
-