From 5722a9fbe660994fca16332a4f4522cfd1de864f Mon Sep 17 00:00:00 2001
From: Malintha Fernando <malinthafe@wso2.com>
Date: Fri, 11 Nov 2016 14:04:23 +0530
Subject: [PATCH] Fixing javax.xml.parsers.import.pkg.version issue

---
 .../org.wso2.carbon.device.mgt.iot.output.adapter.ui/pom.xml   | 3 ++-
 .../iot-base-plugin/org.wso2.carbon.device.mgt.iot/pom.xml     | 3 ++-
 .../org.wso2.carbon.device.mgt.mobile/pom.xml                  | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot.output.adapter.ui/pom.xml b/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot.output.adapter.ui/pom.xml
index fe92a5e6b..787c3d747 100644
--- a/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot.output.adapter.ui/pom.xml
+++ b/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot.output.adapter.ui/pom.xml
@@ -140,7 +140,8 @@
                             org.wso2.carbon.event.stream.core,
                             org.wso2.carbon.event.stream.core.exception,
                             org.wso2.carbon.utils,
-                            javax.xml.*,
+                            javax.xml.*; !javax.xml.parsers,
+                            javax.xml.parsers; version="${javax.xml.parsers.import.pkg.version}",
                             org.w3c.dom,
                             org.wso2.carbon.identity.oauth2.stub,
                             org.wso2.carbon.identity.oauth2.stub.dto,
diff --git a/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot/pom.xml b/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot/pom.xml
index 96d952981..b19c4bc76 100644
--- a/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot/pom.xml
+++ b/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot/pom.xml
@@ -70,7 +70,8 @@
                             org.wso2.carbon.core,
                             org.wso2.carbon.device.mgt.common,
                             org.wso2.carbon.utils,
-                            javax.xml.*,
+                            javax.xml.*; !javax.xml.parsers,
+                            javax.xml.parsers; version="${javax.xml.parsers.import.pkg.version}",
                             org.w3c.dom
                         </Import-Package>
                         <Export-Package>
diff --git a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile/pom.xml b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile/pom.xml
index 2e30e81c4..eba613b20 100644
--- a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile/pom.xml
+++ b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile/pom.xml
@@ -55,7 +55,8 @@
                             org.osgi.framework,
                             org.osgi.service.component,
                             org.apache.commons.logging,
-                            javax.xml.*,
+                            javax.xml.*; !javax.xml.parsers,
+                            javax.xml.parsers; version="${javax.xml.parsers.import.pkg.version}",
                             javax.naming,
                             javax.sql,
                             org.w3c.dom,