Skip to content

Instantly share code, notes, and snippets.

@dileeph
Created May 23, 2017 00:06
Show Gist options
  • Save dileeph/dd31b16bfdcd627efafc22c4b55db742 to your computer and use it in GitHub Desktop.
Save dileeph/dd31b16bfdcd627efafc22c4b55db742 to your computer and use it in GitHub Desktop.
<!-- at top, note packaging type changed -->
<groupId>com.x</groupId>
<artifactId>policy.service.api</artifactId>
<version>3.0.0</version>
<packaging>bundle</packaging>
==================================
<!-- inside build tag, replace maven jar plugin with this -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>3.3.0</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Category>sample</Bundle-Category>
<Bundle-Activator>com.x.policy.Activator</Bundle-Activator>
<Export-Package>
com.x.policy.service.api
</Export-Package>
</instructions>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment