Skip to content

Commit

Permalink
First version of wrapped libraries for other OSGi-based projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
keiono committed Aug 3, 2011
1 parent 18e15f5 commit c523d45
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 0 deletions.
34 changes: 34 additions & 0 deletions pom.xml
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,34 @@
<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>org.cytoscape.wrappers</groupId>
<artifactId>wrapped-osgi-libs</artifactId>
<version>0.0.1</version>
<packaging>pom</packaging>

<properties>
<maven-pax-plugin.version>1.5</maven-pax-plugin.version>
<maven-bundle-plugin.version>2.3.5</maven-bundle-plugin.version>
</properties>

<modules>
<module>tinkerpop-blueprints-core</module>
</modules>

<repositories>
<repository>
<id>tinkerpop-repository</id>
<name>TinkerPop Maven2 Repository</name>
<url>http://tinkerpop.com/maven2</url>
</repository>
</repositories>

<distributionManagement>
<repository>
<id>thirdparty</id>
<name>3rd party</name>
<url>http://cytoscape.wodaklab.org/nexus/content/repositories/thirdparty</url>
</repository>
</distributionManagement>
</project>
11 changes: 11 additions & 0 deletions tinkerpop-blueprints-core/osgi.bnd
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,11 @@
#--------------------------------------------------------------------------
# Use this file to add customized Bnd instructions for the wrapped library
#--------------------------------------------------------------------------

#
# this unpacks the contents of the wrapped jar artifact inside the bundle
# to also inline dependencies of this artifact add Embed-Transitive: true
#
Embed-Dependency: *;scope=compile|runtime;type=!pom;inline=true

Import-Package: *;resolution:=optional
64 changes: 64 additions & 0 deletions tinkerpop-blueprints-core/pom.xml
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>org.cytoscape.wrappers</groupId>
<artifactId>wrapped-osgi-libs</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>

<properties>
<bundle.symbolicName>com.tinkerpop.blueprints.core</bundle.symbolicName>
<wrapped.groupId>com.tinkerpop.blueprints</wrapped.groupId>
<wrapped.artifactId>blueprints-core</wrapped.artifactId>
<wrapped.version>0.9</wrapped.version>
</properties>

<modelVersion>4.0.0</modelVersion>
<groupId>org.cytoscape.wrappers</groupId>
<artifactId>tinkerpop-blueprints-core</artifactId>
<version>${wrapped.version}</version>

<name>${bundle.symbolicName} ${wrapped.version} [wrapped OSGi bundle]</name>

<packaging>bundle</packaging>

<dependencies>
<dependency>
<groupId>${wrapped.groupId}</groupId>
<artifactId>${wrapped.artifactId}</artifactId>
<version>${wrapped.version}</version>
<optional>true</optional>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.ops4j</groupId>
<artifactId>maven-pax-plugin</artifactId>
<version>${maven-pax-plugin.version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${maven-bundle-plugin.version}</version>
<configuration>
<instructions>
<Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
<Bundle-Version>${wrapped.version}</Bundle-Version>
<_exportcontents>*</_exportcontents>
<Private-Package>!*</Private-Package>
<_include>-osgi.bnd</_include>
</instructions>
</configuration>
</plugin>
</plugins>
</build>



</project>

0 comments on commit c523d45

Please sign in to comment.