Class CollectJarsMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractToolMojo
net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractDependencyJarsMojo<CollectJarsHandler>
net.agilhard.maven.plugins.jpacktool.base.mojo.CollectJarsMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="collect-jars",
requiresDependencyResolution=RUNTIME,
defaultPhase=PREPARE_PACKAGE,
requiresProject=true)
public class CollectJarsMojo
extends AbstractDependencyJarsMojo<CollectJarsHandler>
Collect jars and jmods from maven dependencies and copy them to a target folder.
- Author:
- bei
-
Field Summary
Fields inherited from class net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractDependencyJarsMojo
dependencyGraphBuilder, handlerFields 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 CollectJarsMojo() -
Method Summary
Modifier and Type Method Description CollectJarsHandlercreateHandler()voidexecuteToolMain()Methods inherited from class net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractDependencyJarsMojo
getDependencyGraphBuilder, getHandlerMethods 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
-
Constructor Details
-
CollectJarsMojo
public CollectJarsMojo()
-
-
Method Details
-
executeToolMain
public void executeToolMain() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Overrides:
executeToolMainin classAbstractDependencyJarsMojo<CollectJarsHandler>- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
createHandler
- Specified by:
createHandlerin classAbstractDependencyJarsMojo<CollectJarsHandler>
-