Class AbstractBndMavenPlugin

java.lang.Object
org.apache.maven.plugin.AbstractMojo
aQute.bnd.maven.plugin.AbstractBndMavenPlugin
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
BndMavenPlugin, BndMavenTestsPlugin

public abstract class AbstractBndMavenPlugin extends org.apache.maven.plugin.AbstractMojo
Abstract base class for all bnd-maven-plugin mojos.
  • Field Details

    • logger

      protected final org.slf4j.Logger logger
  • Constructor Details

    • AbstractBndMavenPlugin

      public AbstractBndMavenPlugin()
  • Method Details

    • getSourceDir

      public abstract File getSourceDir()
    • getResources

      public abstract List<org.apache.maven.model.Resource> getResources()
    • getClassesDir

      public abstract File getClassesDir()
    • getOutputDir

      public abstract File getOutputDir()
    • getManifestPath

      public abstract File getManifestPath()
    • isSkip

      public abstract boolean isSkip()
    • getClassifier

      public Optional<String> getClassifier()
    • getType

      public Optional<String> getType()
    • 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
    • processBuilder

      protected void processBuilder(aQute.bnd.osgi.Builder builder) throws org.apache.maven.plugin.MojoFailureException
      If a mojo needs to tweak the builder for any particular reason, do it here.
      Parameters:
      builder - the Builder created to analyze the jar contents
      Throws:
      org.apache.maven.plugin.MojoFailureException - if an issue is encountered
    • processBuildPath

      protected void processBuildPath(List<Object> buildpath)
      If a mojo needs to update the buildpath for any particular reason, do it here.
      Parameters:
      buildpath - the set of jars and class directories used while analyzing the jar contents
    • reportErrorsAndWarnings

      protected void reportErrorsAndWarnings(aQute.bnd.osgi.Builder builder) throws org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoFailureException
    • isEmpty

      protected boolean isEmpty(File directory)