public class EclipseOSGiManifestWriter extends AbstractEclipseWriter
EclipseOSGiManifestWriter
ensures that value of the "Bundle-Classpath" property in
META-INF/MANIFEST.MF is synchronized with the POM by adding all dependencies that don't have the scope provided.Modifier and Type | Field and Description |
---|---|
static String |
ENTRY_BUNDLE_CLASSPATH
Deprecated.
Bundle classpath: updated with the list of dependencies.
|
static String |
ENTRY_BUNDLE_NAME
Deprecated.
Bundle name: updated with the project name.
|
static String |
ENTRY_BUNDLE_SYMBOLICNAME
Deprecated.
Bundle symbolic name: updated with the artifact id.
|
static String |
ENTRY_BUNDLE_VENDOR
Deprecated.
Bundle vendor: updated with the organization name (if set in the POM).
|
static String |
ENTRY_BUNDLE_VERSION
Deprecated.
Bundle version: updated with the project version.
|
config, log
Constructor and Description |
---|
EclipseOSGiManifestWriter()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected String |
addBundleClasspathEntries()
Deprecated.
Add all libraries that don't have the scope "provided" to the "Bundle-Classpath".
|
protected static String |
getNormalizedVersion(String version)
Deprecated.
Normalize a version number, by moving snapshot identifier to the 5th token (first 4 tokens must be numeric for
OSGI bundles)
|
protected StringBuffer |
rewriteManifest(File manifestFile)
Deprecated.
|
void |
write()
Deprecated.
Main method that should be implemented by the writer to do the work.
|
init
public static final String ENTRY_BUNDLE_CLASSPATH
public static final String ENTRY_BUNDLE_NAME
public static final String ENTRY_BUNDLE_SYMBOLICNAME
public static final String ENTRY_BUNDLE_VERSION
public static final String ENTRY_BUNDLE_VENDOR
public void write() throws org.apache.maven.plugin.MojoExecutionException
EclipseWriter
org.apache.maven.plugin.MojoExecutionException
EclipseWriter.write()
protected StringBuffer rewriteManifest(File manifestFile) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected static String getNormalizedVersion(String version)
version
- original versionprotected String addBundleClasspathEntries()
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.