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)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • 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