@Mojo(name="manifest", requiresDependencyResolution=TEST, threadSafe=true) @Execute(phase=PROCESS_CLASSES) public class ManifestPlugin extends BundlePlugin
Modifier and Type | Field and Description |
---|---|
protected boolean |
rebuildBundle
When true, generate the manifest by rebuilding the full bundle in memory
|
classifier, dumpClasspath, dumpInstructions, excludeDependencies, manifestLocation, niceManifest, packaging, supportedProjectTypes, unpackBundle
Constructor and Description |
---|
ManifestPlugin() |
Modifier and Type | Method and Description |
---|---|
static String |
calculateExportsFromContents(aQute.bnd.osgi.Jar bundle) |
protected void |
execute(org.apache.maven.project.MavenProject project,
Map<String,String> instructions,
Properties properties,
aQute.bnd.osgi.Jar[] classpath) |
protected aQute.bnd.osgi.Analyzer |
getAnalyzer(org.apache.maven.project.MavenProject project,
aQute.bnd.osgi.Jar[] classpath) |
protected aQute.bnd.osgi.Analyzer |
getAnalyzer(org.apache.maven.project.MavenProject project,
Map<String,String> instructions,
Properties properties,
aQute.bnd.osgi.Jar[] classpath) |
Manifest |
getManifest(org.apache.maven.project.MavenProject project,
aQute.bnd.osgi.Jar[] classpath) |
Manifest |
getManifest(org.apache.maven.project.MavenProject project,
Map<String,String> instructions,
Properties properties,
aQute.bnd.osgi.Jar[] classpath) |
static void |
writeManifest(Manifest manifest,
File outputFile,
boolean niceManifest) |
addMavenInstructions, addMavenSourcePath, buildOSGiBundle, convertVersionToOsgi, dumpClasspath, dumpInstructions, dumpManifest, execute, execute, getBase, getBuildDirectory, getBundleName, getClasspath, getDefaultProperties, getEmbeddableArtifacts, getFile, getMaven2OsgiConverter, getMavenResourcePaths, getOptionalPackages, getOSGiBuilder, getOutputDirectory, getProject, includeMavenResources, isTransitivelyOptional, mergeMavenManifest, removeTagFromInstruction, reportErrors, sanitize, sanitize, setBuildDirectory, setMaven2OsgiConverter, setOutputDirectory, transformDirectives
@Parameter(property="rebuildBundle") protected boolean rebuildBundle
protected void execute(org.apache.maven.project.MavenProject project, Map<String,String> instructions, Properties properties, aQute.bnd.osgi.Jar[] classpath) throws org.apache.maven.plugin.MojoExecutionException
execute
in class BundlePlugin
org.apache.maven.plugin.MojoExecutionException
public Manifest getManifest(org.apache.maven.project.MavenProject project, aQute.bnd.osgi.Jar[] classpath) throws IOException, org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException, Exception
IOException
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
Exception
public Manifest getManifest(org.apache.maven.project.MavenProject project, Map<String,String> instructions, Properties properties, aQute.bnd.osgi.Jar[] classpath) throws IOException, org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException, Exception
IOException
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
Exception
protected aQute.bnd.osgi.Analyzer getAnalyzer(org.apache.maven.project.MavenProject project, aQute.bnd.osgi.Jar[] classpath) throws IOException, org.apache.maven.plugin.MojoExecutionException, Exception
IOException
org.apache.maven.plugin.MojoExecutionException
Exception
protected aQute.bnd.osgi.Analyzer getAnalyzer(org.apache.maven.project.MavenProject project, Map<String,String> instructions, Properties properties, aQute.bnd.osgi.Jar[] classpath) throws IOException, org.apache.maven.plugin.MojoExecutionException, Exception
IOException
org.apache.maven.plugin.MojoExecutionException
Exception
public static void writeManifest(Manifest manifest, File outputFile, boolean niceManifest) throws IOException
IOException
public static String calculateExportsFromContents(aQute.bnd.osgi.Jar bundle)
Copyright © 2006–2015 The Apache Software Foundation. All rights reserved.