@Mojo(name="bnd-process",
defaultPhase=PROCESS_CLASSES,
requiresDependencyResolution=COMPILE)
public class BndMavenPlugin
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Class and Description |
---|---|
private class |
BndMavenPlugin.BeanProperties |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
bnd
Bnd instructions for this project specified directly in the pom file.
|
private java.lang.String |
bndfile
File path to a bnd file containing bnd instructions for this project.
|
private org.sonatype.plexus.build.incremental.BuildContext |
buildContext |
private java.io.File |
classesDir |
private static org.slf4j.Logger |
logger |
private static java.lang.String |
MANIFEST_LAST_MODIFIED |
private java.io.File |
manifestPath |
private static java.lang.String |
MARKED_FILES |
private org.apache.maven.plugin.MojoExecution |
mojoExecution |
private static java.lang.String |
PACKAGING_POM |
private org.apache.maven.project.MavenProject |
project |
private java.io.File |
propertiesFile |
private java.util.List<org.apache.maven.model.Resource> |
resources |
private org.apache.maven.settings.Settings |
settings |
private boolean |
skip |
private java.io.File |
sourceDir |
private java.io.File |
targetDir |
private static java.lang.String |
TSTAMP |
Constructor and Description |
---|
BndMavenPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
private void |
expandJar(Jar jar,
java.io.File dir) |
private java.io.File |
loadProjectProperties(Builder builder,
org.apache.maven.project.MavenProject project) |
private boolean |
manifestOutOfDate() |
private void |
reportErrorsAndWarnings(Builder builder) |
private static final org.slf4j.Logger logger
private static final java.lang.String MANIFEST_LAST_MODIFIED
private static final java.lang.String MARKED_FILES
private static final java.lang.String PACKAGING_POM
private static final java.lang.String TSTAMP
@Parameter(defaultValue="${project.build.directory}", readonly=true) private java.io.File targetDir
@Parameter(defaultValue="${project.build.sourceDirectory}", readonly=true) private java.io.File sourceDir
@Parameter(defaultValue="${project.build.resources}", readonly=true) private java.util.List<org.apache.maven.model.Resource> resources
@Parameter(defaultValue="${project.build.outputDirectory}", readonly=true) private java.io.File classesDir
@Parameter(defaultValue="${project.build.outputDirectory}/META-INF/MANIFEST.MF", readonly=true) private java.io.File manifestPath
@Parameter(defaultValue="${project}", required=true, readonly=true) private org.apache.maven.project.MavenProject project
@Parameter(defaultValue="${settings}", readonly=true) private org.apache.maven.settings.Settings settings
@Parameter(defaultValue="${mojoExecution}", readonly=true) private org.apache.maven.plugin.MojoExecution mojoExecution
@Parameter(property="bnd.skip", defaultValue="false") private boolean skip
@Parameter(defaultValue="bnd.bnd") private java.lang.String bndfile
bnd.bnd
. The file path can be an absolute or relative
to the project directory.
The bnd instructions for this project are merged with the bnd instructions, if any, for the parent project.
@Parameter private java.lang.String bnd
<![CDATA[]]>
section. If the
projects has a bnd file
, then this configuration element
is ignored.
The bnd instructions for this project are merged with the bnd instructions, if any, for the parent project.
@Component private org.sonatype.plexus.build.incremental.BuildContext buildContext
private java.io.File propertiesFile
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
private java.io.File loadProjectProperties(Builder builder, org.apache.maven.project.MavenProject project) throws java.lang.Exception
java.lang.Exception
private void reportErrorsAndWarnings(Builder builder) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
private void expandJar(Jar jar, java.io.File dir) throws java.lang.Exception
java.lang.Exception
private boolean manifestOutOfDate()