Class CollectArtifactsToLinkHandler
java.lang.Object
net.agilhard.maven.plugins.jpacktool.base.handler.AbstractDependencyHandler
net.agilhard.maven.plugins.jpacktool.base.handler.AbstractVisitDependencyHandler
net.agilhard.maven.plugins.jpacktool.base.handler.CollectArtifactsToLinkHandler
public class CollectArtifactsToLinkHandler extends AbstractVisitDependencyHandler
-
Nested Class Summary
Nested classes/interfaces inherited from class net.agilhard.maven.plugins.jpacktool.base.handler.AbstractVisitDependencyHandler
AbstractVisitDependencyHandler.HandleDependencyRootVisitor
-
Field Summary
Fields inherited from class net.agilhard.maven.plugins.jpacktool.base.handler.AbstractDependencyHandler
classpathArtifacts, dependencyGraphBuilder, excludedArtifacts, handledNodes, outputDirectoryAutomaticJars, outputDirectoryClasspathJars, outputDirectoryJPacktool, outputDirectoryModules
-
Constructor Summary
Constructors Constructor Description CollectArtifactsToLinkHandler(AbstractToolMojo mojo, org.apache.maven.shared.dependency.graph.DependencyGraphBuilder dependencyGraphBuilder)
-
Method Summary
Modifier and Type Method Description void
execute()
java.util.List<org.apache.maven.artifact.Artifact>
getElements()
protected void
handleDependencyNode(org.apache.maven.shared.dependency.graph.DependencyNode dependencyNode)
protected void
handleModJar(org.apache.maven.shared.dependency.graph.DependencyNode dependencyNode, org.apache.maven.artifact.Artifact artifact, java.util.Map.Entry<java.io.File,org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor> entry)
protected void
handleNonModJar(org.apache.maven.shared.dependency.graph.DependencyNode dependencyNode, org.apache.maven.artifact.Artifact artifact, java.util.Map.Entry<java.io.File,org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor> entry)
Methods inherited from class net.agilhard.maven.plugins.jpacktool.base.handler.AbstractVisitDependencyHandler
handleDependencyRoot
Methods inherited from class net.agilhard.maven.plugins.jpacktool.base.handler.AbstractDependencyHandler
execute, getLog, handleModJarIfNotAlreadyHandled, handleNonModJarIfNotAlreadyHandled, handleOther
-
Constructor Details
-
CollectArtifactsToLinkHandler
public CollectArtifactsToLinkHandler(AbstractToolMojo mojo, org.apache.maven.shared.dependency.graph.DependencyGraphBuilder dependencyGraphBuilder)
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Overrides:
execute
in classAbstractDependencyHandler
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
handleNonModJar
protected void handleNonModJar(org.apache.maven.shared.dependency.graph.DependencyNode dependencyNode, org.apache.maven.artifact.Artifact artifact, java.util.Map.Entry<java.io.File,org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor> entry) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
handleNonModJar
in classAbstractVisitDependencyHandler
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
handleModJar
protected void handleModJar(org.apache.maven.shared.dependency.graph.DependencyNode dependencyNode, org.apache.maven.artifact.Artifact artifact, java.util.Map.Entry<java.io.File,org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor> entry) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
handleModJar
in classAbstractVisitDependencyHandler
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
handleDependencyNode
protected void handleDependencyNode(org.apache.maven.shared.dependency.graph.DependencyNode dependencyNode)- Overrides:
handleDependencyNode
in classAbstractDependencyHandler
-
getElements
public java.util.List<org.apache.maven.artifact.Artifact> getElements()
-