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 AbstractBndMavenPluginProcesses 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.FileclassesDirThe directory where themaven-compiler-pluginplaces its output.(package private) java.io.FilemanifestPathSpecify the path to store the generated manifest file.private java.io.FileoutputDirThe directory where this plugin will store its output.private java.util.List<org.apache.maven.model.Resource>resources(package private) booleanskipSkip this goal.private java.io.FilesourceDir-
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.FilegetClassesDir()java.io.FilegetManifestPath()java.io.FilegetOutputDir()java.util.List<org.apache.maven.model.Resource>getResources()java.io.FilegetSourceDir()booleanisSkip()-
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 classesDirThe directory where themaven-compiler-pluginplaces its output.
-
outputDir
@Parameter(defaultValue="${project.build.outputDirectory}") private java.io.File outputDirThe directory where this plugin will store its output.
-
manifestPath
@Parameter(defaultValue="${project.build.outputDirectory}/META-INF/MANIFEST.MF") java.io.File manifestPathSpecify the path to store the generated manifest file.
-
skip
@Parameter(property="bnd.skip", defaultValue="false") boolean skipSkip this goal.
-
-
Method Detail
-
getSourceDir
public java.io.File getSourceDir()
- Specified by:
getSourceDirin classAbstractBndMavenPlugin
-
getResources
public java.util.List<org.apache.maven.model.Resource> getResources()
- Specified by:
getResourcesin classAbstractBndMavenPlugin
-
getClassesDir
public java.io.File getClassesDir()
- Specified by:
getClassesDirin classAbstractBndMavenPlugin
-
getOutputDir
public java.io.File getOutputDir()
- Specified by:
getOutputDirin classAbstractBndMavenPlugin
-
getManifestPath
public java.io.File getManifestPath()
- Specified by:
getManifestPathin classAbstractBndMavenPlugin
-
isSkip
public boolean isSkip()
- Specified by:
isSkipin classAbstractBndMavenPlugin
-
-