Bug 7926: exclude OSGi bundles from features 59/55759/2
authorStephen Kitt <skitt@redhat.com>
Thu, 20 Apr 2017 17:26:06 +0000 (19:26 +0200)
committerRobert Varga <nite@hq.sk>
Thu, 20 Apr 2017 20:18:29 +0000 (20:18 +0000)
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>
odlparent/pom.xml
single-feature-parent/pom.xml

index 79e9f4842c8ccc05321e0dc8d65f41ea36887e54..78f581dda645144a0d821693c46506865f37d45a 100644 (file)
       <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>
index 4443b3905d247470b0b2a0efeb05169da3a2ef23..b9298c2ffcd77e24c0884ec3c12b8d9c8c2c1720 100644 (file)
                         <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>