Package org.apache.felix.bundleplugin
Class DependencyEmbedder
java.lang.Object
org.apache.felix.bundleplugin.AbstractDependencyFilter
org.apache.felix.bundleplugin.DependencyEmbedder
Add BND directives to embed selected dependencies inside a bundle
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
private final Collection
<org.apache.maven.artifact.Artifact> Embedded artifacts.private String
private String
private String
private final Collection
<String> Inlined paths.private static final String
-
Constructor Summary
ConstructorsConstructorDescriptionDependencyEmbedder
(org.apache.maven.plugin.logging.Log log, Collection<org.apache.maven.artifact.Artifact> dependencyArtifacts) -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addInlinedPaths
(org.apache.maven.artifact.Artifact dependency, String inline, Collection<String> inlinedPaths) private static void
appendDependencies
(aQute.bnd.osgi.Analyzer analyzer, String directiveName, String mavenDependencies) private void
embedDependency
(org.apache.maven.artifact.Artifact dependency, StringBuffer includeResource, StringBuffer bundleClassPath, StringBuffer embeddedArtifacts) Collection
<org.apache.maven.artifact.Artifact> private static void
inlineDependency
(String path, StringBuffer includeResource) protected void
processDependencies
(Collection<org.apache.maven.artifact.Artifact> dependencies, String inline) void
processHeaders
(aQute.bnd.osgi.Analyzer analyzer) Methods inherited from class org.apache.felix.bundleplugin.AbstractDependencyFilter
processInstructions
-
Field Details
-
EMBED_DEPENDENCY
- See Also:
-
EMBED_DIRECTORY
- See Also:
-
EMBED_STRIP_GROUP
- See Also:
-
EMBED_STRIP_VERSION
- See Also:
-
EMBED_TRANSITIVE
- See Also:
-
EMBEDDED_ARTIFACTS
- See Also:
-
MAVEN_DEPENDENCIES
- See Also:
-
m_embedDirectory
-
m_embedStripGroup
-
m_embedStripVersion
-
m_inlinedPaths
Inlined paths. -
m_embeddedArtifacts
Embedded artifacts.
-
-
Constructor Details
-
DependencyEmbedder
public DependencyEmbedder(org.apache.maven.plugin.logging.Log log, Collection<org.apache.maven.artifact.Artifact> dependencyArtifacts)
-
-
Method Details
-
processHeaders
public void processHeaders(aQute.bnd.osgi.Analyzer analyzer) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
processDependencies
protected void processDependencies(Collection<org.apache.maven.artifact.Artifact> dependencies, String inline) - Specified by:
processDependencies
in classAbstractDependencyFilter
-
addInlinedPaths
private static void addInlinedPaths(org.apache.maven.artifact.Artifact dependency, String inline, Collection<String> inlinedPaths) -
embedDependency
private void embedDependency(org.apache.maven.artifact.Artifact dependency, StringBuffer includeResource, StringBuffer bundleClassPath, StringBuffer embeddedArtifacts) -
inlineDependency
-
getInlinedPaths
-
getEmbeddedArtifacts
-
appendDependencies
-