Skip to content

Instantly share code, notes, and snippets.

@dileeph
Last active May 22, 2017 19:41
Show Gist options
  • Save dileeph/f706de8f872885f9d302cc329e9ab0f2 to your computer and use it in GitHub Desktop.
Save dileeph/f706de8f872885f9d302cc329e9ab0f2 to your computer and use it in GitHub Desktop.
simple declarative services osgi service and client
<dependencies>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<version>4.2.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<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>
<Service-Component>OSGI-INF/component.xml</Service-Component>
<Export-Package>
com.x.echo.api
</Export-Package>
</instructions>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment