Class DependencyEmbedder

java.lang.Object
org.apache.felix.bundleplugin.AbstractDependencyFilter
org.apache.felix.bundleplugin.DependencyEmbedder

public final class DependencyEmbedder extends AbstractDependencyFilter
Add BND directives to embed selected dependencies inside a bundle
  • Field Details

  • 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 class AbstractDependencyFilter
    • 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

      private static void inlineDependency(String path, StringBuffer includeResource)
    • getInlinedPaths

      public Collection<String> getInlinedPaths()
    • getEmbeddedArtifacts

      public Collection<org.apache.maven.artifact.Artifact> getEmbeddedArtifacts()
    • appendDependencies

      private static void appendDependencies(aQute.bnd.osgi.Analyzer analyzer, String directiveName, String mavenDependencies)