Fixing pom.xml duplicate dependencies and tying in lib into the root pom.

Change-Id: I00a13c0e0acc0c4a99fde1cd1d4fe06dbf3fb2f9
diff --git a/apps/graphitemetrics/pom.xml b/apps/graphitemetrics/pom.xml
index a6b9948..c209297 100644
--- a/apps/graphitemetrics/pom.xml
+++ b/apps/graphitemetrics/pom.xml
@@ -58,10 +58,6 @@
             <artifactId>org.apache.karaf.shell.console</artifactId>
         </dependency>
         <dependency>
-            <groupId>org.apache.felix</groupId>
-            <artifactId>org.apache.felix.scr.annotations</artifactId>
-        </dependency>
-        <dependency>
             <groupId>io.dropwizard.metrics</groupId>
             <artifactId>metrics-core</artifactId>
             <version>${metrics.version}</version>
@@ -73,13 +69,6 @@
         </dependency>
         <dependency>
             <groupId>org.onosproject</groupId>
-            <artifactId>onos-api</artifactId>
-            <version>${project.version}</version>
-            <classifier>tests</classifier>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.onosproject</groupId>
             <artifactId>onlab-junit</artifactId>
             <scope>test</scope>
         </dependency>
diff --git a/apps/routing/pom.xml b/apps/routing/pom.xml
index a744dd8..144e240 100644
--- a/apps/routing/pom.xml
+++ b/apps/routing/pom.xml
@@ -130,14 +130,6 @@
             <scope>test</scope>
             <classifier>tests</classifier>
         </dependency>
-        <dependency>
-            <groupId>org.onosproject</groupId>
-            <artifactId>onos-incubator-api</artifactId>
-            <version>${project.version}</version>
-            <scope>test</scope>
-            <classifier>tests</classifier>
-        </dependency>
-
     </dependencies>
 
 </project>
diff --git a/apps/segmentrouting/pom.xml b/apps/segmentrouting/pom.xml
index b2db87f..f29caeb 100644
--- a/apps/segmentrouting/pom.xml
+++ b/apps/segmentrouting/pom.xml
@@ -71,11 +71,6 @@
             <version>${project.version}</version>
         </dependency>
         <dependency>
-            <groupId>org.onosproject</groupId>
-            <artifactId>onos-core-serializers</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-        <dependency>
             <groupId>javax.ws.rs</groupId>
             <artifactId>javax.ws.rs-api</artifactId>
             <version>2.0.1</version>
diff --git a/pom.xml b/pom.xml
index 91ac5f4..0df9c81 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,6 +54,8 @@
     </licenses>
 
     <modules>
+        <module>lib</module>
+
         <module>utils</module>
         <module>core</module>
         <module>web</module>