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/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>