Skip to content

Commit fe47dc0

Browse files
committed
Added missing OSGI version properties.
1 parent 0d65399 commit fe47dc0

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed

pom.xml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3535
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
3636
<slf4j.version>1.7.10</slf4j.version>
37+
38+
<!-- OSGO support -->
39+
<osgi.version>5.0.0</osgi.version>
40+
<osgi.compendium.version>${osgi.version}</osgi.compendium.version>
41+
<osgi.annotation.version>6.0.0</osgi.annotation.version>
3742
</properties>
3843

3944
<licenses>
@@ -80,6 +85,17 @@
8085
</execution>
8186
</executions>
8287
</plugin>
88+
<plugin>
89+
<groupId>biz.aQute.bnd</groupId>
90+
<artifactId>bnd-maven-plugin</artifactId>
91+
<executions>
92+
<execution>
93+
<goals>
94+
<goal>bnd-process</goal>
95+
</goals>
96+
</execution>
97+
</executions>
98+
</plugin>
8399
</plugins>
84100
<pluginManagement>
85101
<plugins>
@@ -112,6 +128,40 @@
112128
</lifecycleMappingMetadata>
113129
</configuration>
114130
</plugin>
131+
<plugin>
132+
<groupId>biz.aQute.bnd</groupId>
133+
<artifactId>bnd-maven-plugin</artifactId>
134+
<version>3.3.0</version>
135+
<dependencies>
136+
<dependency>
137+
<groupId>ch.qos.logback</groupId>
138+
<artifactId>logback-core</artifactId>
139+
<version>1.1.3</version>
140+
</dependency>
141+
<dependency>
142+
<groupId>org.slf4j</groupId>
143+
<artifactId>slf4j-api</artifactId>
144+
<version>1.7.13</version>
145+
</dependency>
146+
</dependencies>
147+
<executions>
148+
<execution>
149+
<goals>
150+
<goal>bnd-process</goal>
151+
</goals>
152+
</execution>
153+
</executions>
154+
</plugin>
155+
<plugin>
156+
<groupId>org.apache.maven.plugins</groupId>
157+
<artifactId>maven-jar-plugin</artifactId>
158+
<version>2.6</version>
159+
<configuration>
160+
<archive>
161+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
162+
</archive>
163+
</configuration>
164+
</plugin>
115165
</plugins>
116166
</pluginManagement>
117167
</build>
@@ -132,6 +182,28 @@
132182
<artifactId>jul-to-slf4j</artifactId>
133183
<version>${slf4j.version}</version>
134184
</dependency>
185+
<!-- OSGI support -->
186+
<dependency>
187+
<groupId>org.osgi</groupId>
188+
<artifactId>org.osgi.annotation</artifactId>
189+
<scope>provided</scope>
190+
<version>${osgi.annotation.version}</version>
191+
<optional>true</optional>
192+
</dependency>
193+
<dependency>
194+
<groupId>org.osgi</groupId>
195+
<artifactId>org.osgi.compendium</artifactId>
196+
<scope>provided</scope>
197+
<version>${osgi.compendium.version}</version>
198+
<optional>true</optional>
199+
</dependency>
200+
<dependency>
201+
<groupId>org.osgi</groupId>
202+
<artifactId>org.osgi.core</artifactId>
203+
<version>${osgi.version}</version>
204+
<scope>provided</scope>
205+
<optional>true</optional>
206+
</dependency>
135207
</dependencies>
136208
</dependencyManagement>
137209
<dependencies>
@@ -171,5 +243,22 @@
171243
<groupId>org.slf4j</groupId>
172244
<artifactId>slf4j-api</artifactId>
173245
</dependency>
246+
<!-- OSGI support -->
247+
<dependency>
248+
<groupId>org.testng</groupId>
249+
<artifactId>testng</artifactId>
250+
<scope>test</scope>
251+
</dependency>
252+
<dependency>
253+
<groupId>javax.money</groupId>
254+
<artifactId>money-api</artifactId>
255+
<version>${jsr.version}</version>
256+
<scope>compile</scope>
257+
</dependency>
258+
<dependency>
259+
<groupId>javax.annotation</groupId>
260+
<artifactId>javax.annotation-api</artifactId>
261+
<version>1.2</version>
262+
</dependency>
174263
</dependencies>
175264
</project>

0 commit comments

Comments
 (0)