Package aQute.bnd.maven.plugin
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
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description AbstractBndMavenPlugin()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidexecute()abstract FilegetClassesDir()abstract FilegetManifestPath()abstract FilegetOutputDir()abstract List<org.apache.maven.model.Resource>getResources()abstract FilegetSourceDir()abstract booleanisSkip()protected voidprocessBuilder(aQute.bnd.osgi.Builder builder)If a mojo needs to tweak the builder for any particular reason, do it here.protected voidprocessBuildPath(List<Object> buildpath)If a mojo needs to update the buildpath for any particular reason, do it here.protected voidreportErrorsAndWarnings(aQute.bnd.osgi.Builder builder)
-
-
-
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.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
processBuilder
protected void processBuilder(aQute.bnd.osgi.Builder builder) throws org.apache.maven.plugin.MojoFailureExceptionIf 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
-
-