Fix OSGI classpath problem
If `org.osgi:org.osgi.core` is on the classpath, it overrides the much
newer Felix and Equinox versions.
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>logback-core</artifactId>
<scope>test</scope>
</dependency>
- <!-- Place Felix before Equinox because Felix is signed. / also place it before org.osgi.core so that its versions of the OSGi classes are used -->
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.framework</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
+ <classpathDependencyExcludes>
+ org.osgi:org.osgi.core
+ </classpathDependencyExcludes>
<systemPropertyVariables>
<!-- PAX logging has a copy of Log4j2 API-->
<pax.exam.logging>false</pax.exam.logging>
