Class 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
    • Field Detail

      • logger

        protected final org.slf4j.Logger logger
    • Constructor Detail

      • AbstractBndMavenPlugin

        public AbstractBndMavenPlugin()
    • Method Detail

      • 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()
      • 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