Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ykayacan/d9ea25de6ce8f84cb4a78bab1e600c55 to your computer and use it in GitHub Desktop.
Save ykayacan/d9ea25de6ce8f84cb4a78bab1e600c55 to your computer and use it in GitHub Desktop.

Revisions

  1. @sbrinkmann sbrinkmann revised this gist Jun 21, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion OSGi-Bundle-POM-with-embedded-dependency-incl-transitive
    Original file line number Diff line number Diff line change
    @@ -36,12 +36,12 @@
    </build>

    <dependencies>
    <!-- Add as many dependencies until there are no more unresolved dependencies -->
    <dependency>
    <groupId>org.apache.axis2</groupId>
    <artifactId>axis2-kernel</artifactId>
    <version>1.6.2</version>
    </dependency>
    <!-- Add as many dependencies until there are no more unresolved dependencies -->
    </dependencies>

    </project>
  2. @sbrinkmann sbrinkmann revised this gist Jun 21, 2014. 1 changed file with 7 additions and 2 deletions.
    9 changes: 7 additions & 2 deletions OSGi-Bundle-POM-with-embedded-dependency-incl-transitive
    Original file line number Diff line number Diff line change
    @@ -22,8 +22,13 @@
    <Export-Package>de.eggs.myBundle*</Export-Package>
    <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
    <Embed-Transitive>true</Embed-Transitive>
    <Import-Package>!com.sun.jdmk.comm,!javax.jms,
    !org.apache.avalon.framework.logger,!org.apache.log,*</Import-Package>
    <Import-Package>
    !com.sun.jdmk.comm,
    !javax.jms,
    !org.apache.avalon.framework.logger,
    !org.apache.log,
    *
    </Import-Package>
    </instructions>
    </configuration>
    </plugin>
  3. @sbrinkmann sbrinkmann revised this gist Jun 21, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions OSGi-Bundle-POM-with-embedded-dependency-incl-transitive
    Original file line number Diff line number Diff line change
    @@ -22,8 +22,8 @@
    <Export-Package>de.eggs.myBundle*</Export-Package>
    <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
    <Embed-Transitive>true</Embed-Transitive>
    <Import-Package>!com.sun.jdmk.comm,!javax.jms,!org.apache.avalon.framework.logger,
    !org.apache.log,*</Import-Package>
    <Import-Package>!com.sun.jdmk.comm,!javax.jms,
    !org.apache.avalon.framework.logger,!org.apache.log,*</Import-Package>
    </instructions>
    </configuration>
    </plugin>
  4. @sbrinkmann sbrinkmann revised this gist Jun 21, 2014. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion OSGi-Bundle-POM-with-embedded-dependency-incl-transitive
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,8 @@
    <Export-Package>de.eggs.myBundle*</Export-Package>
    <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
    <Embed-Transitive>true</Embed-Transitive>
    <Import-Package>!com.sun.jdmk.comm,!javax.jms,!org.apache.avalon.framework.logger,!org.apache.log,*</Import-Package>
    <Import-Package>!com.sun.jdmk.comm,!javax.jms,!org.apache.avalon.framework.logger,
    !org.apache.log,*</Import-Package>
    </instructions>
    </configuration>
    </plugin>
  5. @sbrinkmann sbrinkmann revised this gist Jun 21, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions OSGi-Bundle-POM-with-embedded-dependency-incl-transitive
    Original file line number Diff line number Diff line change
    @@ -22,6 +22,7 @@
    <Export-Package>de.eggs.myBundle*</Export-Package>
    <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
    <Embed-Transitive>true</Embed-Transitive>
    <Import-Package>!com.sun.jdmk.comm,!javax.jms,!org.apache.avalon.framework.logger,!org.apache.log,*</Import-Package>
    </instructions>
    </configuration>
    </plugin>
    @@ -34,6 +35,7 @@
    <artifactId>axis2-kernel</artifactId>
    <version>1.6.2</version>
    </dependency>
    <!-- Add as many dependencies until there are no more unresolved dependencies -->
    </dependencies>

    </project>
  6. @sbrinkmann sbrinkmann created this gist Jun 21, 2014.
    40 changes: 40 additions & 0 deletions OSGi-Bundle-POM-with-embedded-dependency-incl-transitive
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,40 @@
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>de.eggs.cq.generic</groupId>
    <artifactId>MyBundleEmbeddedDependencyUnresolved</artifactId>
    <version>14.01.0-SNAPSHOT</version>
    <name>My Bundle Name</name>
    <description>My Bundle Description</description>

    <packaging>bundle</packaging>

    <build>
    <plugins>
    <plugin>
    <groupId>org.apache.felix</groupId>
    <artifactId>maven-bundle-plugin</artifactId>
    <version>2.3.5</version>
    <extensions>true</extensions>
    <configuration>
    <instructions>
    <Export-Package>de.eggs.myBundle*</Export-Package>
    <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
    <Embed-Transitive>true</Embed-Transitive>
    </instructions>
    </configuration>
    </plugin>
    </plugins>
    </build>

    <dependencies>
    <dependency>
    <groupId>org.apache.axis2</groupId>
    <artifactId>axis2-kernel</artifactId>
    <version>1.6.2</version>
    </dependency>
    </dependencies>

    </project>