Skip to content

Instantly share code, notes, and snippets.

@dileeph
Created May 23, 2017 00:02
Show Gist options
  • Save dileeph/c17c4e76386b28a438e1728025211a4f to your computer and use it in GitHub Desktop.
Save dileeph/c17c4e76386b28a438e1728025211a4f to your computer and use it in GitHub Desktop.
<!-- at the top , note packaging is changed from jar to bundle-->
<groupId>com.x</groupId>
<artifactId>policy.client</artifactId>
<version>3.0.0</version>
<packaging>bundle</packaging>
===================================
<!-- inside dependencies -->
<dependency>
<groupId>com.x</groupId>
<artifactId>policy.service.api</artifactId>
<version>3.0.0</version>
</dependency>
=========================================================
<!-- inside build tag replace jar plugin with following -->
<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>
</instructions>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment