Class AbstractDependencyHandler
java.lang.Object
net.agilhard.maven.plugins.jpacktool.base.handler.AbstractDependencyHandler
- Direct Known Subclasses:
AbstractEndVisitDependencyHandler
,AbstractVisitDependencyHandler
public abstract class AbstractDependencyHandler
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<ArtifactParameter>
classpathArtifacts
protected org.apache.maven.shared.dependency.graph.DependencyGraphBuilder
dependencyGraphBuilder
protected java.util.List<ArtifactParameter>
excludedArtifacts
java.util.HashSet<java.lang.String>
handledNodes
protected java.io.File
outputDirectoryAutomaticJars
protected java.io.File
outputDirectoryClasspathJars
protected java.io.File
outputDirectoryJPacktool
protected java.io.File
outputDirectoryModules
-
Constructor Summary
Constructors Constructor Description AbstractDependencyHandler(AbstractToolMojo mojo, org.apache.maven.shared.dependency.graph.DependencyGraphBuilder dependencyGraphBuilder)
-
Method Summary
Modifier and Type Method Description void
execute()
void
execute(org.apache.maven.project.MavenProject project, org.apache.maven.artifact.resolver.filter.ArtifactFilter artifactFilter)
org.apache.maven.plugin.logging.Log
getLog()
protected void
handleDependencyNode(org.apache.maven.shared.dependency.graph.DependencyNode dependencyNode)
protected abstract void
handleDependencyRoot(org.apache.maven.shared.dependency.graph.DependencyNode dependencyNode)
protected abstract 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
handleModJarIfNotAlreadyHandled(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 abstract 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)
protected void
handleNonModJarIfNotAlreadyHandled(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
handleOther(org.apache.maven.shared.dependency.graph.DependencyNode dependencyNode)
-
Field Details
-
outputDirectoryJPacktool
protected java.io.File outputDirectoryJPacktool -
outputDirectoryAutomaticJars
protected java.io.File outputDirectoryAutomaticJars -
outputDirectoryClasspathJars
protected java.io.File outputDirectoryClasspathJars -
outputDirectoryModules
protected java.io.File outputDirectoryModules -
excludedArtifacts
-
classpathArtifacts
-
handledNodes
public java.util.HashSet<java.lang.String> handledNodes -
dependencyGraphBuilder
protected org.apache.maven.shared.dependency.graph.DependencyGraphBuilder dependencyGraphBuilder
-
-
Constructor Details
-
AbstractDependencyHandler
public AbstractDependencyHandler(AbstractToolMojo mojo, org.apache.maven.shared.dependency.graph.DependencyGraphBuilder dependencyGraphBuilder)
-
-
Method Details
-
getLog
public org.apache.maven.plugin.logging.Log getLog() -
handleNonModJar
protected abstract 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- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
handleNonModJarIfNotAlreadyHandled
protected void handleNonModJarIfNotAlreadyHandled(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- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
handleModJar
protected abstract 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- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
handleModJarIfNotAlreadyHandled
protected void handleModJarIfNotAlreadyHandled(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- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
handleOther
protected void handleOther(org.apache.maven.shared.dependency.graph.DependencyNode dependencyNode) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
handleDependencyNode
protected void handleDependencyNode(org.apache.maven.shared.dependency.graph.DependencyNode dependencyNode) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
handleDependencyRoot
protected abstract void handleDependencyRoot(org.apache.maven.shared.dependency.graph.DependencyNode dependencyNode) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
execute
public void execute(org.apache.maven.project.MavenProject project, org.apache.maven.artifact.resolver.filter.ArtifactFilter artifactFilter) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-