Skip to content

Instantly share code, notes, and snippets.

@dileeph
Created May 23, 2017 00:11
Show Gist options
  • Save dileeph/6e5181e17197bc06fd239480e86f0ead to your computer and use it in GitHub Desktop.
Save dileeph/6e5181e17197bc06fd239480e86f0ead to your computer and use it in GitHub Desktop.
<!-- at top -->
<groupId>com.x</groupId>
<artifactId>policy.service.a</artifactId>
<version>3.0.0</version>
<packaging>bundle</packaging>
<!-- in dependencies -->
<dependencies>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<version>4.2.0</version>
</dependency>
<dependency>
<groupId>com.x</groupId>
<artifactId>policy.service.api</artifactId>
<version>3.0.0</version>
</dependency>
</dependencies>
<!-- in build -->
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<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>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment