[SMX4-919] Add sources artifact for all bundles

git-svn-id: https://svn.apache.org/repos/asf/servicemix/smx4/bundles/trunk/xerces-2.10.0@1236741 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index b84418c..0185162 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 
     <!--
 
@@ -41,18 +41,14 @@
         <pkgVersion>2.10.0</pkgVersion>
         <servicemix.osgi.import.pkg>
           !sun.io*,
-          !org.apache.html*,
-          !org.apache.wml*,
-          !org.apache.xerces*,
-          !org.apache.xml.serialize,
           org.apache.xml.resolver*;version="[1.2,2)",
           *
         </servicemix.osgi.import.pkg>
         <servicemix.osgi.export.pkg>
-          org.apache.html*;version=${pkgVersion},
-          org.apache.wml*;version=${pkgVersion},
-          org.apache.xerces*;version=${pkgVersion},
-          org.apache.xml.serialize*;version=${pkgVersion}
+          org.apache.html*;version=${pkgVersion};-split-package:=merge-first,
+          org.apache.wml*;version=${pkgVersion};-split-package:=merge-first,
+          org.apache.xerces*;version=${pkgVersion};-split-package:=merge-first,
+          org.apache.xml.serialize*;version=${pkgVersion};-split-package:=merge-first
         </servicemix.osgi.export.pkg>
         <servicemix.osgi.private.pkg>
             META-INF.services*
@@ -65,6 +61,16 @@
             <groupId>${pkgGroupId}</groupId>
             <artifactId>${pkgArtifactId}</artifactId>
             <version>${pkgVersion}</version>
+            <optional>true</optional>
+        </dependency>
+
+        <!-- sources -->
+        <dependency>
+            <groupId>${pkgGroupId}</groupId>
+            <artifactId>${pkgArtifactId}</artifactId>
+            <version>${pkgVersion}</version>
+            <classifier>sources</classifier>
+            <optional>true</optional>
         </dependency>
     </dependencies>