Skip to content

Commit 9ebef21

Browse files
eevansSylvain Lebresne
authored andcommitted
generate an OSGI-compliant jar (bundle)
1 parent c6e8e38 commit 9ebef21

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

driver-core/pom.xml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<version>1.0.5-SNAPSHOT</version>
2222
</parent>
2323
<artifactId>cassandra-driver-core</artifactId>
24-
<packaging>jar</packaging>
24+
<packaging>bundle</packaging>
2525
<name>DataStax Java Driver for Apache Cassandra - Core</name>
2626
<description>A driver for Apache Cassandra 1.2+ that works exclusively with the Cassandra Query Language version 3 (CQL3) and Cassandra's binary protocol.</description>
2727
<url>https://github.com/datastax/java-driver</url>
@@ -112,6 +112,32 @@
112112
<showDeprecation>true</showDeprecation>
113113
</configuration>
114114
</plugin>
115+
<plugin>
116+
<groupId>org.apache.felix</groupId>
117+
<artifactId>maven-bundle-plugin</artifactId>
118+
<extensions>true</extensions>
119+
<version>2.4.0</version>
120+
<executions>
121+
<execution>
122+
<id>bundle-manifest</id>
123+
<phase>process-classes</phase>
124+
<goals>
125+
<goal>manifest</goal>
126+
</goals>
127+
</execution>
128+
</executions>
129+
<configuration>
130+
<instructions>
131+
<Bundle-SymbolicName>com.datastax.driver.core</Bundle-SymbolicName>
132+
<Bundle-Version>${project.version}</Bundle-Version>
133+
<_include>-osgi.bnd</_include>
134+
</instructions>
135+
<supportedProjectTypes>
136+
<supportedProjectType>jar</supportedProjectType>
137+
<supportedProjectType>bundle</supportedProjectType>
138+
</supportedProjectTypes>
139+
</configuration>
140+
</plugin>
115141
</plugins>
116142
</build>
117143
</profile>

0 commit comments

Comments
 (0)