Skip to content

Commit

Permalink
[osgifeature] create a bundle
Browse files Browse the repository at this point in the history
- use osgi.service.feature snapshot
- use bnd and export OSGi API

Signed-off-by: Stefan Bischof <[email protected]>
  • Loading branch information
stbischof committed Jun 15, 2021
1 parent 47a3c77 commit 1c2a39f
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions osgi-featuremodel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@
<sling.java.version>11</sling.java.version>
</properties>

<repositories>
<repository>
<id>snapshots-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<build>
<plugins>
<plugin>
Expand All @@ -42,11 +54,10 @@
</archive>
</configuration>
</plugin>
<!--
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<version>4.3.1</version>
<version>5.3.0</version>
<executions>
<execution>
<goals>
Expand All @@ -56,12 +67,13 @@
</executions>
<configuration>
<bnd><![CDATA[
Export-Package: org.osgi.service.feature
-exportcontents: ${packages;VERSIONED}
-removeheaders: Private-Package,Include-Resource
]]></bnd>
</configuration>
</plugin>
-->

<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
Expand All @@ -83,8 +95,8 @@
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>osgi.core</artifactId>
<version>8.0.0</version>
<artifactId>org.osgi.service.feature</artifactId>
<version>1.0.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down

0 comments on commit 1c2a39f

Please sign in to comment.