Package aQute.bnd.maven.plugin
Class BndMavenTestsPlugin
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- aQute.bnd.maven.plugin.AbstractBndMavenPlugin
-
- aQute.bnd.maven.plugin.BndMavenTestsPlugin
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="bnd-process-tests", defaultPhase=PROCESS_TEST_CLASSES, requiresDependencyResolution=TEST, threadSafe=true) public class BndMavenTestsPlugin extends AbstractBndMavenPlugin
-
-
Field Summary
-
Fields inherited from class aQute.bnd.maven.plugin.AbstractBndMavenPlugin
logger
-
-
Constructor Summary
Constructors Constructor Description BndMavenTestsPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetClassesDir()FilegetManifestPath()FilegetOutputDir()List<org.apache.maven.model.Resource>getResources()FilegetSourceDir()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)-
Methods inherited from class aQute.bnd.maven.plugin.AbstractBndMavenPlugin
execute
-
-
-
-
Method Detail
-
getSourceDir
public File getSourceDir()
- Specified by:
getSourceDirin classAbstractBndMavenPlugin
-
getResources
public List<org.apache.maven.model.Resource> getResources()
- Specified by:
getResourcesin classAbstractBndMavenPlugin
-
getClassesDir
public File getClassesDir()
- Specified by:
getClassesDirin classAbstractBndMavenPlugin
-
getOutputDir
public File getOutputDir()
- Specified by:
getOutputDirin classAbstractBndMavenPlugin
-
getManifestPath
public File getManifestPath()
- Specified by:
getManifestPathin classAbstractBndMavenPlugin
-
isSkip
public boolean isSkip()
- Specified by:
isSkipin classAbstractBndMavenPlugin
-
processBuildPath
protected void processBuildPath(List<Object> buildpath)
Description copied from class:AbstractBndMavenPluginIf a mojo needs to update the buildpath for any particular reason, do it here.- Overrides:
processBuildPathin classAbstractBndMavenPlugin- Parameters:
buildpath- the set of jars and class directories used while analyzing the jar contents
-
processBuilder
protected void processBuilder(aQute.bnd.osgi.Builder builder) throws org.apache.maven.plugin.MojoFailureExceptionDescription copied from class:AbstractBndMavenPluginIf a mojo needs to tweak the builder for any particular reason, do it here.- Overrides:
processBuilderin classAbstractBndMavenPlugin- Parameters:
builder- the Builder created to analyze the jar contents- Throws:
org.apache.maven.plugin.MojoFailureException- if an issue is encountered
-
reportErrorsAndWarnings
protected void reportErrorsAndWarnings(aQute.bnd.osgi.Builder builder) throws org.apache.maven.plugin.MojoFailureException- Overrides:
reportErrorsAndWarningsin classAbstractBndMavenPlugin- Throws:
org.apache.maven.plugin.MojoFailureException
-
-