Converted all artifacts to OSGi jars.

Fixed the split package warnings resulting from inclusion of generated test resources into the production jar by pruning them out prior to packaging.

Change-Id: Ie1669dfbef6198a511c1df38b5771c7a3c647717
diff --git a/serializers/json/pom.xml b/serializers/json/pom.xml
index b73165a..e0df2df 100644
--- a/serializers/json/pom.xml
+++ b/serializers/json/pom.xml
@@ -71,15 +71,4 @@
             <version>RELEASE</version>
         </dependency>
     </dependencies>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.felix</groupId>
-                <artifactId>maven-bundle-plugin</artifactId>
-                <version>3.2.0</version>
-                <extensions>true</extensions>
-            </plugin>
-        </plugins>
-    </build>
 </project>
diff --git a/serializers/utils/pom.xml b/serializers/utils/pom.xml
index b1866f9..c81ad39 100644
--- a/serializers/utils/pom.xml
+++ b/serializers/utils/pom.xml
@@ -27,7 +27,7 @@
     </parent>
 
     <artifactId>onos-yang-serializers-utils</artifactId>
-    <packaging>jar</packaging>
+    <packaging>bundle</packaging>
 
     <dependencies>
         <dependency>
diff --git a/serializers/xml/pom.xml b/serializers/xml/pom.xml
index 21bc71e..6cecc56 100644
--- a/serializers/xml/pom.xml
+++ b/serializers/xml/pom.xml
@@ -23,7 +23,6 @@
         <groupId>org.onosproject</groupId>
         <artifactId>onos-yang-serializers</artifactId>
         <version>1.12-SNAPSHOT</version>
-        <relativePath>../pom.xml</relativePath>
     </parent>
 
     <artifactId>onos-yang-serializers-xml</artifactId>
@@ -75,11 +74,30 @@
                     </execution>
                 </executions>
             </plugin>
+
+            <!--
+            Cleans up generated test artifacts which get included as a source
+            directory, but which we don't want as part of the bundle.
+             -->
             <plugin>
-                <groupId>org.apache.felix</groupId>
-                <artifactId>maven-bundle-plugin</artifactId>
-                <version>3.2.0</version>
-                <extensions>true</extensions>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <version>1.8</version>
+                <executions>
+                    <execution>
+                        <phase>prepare-package</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <delete>
+                                    <fileset dir="${project.build.outputDirectory}/org/onosproject/yang/gen" includes="**/*"/>
+                                </delete>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
             </plugin>
         </plugins>
     </build>