Change scope to provided. The core api and compendium api are provided at runtime through the OSGi framework, therefore provided is more accurate as compile. And using provided avoids problems with downstream users
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<version>4.1.0</version>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.compendium</artifactId>
<version>4.2.0</version>
+ <scope>provided</scope>
</dependency>
</dependencies>
<build>
