@Mojo(name="manifest", requiresDependencyResolution=TEST, threadSafe=true, defaultPhase=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
|
artifactFactory, artifactResolver, classifier, createDependencyReducedPom, dependencyReducedPomLocation, dumpClasspath, dumpInstructions, excludeDependencies, exportScr, localRepository, m_dependencyGraphBuilder, manifestLocation, mavenProjectBuilder, niceManifest, noWarningProjectTypes, packaging, project, remoteArtifactRepositories, scrLocation, session, supportedProjectTypes, unpackBundle
Constructor and Description |
---|
ManifestPlugin() |
Modifier and Type | Method and Description |
---|---|
static String |
calculateExportsFromContents(aQute.bnd.osgi.Jar bundle) |
protected void |
execute(Map<String,String> instructions,
org.apache.felix.bundleplugin.BundlePlugin.ClassPathItem[] classpath) |
protected aQute.bnd.osgi.Analyzer |
getAnalyzer(org.apache.maven.project.MavenProject project,
org.apache.felix.bundleplugin.BundlePlugin.ClassPathItem[] classpath) |
protected aQute.bnd.osgi.Analyzer |
getAnalyzer(org.apache.maven.project.MavenProject project,
Map<String,String> instructions,
org.apache.felix.bundleplugin.BundlePlugin.ClassPathItem[] classpath) |
Manifest |
getManifest(org.apache.maven.project.MavenProject project,
org.apache.felix.bundleplugin.BundlePlugin.ClassPathItem[] classpath) |
Manifest |
getManifest(org.apache.maven.project.MavenProject project,
Map<String,String> instructions,
org.apache.felix.bundleplugin.BundlePlugin.ClassPathItem[] classpath,
org.sonatype.plexus.build.incremental.BuildContext buildContext) |
static void |
writeManifest(aQute.bnd.osgi.Analyzer analyzer,
File outputFile,
boolean niceManifest,
boolean exportScr,
File scrLocation,
org.sonatype.plexus.build.incremental.BuildContext buildContext,
org.apache.maven.plugin.logging.Log log) |
static void |
writeManifest(Manifest manifest,
File outputFile,
boolean niceManifest,
org.sonatype.plexus.build.incremental.BuildContext buildContext,
org.apache.maven.plugin.logging.Log log) |
addMavenInstructions, addMavenSourcePath, buildOSGiBundle, convertVersionToOsgi, dumpClasspath, dumpInstructions, dumpManifest, execute, getBase, getBuildDirectory, getBundleName, getClasspath, getDefaultProperties, getEmbeddableArtifacts, getFile, getInstructions, getMaven2OsgiConverter, getMavenResourcePaths, getOptionalPackages, getOSGiBuilder, getOutputDirectory, getProject, includeJava9Fixups, includeMavenResources, isTransitivelyOptional, mergeManifest, mergeMavenManifest, removeTagFromInstruction, reportErrors, sanitize, sanitize, setBuildDirectory, setOutputDirectory, transformDirectives, updateExcludesInDeps
@Parameter(property="rebuildBundle") protected boolean rebuildBundle
protected void execute(Map<String,String> instructions, org.apache.felix.bundleplugin.BundlePlugin.ClassPathItem[] 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, org.apache.felix.bundleplugin.BundlePlugin.ClassPathItem[] 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, org.apache.felix.bundleplugin.BundlePlugin.ClassPathItem[] classpath, org.sonatype.plexus.build.incremental.BuildContext buildContext) 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, org.apache.felix.bundleplugin.BundlePlugin.ClassPathItem[] 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, org.apache.felix.bundleplugin.BundlePlugin.ClassPathItem[] classpath) throws IOException, org.apache.maven.plugin.MojoExecutionException, Exception
IOException
org.apache.maven.plugin.MojoExecutionException
Exception
public static void writeManifest(aQute.bnd.osgi.Analyzer analyzer, File outputFile, boolean niceManifest, boolean exportScr, File scrLocation, org.sonatype.plexus.build.incremental.BuildContext buildContext, org.apache.maven.plugin.logging.Log log) throws Exception
Exception
public static void writeManifest(Manifest manifest, File outputFile, boolean niceManifest, org.sonatype.plexus.build.incremental.BuildContext buildContext, org.apache.maven.plugin.logging.Log log) throws IOException
IOException
public static String calculateExportsFromContents(aQute.bnd.osgi.Jar bundle)
Copyright © 2006–2020 The Apache Software Foundation. All rights reserved.