Skip to content

Commit

Permalink
Added OSGI Headers in Manifest.MF (#218)
Browse files Browse the repository at this point in the history
* OSGIFied

Added OSGI headers.

* OSGIfied

Added for building jars for JDK 1.7 too

* OSGIfied

Fixed problem of having microsoft.sql in import & export packages.

* OSGIfied

Just keeping same convention.

* Adding version details for maven-bundle-plugin

Adding version details for maven-bundle-plugin

* Fixed Travis build issue.

Somhow Travis CI could not able to resolve 3.3 maven-bundle from felix.
It works perfectly on local env & appveyor
  • Loading branch information
v-nisidh authored Apr 1, 2017
1 parent 304acab commit 0ef9f3f
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,7 @@
<configuration>
<finalName>${project.artifactId}-${project.version}.jre7</finalName>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
Expand Down Expand Up @@ -196,9 +194,7 @@
<configuration>
<finalName>${project.artifactId}-${project.version}.jre8</finalName>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
Expand Down Expand Up @@ -263,7 +259,28 @@
</execution>
</executions>
</plugin>

<!-- Create OSGI Headers -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>3.2.0</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Export-Package>com.microsoft.sqlserver.jdbc,microsoft.sql</Export-Package>
<Import-Package>!microsoft.sql,*</Import-Package>
</instructions>
</configuration>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 0ef9f3f

Please sign in to comment.