Package aQute.bnd.maven.plugin
Class BndMavenPlugin
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- aQute.bnd.maven.plugin.AbstractBndMavenPlugin
-
- aQute.bnd.maven.plugin.BndMavenPlugin
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
BndMavenPackagingPlugin
@Mojo(name="bnd-process", defaultPhase=PROCESS_CLASSES, requiresDependencyResolution=COMPILE, threadSafe=true) public class BndMavenPlugin extends AbstractBndMavenPlugin
Processes the target classes to generate OSGi metadata.This goal has the default phase of "process-classes".
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
classesDir
The directory where themaven-compiler-plugin
places its output.(package private) java.io.File
manifestPath
Specify the path to store the generated manifest file.private java.io.File
outputDir
The directory where this plugin will store its output.private java.util.List<org.apache.maven.model.Resource>
resources
(package private) boolean
skip
Skip this goal.private java.io.File
sourceDir
-
Fields inherited from class aQute.bnd.maven.plugin.AbstractBndMavenPlugin
artifactHandlerManager, bnd, bndfile, buildContext, finalName, includeClassesDir, LAST_MODIFIED, logger, MARKED_FILES, mojoExecution, outputTimestamp, PACKAGING_JAR, PACKAGING_WAR, packagingTypes, project, projectHelper, propertiesFile, settings, skipIfEmpty, SNAPSHOT, TSTAMP, webappDirectory
-
-
Constructor Summary
Constructors Constructor Description BndMavenPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
getClassesDir()
java.io.File
getManifestPath()
java.io.File
getOutputDir()
java.util.List<org.apache.maven.model.Resource>
getResources()
java.io.File
getSourceDir()
boolean
isSkip()
-
Methods inherited from class aQute.bnd.maven.plugin.AbstractBndMavenPlugin
execute, getClassifier, getType, getWebappDirectory, isEmpty, processBuilder, processBuildPath, reportErrorsAndWarnings
-
-
-
-
Field Detail
-
sourceDir
@Parameter(defaultValue="${project.build.sourceDirectory}", readonly=true) private java.io.File sourceDir
-
resources
@Parameter(defaultValue="${project.build.resources}", readonly=true) private java.util.List<org.apache.maven.model.Resource> resources
-
classesDir
@Parameter(defaultValue="${project.build.outputDirectory}") private java.io.File classesDir
The directory where themaven-compiler-plugin
places its output.
-
outputDir
@Parameter(defaultValue="${project.build.outputDirectory}") private java.io.File outputDir
The directory where this plugin will store its output.
-
manifestPath
@Parameter(defaultValue="${project.build.outputDirectory}/META-INF/MANIFEST.MF") java.io.File manifestPath
Specify the path to store the generated manifest file.
-
skip
@Parameter(property="bnd.skip", defaultValue="false") boolean skip
Skip this goal.
-
-
Method Detail
-
getSourceDir
public java.io.File getSourceDir()
- Specified by:
getSourceDir
in classAbstractBndMavenPlugin
-
getResources
public java.util.List<org.apache.maven.model.Resource> getResources()
- Specified by:
getResources
in classAbstractBndMavenPlugin
-
getClassesDir
public java.io.File getClassesDir()
- Specified by:
getClassesDir
in classAbstractBndMavenPlugin
-
getOutputDir
public java.io.File getOutputDir()
- Specified by:
getOutputDir
in classAbstractBndMavenPlugin
-
getManifestPath
public java.io.File getManifestPath()
- Specified by:
getManifestPath
in classAbstractBndMavenPlugin
-
isSkip
public boolean isSkip()
- Specified by:
isSkip
in classAbstractBndMavenPlugin
-
-