Package aQute.bnd.maven.plugin
Class BndMavenPackagingPlugin
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- aQute.bnd.maven.plugin.AbstractBndMavenPlugin
-
- aQute.bnd.maven.plugin.BndMavenPlugin
-
- aQute.bnd.maven.plugin.BndMavenPackagingPlugin
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="jar", defaultPhase=PACKAGE, requiresProject=true, requiresDependencyResolution=COMPILE, threadSafe=true) public class BndMavenPackagingPlugin extends BndMavenPlugin
Generate OSGi metadata for the target classes and package into a jar.This goal has the default phase of "package".
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
classifier
The classifier to use for the generated artifact.(package private) java.io.File
outputDir
The directory where this plugin will store the generated artifact.-
Fields inherited from class aQute.bnd.maven.plugin.BndMavenPlugin
manifestPath, skip
-
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 BndMavenPackagingPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
getClassifier()
java.io.File
getOutputDir()
java.util.Optional<java.lang.String>
getType()
-
Methods inherited from class aQute.bnd.maven.plugin.BndMavenPlugin
getClassesDir, getManifestPath, getResources, getSourceDir, isSkip
-
Methods inherited from class aQute.bnd.maven.plugin.AbstractBndMavenPlugin
execute, getWebappDirectory, isEmpty, processBuilder, processBuildPath, reportErrorsAndWarnings
-
-
-
-
Method Detail
-
getClassifier
public java.util.Optional<java.lang.String> getClassifier()
- Overrides:
getClassifier
in classAbstractBndMavenPlugin
-
getType
public java.util.Optional<java.lang.String> getType()
- Overrides:
getType
in classAbstractBndMavenPlugin
-
getOutputDir
public java.io.File getOutputDir()
- Overrides:
getOutputDir
in classBndMavenPlugin
-
-