@Mojo(name="custom-bundle")
public class CustomBundleMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
private org.apache.maven.archiver.MavenArchiveConfiguration |
archive |
private java.io.File |
bundleLocation
Location of OSGi bundle, must have META-INF/MANIFEST.MF bundle manifest file.
|
private java.lang.String |
classifier
Classifier of attached artifact.
|
private java.lang.String[] |
excludes
File patterns to exclude from bundleLocation.
|
private java.util.List<org.codehaus.plexus.archiver.util.DefaultFileSet> |
fileSets
Additional files to be included in the generated bundle.
|
private java.lang.String[] |
includes
File patterns to include from bundleLocation.
|
private org.codehaus.plexus.archiver.jar.JarArchiver |
jarArchiver |
private org.apache.maven.project.MavenProject |
project |
private org.apache.maven.project.MavenProjectHelper |
projectHelper |
Constructor and Description |
---|
CustomBundleMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected java.io.File |
getOutputJarFile() |
private java.io.File |
updateManifest() |
@Parameter(required=true) private java.io.File bundleLocation
@Parameter(required=true) private java.lang.String classifier
@Parameter private java.lang.String[] includes
@Parameter private java.lang.String[] excludes
@Parameter(required=true) private java.util.List<org.codehaus.plexus.archiver.util.DefaultFileSet> fileSets
@Parameter(property="project") private org.apache.maven.project.MavenProject project
@Parameter private org.apache.maven.archiver.MavenArchiveConfiguration archive
@Component(role=org.codehaus.plexus.archiver.Archiver.class, hint="jar") private org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver
@Component private org.apache.maven.project.MavenProjectHelper projectHelper
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected java.io.File getOutputJarFile()
private java.io.File updateManifest() throws java.io.FileNotFoundException, java.io.IOException, org.apache.maven.plugin.MojoExecutionException
java.io.FileNotFoundException
java.io.IOException
org.apache.maven.plugin.MojoExecutionException