We need to avoid having OSGi core bundles pulled in by features (they
cause bundle refreshes which break Pax Exam tests). This patch marks
the OSGi bundles as provided, and excludes them from generated
features.
Change-Id: I66f519e4d498f956cb3fa087d98d30a64b3316f4
Signed-off-by: Stephen Kitt <skitt@redhat.com>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.compendium</artifactId>
- <version>5.0.0</version>
+ <version>${osgi.core.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<excludedArtifactId>org.apache.karaf.jaas.modules</excludedArtifactId>
<excludedArtifactId>org.apache.karaf.shell.console</excludedArtifactId>
<excludedArtifactId>org.apache.karaf.shell.core</excludedArtifactId>
+ <!-- OSGi -->
+ <excludedArtifactId>org.osgi.compendium</excludedArtifactId>
+ <excludedArtifactId>org.osgi.core</excludedArtifactId>
+ <excludedArtifactId>org.osgi.enterprise</excludedArtifactId>
</excludedArtifactIds>
</configuration>
</plugin>