Specify explicit javax.ws.rs version in restconf 55/68255/9
authorTom Pantelis <tompantelis@gmail.com>
Wed, 14 Feb 2018 17:13:05 +0000 (12:13 -0500)
committerJakubToth <jakub.toth@pantheon.tech>
Wed, 28 Feb 2018 10:05:20 +0000 (10:05 +0000)
This seems to fix the intermittent issue where restconf
fails to install due to 2 versions of javax.ws.rs and
javax.annotation.

Change-Id: I6b106d700b89df575ee975f45e047cedb8c03e02
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
restconf/restconf-common/pom.xml
restconf/restconf-nb-bierman02/pom.xml
restconf/restconf-nb-rfc8040/pom.xml

index bed5e5fb7288c2d8e20abee3b9df6c98bb0d2063..5cdbd8963e1407dd386e23dd7bc25fcc096dd11b 100644 (file)
       <scope>test</scope>
     </dependency>
   </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <extensions>true</extensions>
+        <configuration>
+          <instructions>
+            <Import-Package>
+              !javax.annotation,
+              javax.ws.rs.*;version="[1.1.0,2.0.0)",
+              *
+            </Import-Package>
+          </instructions>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>
index 4a90ef4b77c09a129c0b79a3be046b6bd2ad92bb..cadda6787beddaa91791e9a40c78d43c4f02a8f8 100644 (file)
               org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.rest.connector.rev140724.*,
             </Private-Package>
             <Import-Package>
+              !javax.annotation,
+              javax.ws.rs.*;version="[1.1.0,2.0.0)",
               *,
               com.sun.jersey.spi.container.servlet,
               org.eclipse.jetty.servlets,
index a5b2060633dd38cb82202087d2e0213b1e09709c..e10030557f173ba19ff783c27683c21924bb4c9c 100644 (file)
           <instructions>
             <Bundle-Name>MD SAL Restconf Connector</Bundle-Name>
             <Import-Package>
+              !javax.annotation,
+              javax.ws.rs.*;version="[1.1.0,2.0.0)",
               *,
               com.sun.jersey.spi.container.servlet,
               org.eclipse.jetty.servlets,