BundleAllPlugin
@Mojo(name="manifest", requiresDependencyResolution=TEST, threadSafe=true, defaultPhase=PROCESS_CLASSES) public class ManifestPlugin extends BundlePlugin
Modifier and Type | Field | Description |
---|---|---|
protected boolean |
rebuildBundle |
When true, generate the manifest by rebuilding the full bundle in memory
|
artifactFactory, artifactResolver, classifier, createDependencyReducedPom, dependencyGraphBuilder, dependencyReducedPomLocation, dumpClasspath, dumpInstructions, excludeDependencies, exportScr, localRepository, m_dependencyGraphBuilder, manifestLocation, mavenProjectBuilder, niceManifest, packaging, project, remoteArtifactRepositories, scrLocation, session, supportedProjectTypes, unpackBundle
Constructor | Description |
---|---|
ManifestPlugin() |
Modifier and Type | Method | Description |
---|---|---|
static String |
calculateExportsFromContents(aQute.bnd.osgi.Jar bundle) |
|
protected void |
execute(org.apache.maven.project.MavenProject project,
org.apache.maven.shared.dependency.graph.DependencyNode dependencyGraph,
Map<String,String> instructions,
Properties properties,
aQute.bnd.osgi.Jar[] classpath) |
|
protected aQute.bnd.osgi.Analyzer |
getAnalyzer(org.apache.maven.project.MavenProject project,
org.apache.maven.shared.dependency.graph.DependencyNode dependencyGraph,
aQute.bnd.osgi.Jar[] classpath) |
|
protected aQute.bnd.osgi.Analyzer |
getAnalyzer(org.apache.maven.project.MavenProject project,
org.apache.maven.shared.dependency.graph.DependencyNode dependencyGraph,
Map<String,String> instructions,
Properties properties,
aQute.bnd.osgi.Jar[] classpath) |
|
Manifest |
getManifest(org.apache.maven.project.MavenProject project,
org.apache.maven.shared.dependency.graph.DependencyNode dependencyGraph,
aQute.bnd.osgi.Jar[] classpath) |
|
Manifest |
getManifest(org.apache.maven.project.MavenProject project,
org.apache.maven.shared.dependency.graph.DependencyNode dependencyGraph,
Map<String,String> instructions,
Properties properties,
aQute.bnd.osgi.Jar[] 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) |
getLog, getPluginContext, setLog, setPluginContext
addMavenInstructions, addMavenSourcePath, buildDependencyGraph, buildOSGiBundle, convertVersionToOsgi, dumpClasspath, dumpInstructions, dumpManifest, execute, execute, getBase, getBuildDirectory, getBundleName, getClasspath, getDefaultProperties, getEmbeddableArtifacts, getFile, 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(org.apache.maven.project.MavenProject project, org.apache.maven.shared.dependency.graph.DependencyNode dependencyGraph, 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, org.apache.maven.shared.dependency.graph.DependencyNode dependencyGraph, 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, org.apache.maven.shared.dependency.graph.DependencyNode dependencyGraph, Map<String,String> instructions, Properties properties, aQute.bnd.osgi.Jar[] 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.maven.shared.dependency.graph.DependencyNode dependencyGraph, 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, org.apache.maven.shared.dependency.graph.DependencyNode dependencyGraph, 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(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–2019 The Apache Software Foundation. All rights reserved.