pom modifications to appify olt-app
renaming package
diff --git a/api/pom.xml b/api/pom.xml
index 448998c..8919309 100644
--- a/api/pom.xml
+++ b/api/pom.xml
@@ -20,44 +20,31 @@
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
-        <artifactId>onos-olt</artifactId>
-        <groupId>org.onosproject</groupId>
-        <version>1.7.0-SNAPSHOT</version>
+        <artifactId>olt</artifactId>
+        <groupId>org.opencord</groupId>
+        <version>1.0-SNAPSHOT</version>
         <relativePath>../pom.xml</relativePath>
     </parent>
 
-    <artifactId>onos-app-olt-api</artifactId>
+    <artifactId>olt-api</artifactId>
     <packaging>bundle</packaging>
 
-    <url>http://onosproject.org</url>
+    <url>http://opencord.org</url>
 
-    <description>CORD OLT application API</description>
+    <description>OLT application API</description>
 
     <dependencies>
         <dependency>
             <groupId>org.onosproject</groupId>
             <artifactId>onlab-junit</artifactId>
+            <version>${onos.version}</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.onosproject</groupId>
             <artifactId>onos-core-serializers</artifactId>
-            <version>${project.version}</version>
+            <version>${onos.version}</version>
         </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>onos-cord-config</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-
     </dependencies>
 
     <build>
diff --git a/api/src/main/java/org/onosproject/olt/AccessDeviceEvent.java b/api/src/main/java/org/opencord/olt/AccessDeviceEvent.java
similarity index 98%
rename from api/src/main/java/org/onosproject/olt/AccessDeviceEvent.java
rename to api/src/main/java/org/opencord/olt/AccessDeviceEvent.java
index 8824cbd..6ab5b2a 100644
--- a/api/src/main/java/org/onosproject/olt/AccessDeviceEvent.java
+++ b/api/src/main/java/org/opencord/olt/AccessDeviceEvent.java
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.onosproject.olt;
+package org.opencord.olt;
 
 import org.onlab.packet.VlanId;
 import org.onosproject.event.AbstractEvent;
diff --git a/api/src/main/java/org/onosproject/olt/AccessDeviceListener.java b/api/src/main/java/org/opencord/olt/AccessDeviceListener.java
similarity index 96%
rename from api/src/main/java/org/onosproject/olt/AccessDeviceListener.java
rename to api/src/main/java/org/opencord/olt/AccessDeviceListener.java
index 14ec982..00cf28d 100644
--- a/api/src/main/java/org/onosproject/olt/AccessDeviceListener.java
+++ b/api/src/main/java/org/opencord/olt/AccessDeviceListener.java
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.onosproject.olt;
+package org.opencord.olt;
 
 import org.onosproject.event.EventListener;
 
diff --git a/api/src/main/java/org/onosproject/olt/AccessDeviceService.java b/api/src/main/java/org/opencord/olt/AccessDeviceService.java
similarity index 98%
rename from api/src/main/java/org/onosproject/olt/AccessDeviceService.java
rename to api/src/main/java/org/opencord/olt/AccessDeviceService.java
index aa90540..c6d90a1 100644
--- a/api/src/main/java/org/onosproject/olt/AccessDeviceService.java
+++ b/api/src/main/java/org/opencord/olt/AccessDeviceService.java
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-package org.onosproject.olt;
+package org.opencord.olt;
 
 import org.onlab.packet.VlanId;
 import org.onosproject.cordconfig.access.AccessDeviceData;
diff --git a/api/src/main/java/org/onosproject/olt/package-info.java b/api/src/main/java/org/opencord/olt/package-info.java
similarity index 95%
rename from api/src/main/java/org/onosproject/olt/package-info.java
rename to api/src/main/java/org/opencord/olt/package-info.java
index 7cbf6c1..dcbff1d 100644
--- a/api/src/main/java/org/onosproject/olt/package-info.java
+++ b/api/src/main/java/org/opencord/olt/package-info.java
@@ -17,4 +17,4 @@
 /**
  * OLT application api.
  */
-package org.onosproject.olt;
+package org.opencord.olt;
diff --git a/app/app.xml b/app/app.xml
index 5fcb040..49af7e0 100644
--- a/app/app.xml
+++ b/app/app.xml
@@ -20,5 +20,5 @@
      features="${project.artifactId}" apps="org.onosproject.cord-config">
     <description>${project.description}</description>
     <artifact>mvn:${project.groupId}/${project.artifactId}/${project.version}</artifact>
-    <artifact>mvn:${project.groupId}/onos-app-olt-api/${project.version}</artifact>
+    <artifact>mvn:${project.groupId}/olt-api/${project.version}</artifact>
 </app>
diff --git a/app/features.xml b/app/features.xml
index 9556edd..6385521 100644
--- a/app/features.xml
+++ b/app/features.xml
@@ -18,7 +18,7 @@
     <feature name="${project.artifactId}" version="${project.version}"
              description="${project.description}">
         <feature>onos-api</feature>
-        <bundle>mvn:${project.groupId}/onos-app-olt-api/${project.version}</bundle>
-        <bundle>mvn:${project.groupId}/onos-app-olt/${project.version}</bundle>
+        <bundle>mvn:${project.groupId}/olt-api/${project.version}</bundle>
+        <bundle>mvn:${project.groupId}/olt/${project.version}</bundle>
     </feature>
 </features>
diff --git a/app/pom.xml b/app/pom.xml
index ad5e57f..4b4afc5 100644
--- a/app/pom.xml
+++ b/app/pom.xml
@@ -18,14 +18,14 @@
          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">
     <parent>
-        <groupId>org.onosproject</groupId>
-        <artifactId>onos-olt</artifactId>
-        <version>1.7.0-SNAPSHOT</version>
+        <groupId>org.opencord</groupId>
+        <artifactId>olt</artifactId>
+        <version>1.0-SNAPSHOT</version>
         <relativePath>../pom.xml</relativePath>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
-    <artifactId>onos-app-olt</artifactId>
+    <artifactId>olt-app</artifactId>
 
     <packaging>bundle</packaging>
     <description>OLT application for CORD</description>
@@ -42,20 +42,15 @@
 
     <dependencies>
         <dependency>
-            <groupId>org.onosproject</groupId>
-            <artifactId>onos-cord-config</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.onosproject</groupId>
-            <artifactId>onos-app-olt-api</artifactId>
+            <groupId>org.opencord</groupId>
+            <artifactId>olt-api</artifactId>
             <version>${project.version}</version>
         </dependency>
 
         <dependency>
             <groupId>org.onosproject</groupId>
             <artifactId>onos-cli</artifactId>
-            <version>${project.version}</version>
+            <version>${onos.version}</version>
         </dependency>
 
         <dependency>
@@ -65,12 +60,7 @@
         <dependency>
             <groupId>org.onosproject</groupId>
             <artifactId>onos-rest</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.onosproject</groupId>
-            <artifactId>onlab-rest</artifactId>
-            <version>${project.version}</version>
+            <version>${onos.version}</version>
         </dependency>
         <dependency>
             <groupId>javax.ws.rs</groupId>
@@ -99,11 +89,19 @@
             <groupId>org.osgi</groupId>
             <artifactId>org.osgi.core</artifactId>
         </dependency>
+            <dependency>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>org.apache.felix.scr.annotations</artifactId>
+            </dependency>
     </dependencies>
 
     <build>
         <plugins>
             <plugin>
+                <groupId>org.onosproject</groupId>
+                <artifactId>onos-maven-plugin</artifactId>
+            </plugin>
+            <plugin>
                 <groupId>org.apache.felix</groupId>
                 <artifactId>maven-bundle-plugin</artifactId>
                 <extensions>true</extensions>
diff --git a/app/src/main/java/org/onosproject/olt/impl/package-info.java b/app/src/main/java/org/onosproject/olt/impl/package-info.java
deleted file mode 100644
index 238823b..0000000
--- a/app/src/main/java/org/onosproject/olt/impl/package-info.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Copyright 2016-present Open Networking Laboratory
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * OLT application handling PMC OLT hardware.
- */
-package org.onosproject.olt.impl;
diff --git a/app/src/main/java/org/onosproject/olt/cli/ShowOltCommand.java b/app/src/main/java/org/opencord/olt/cli/ShowOltCommand.java
similarity index 95%
rename from app/src/main/java/org/onosproject/olt/cli/ShowOltCommand.java
rename to app/src/main/java/org/opencord/olt/cli/ShowOltCommand.java
index a59714b..24d0828 100644
--- a/app/src/main/java/org/onosproject/olt/cli/ShowOltCommand.java
+++ b/app/src/main/java/org/opencord/olt/cli/ShowOltCommand.java
@@ -14,14 +14,14 @@
  * limitations under the License.
  */
 
-package org.onosproject.olt.cli;
+package org.opencord.olt.cli;
 
 import org.apache.karaf.shell.commands.Argument;
 import org.apache.karaf.shell.commands.Command;
 import org.onosproject.cli.AbstractShellCommand;
 import org.onosproject.cordconfig.access.AccessDeviceData;
 import org.onosproject.net.DeviceId;
-import org.onosproject.olt.AccessDeviceService;
+import org.opencord.olt.AccessDeviceService;
 
 import java.util.Map;
 
diff --git a/app/src/main/java/org/onosproject/olt/cli/ShowSubscribersCommand.java b/app/src/main/java/org/opencord/olt/cli/ShowSubscribersCommand.java
similarity index 94%
rename from app/src/main/java/org/onosproject/olt/cli/ShowSubscribersCommand.java
rename to app/src/main/java/org/opencord/olt/cli/ShowSubscribersCommand.java
index aee7b4d..08952eb 100644
--- a/app/src/main/java/org/onosproject/olt/cli/ShowSubscribersCommand.java
+++ b/app/src/main/java/org/opencord/olt/cli/ShowSubscribersCommand.java
@@ -14,13 +14,13 @@
  * limitations under the License.
  */
 
-package org.onosproject.olt.cli;
+package org.opencord.olt.cli;
 
 import org.apache.karaf.shell.commands.Command;
 import org.onlab.packet.VlanId;
 import org.onosproject.cli.AbstractShellCommand;
 import org.onosproject.net.ConnectPoint;
-import org.onosproject.olt.AccessDeviceService;
+import org.opencord.olt.AccessDeviceService;
 
 import java.util.Map;
 
diff --git a/app/src/main/java/org/onosproject/olt/cli/SubscriberAddCommand.java b/app/src/main/java/org/opencord/olt/cli/SubscriberAddCommand.java
similarity index 96%
rename from app/src/main/java/org/onosproject/olt/cli/SubscriberAddCommand.java
rename to app/src/main/java/org/opencord/olt/cli/SubscriberAddCommand.java
index 94578a7..9cf526d 100644
--- a/app/src/main/java/org/onosproject/olt/cli/SubscriberAddCommand.java
+++ b/app/src/main/java/org/opencord/olt/cli/SubscriberAddCommand.java
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-package org.onosproject.olt.cli;
+package org.opencord.olt.cli;
 
 import org.apache.karaf.shell.commands.Argument;
 import org.apache.karaf.shell.commands.Command;
@@ -23,7 +23,7 @@
 import org.onosproject.net.ConnectPoint;
 import org.onosproject.net.DeviceId;
 import org.onosproject.net.PortNumber;
-import org.onosproject.olt.AccessDeviceService;
+import org.opencord.olt.AccessDeviceService;
 
 /**
  * Adds a subscriber to an access device.
diff --git a/app/src/main/java/org/onosproject/olt/cli/SubscriberRemoveCommand.java b/app/src/main/java/org/opencord/olt/cli/SubscriberRemoveCommand.java
similarity index 95%
rename from app/src/main/java/org/onosproject/olt/cli/SubscriberRemoveCommand.java
rename to app/src/main/java/org/opencord/olt/cli/SubscriberRemoveCommand.java
index b119095..29bfd20 100644
--- a/app/src/main/java/org/onosproject/olt/cli/SubscriberRemoveCommand.java
+++ b/app/src/main/java/org/opencord/olt/cli/SubscriberRemoveCommand.java
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-package org.onosproject.olt.cli;
+package org.opencord.olt.cli;
 
 import org.apache.karaf.shell.commands.Argument;
 import org.apache.karaf.shell.commands.Command;
@@ -22,7 +22,7 @@
 import org.onosproject.net.ConnectPoint;
 import org.onosproject.net.DeviceId;
 import org.onosproject.net.PortNumber;
-import org.onosproject.olt.AccessDeviceService;
+import org.opencord.olt.AccessDeviceService;
 
 /**
  * Adds a subscriber to an access device.
diff --git a/app/src/main/java/org/onosproject/olt/cli/package-info.java b/app/src/main/java/org/opencord/olt/cli/package-info.java
similarity index 95%
rename from app/src/main/java/org/onosproject/olt/cli/package-info.java
rename to app/src/main/java/org/opencord/olt/cli/package-info.java
index 3b97404..d5805ce 100644
--- a/app/src/main/java/org/onosproject/olt/cli/package-info.java
+++ b/app/src/main/java/org/opencord/olt/cli/package-info.java
@@ -17,4 +17,4 @@
 /**
  * OLT application handling PMC OLT hardware.
  */
-package org.onosproject.olt.cli;
+package org.opencord.olt.cli;
diff --git a/app/src/main/java/org/onosproject/olt/impl/Olt.java b/app/src/main/java/org/opencord/olt/impl/Olt.java
similarity index 98%
rename from app/src/main/java/org/onosproject/olt/impl/Olt.java
rename to app/src/main/java/org/opencord/olt/impl/Olt.java
index 7075213..5e9a413 100644
--- a/app/src/main/java/org/onosproject/olt/impl/Olt.java
+++ b/app/src/main/java/org/opencord/olt/impl/Olt.java
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.onosproject.olt.impl;
+package org.opencord.olt.impl;
 
 import com.google.common.collect.Maps;
 import org.apache.felix.scr.annotations.Activate;
@@ -58,9 +58,9 @@
 import org.onosproject.net.flowobjective.Objective;
 import org.onosproject.net.flowobjective.ObjectiveContext;
 import org.onosproject.net.flowobjective.ObjectiveError;
-import org.onosproject.olt.AccessDeviceEvent;
-import org.onosproject.olt.AccessDeviceListener;
-import org.onosproject.olt.AccessDeviceService;
+import org.opencord.olt.AccessDeviceEvent;
+import org.opencord.olt.AccessDeviceListener;
+import org.opencord.olt.AccessDeviceService;
 import org.onosproject.store.serializers.KryoNamespaces;
 import org.onosproject.store.service.Serializer;
 import org.onosproject.store.service.StorageService;
diff --git a/app/src/main/java/org/onosproject/olt/cli/package-info.java b/app/src/main/java/org/opencord/olt/impl/package-info.java
similarity index 95%
copy from app/src/main/java/org/onosproject/olt/cli/package-info.java
copy to app/src/main/java/org/opencord/olt/impl/package-info.java
index 3b97404..5ea7afd 100644
--- a/app/src/main/java/org/onosproject/olt/cli/package-info.java
+++ b/app/src/main/java/org/opencord/olt/impl/package-info.java
@@ -17,4 +17,4 @@
 /**
  * OLT application handling PMC OLT hardware.
  */
-package org.onosproject.olt.cli;
+package org.opencord.olt.impl;
diff --git a/app/src/main/java/org/onosproject/olt/rest/OltWebResource.java b/app/src/main/java/org/opencord/olt/rest/OltWebResource.java
similarity index 96%
rename from app/src/main/java/org/onosproject/olt/rest/OltWebResource.java
rename to app/src/main/java/org/opencord/olt/rest/OltWebResource.java
index 84536ac..18b0221 100644
--- a/app/src/main/java/org/onosproject/olt/rest/OltWebResource.java
+++ b/app/src/main/java/org/opencord/olt/rest/OltWebResource.java
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.onosproject.olt.rest;
+package org.opencord.olt.rest;
 
 import javax.ws.rs.DELETE;
 import javax.ws.rs.POST;
@@ -27,7 +27,7 @@
 import org.onosproject.net.ConnectPoint;
 import org.onosproject.net.DeviceId;
 import org.onosproject.net.PortNumber;
-import org.onosproject.olt.AccessDeviceService;
+import org.opencord.olt.AccessDeviceService;
 import org.onosproject.rest.AbstractWebResource;
 
 /**
diff --git a/app/src/main/java/org/onosproject/olt/rest/package-info.java b/app/src/main/java/org/opencord/olt/rest/package-info.java
similarity index 94%
rename from app/src/main/java/org/onosproject/olt/rest/package-info.java
rename to app/src/main/java/org/opencord/olt/rest/package-info.java
index c0ddb5f..7bfc3c6 100644
--- a/app/src/main/java/org/onosproject/olt/rest/package-info.java
+++ b/app/src/main/java/org/opencord/olt/rest/package-info.java
@@ -17,4 +17,4 @@
 /**
  * REST APIs for the OLT application.
  */
-package org.onosproject.olt.rest;
+package org.opencord.olt.rest;
diff --git a/app/src/main/resources/OSGI-INF/blueprint/shell-config.xml b/app/src/main/resources/OSGI-INF/blueprint/shell-config.xml
index 3830357..b30fb06 100644
--- a/app/src/main/resources/OSGI-INF/blueprint/shell-config.xml
+++ b/app/src/main/resources/OSGI-INF/blueprint/shell-config.xml
@@ -17,28 +17,28 @@
 
     <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.1.0">
         <command>
-            <action class="org.onosproject.olt.cli.SubscriberAddCommand"/>
+            <action class="org.opencord.olt.cli.SubscriberAddCommand"/>
             <completers>
                 <ref component-id="deviceIdCompleter"/>
                 <null/>
             </completers>
         </command>
         <command>
-            <action class="org.onosproject.olt.cli.SubscriberRemoveCommand"/>
+            <action class="org.opencord.olt.cli.SubscriberRemoveCommand"/>
             <completers>
                 <ref component-id="deviceIdCompleter"/>
                 <null/>
             </completers>
         </command>
         <command>
-            <action class="org.onosproject.olt.cli.ShowOltCommand"/>
+            <action class="org.opencord.olt.cli.ShowOltCommand"/>
             <completers>
                 <ref component-id="deviceIdCompleter"/>
                 <null/>
             </completers>
         </command>
         <command>
-            <action class="org.onosproject.olt.cli.ShowSubscribersCommand"/>
+            <action class="org.opencord.olt.cli.ShowSubscribersCommand"/>
         </command>
     </command-bundle>
 
diff --git a/app/src/main/webapp/WEB-INF/web.xml b/app/src/main/webapp/WEB-INF/web.xml
index f463194..a598262 100644
--- a/app/src/main/webapp/WEB-INF/web.xml
+++ b/app/src/main/webapp/WEB-INF/web.xml
@@ -26,7 +26,7 @@
         <init-param>
             <param-name>jersey.config.server.provider.classnames</param-name>
             <param-value>
-                org.onosproject.olt.rest.OltWebResource
+                org.opencord.olt.rest.OltWebResource
             </param-value>
         </init-param>
         <load-on-startup>1</load-on-startup>
diff --git a/pom.xml b/pom.xml
index 676c49a..5130b27 100644
--- a/pom.xml
+++ b/pom.xml
@@ -17,22 +17,70 @@
 <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">
-    <parent>
-        <groupId>org.onosproject</groupId>
-        <artifactId>onos-apps</artifactId>
-        <version>1.7.0-SNAPSHOT</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
     <modelVersion>4.0.0</modelVersion>
 
-    <artifactId>onos-olt</artifactId>
+    <parent>
+        <groupId>org.onosproject</groupId>
+        <artifactId>onos</artifactId>
+        <version>1.6.0-SNAPSHOT</version>
+        <relativePath></relativePath>
+    </parent>
 
+    <groupId>org.opencord</groupId>
+    <artifactId>olt</artifactId>
+    <version>1.0-SNAPSHOT</version>
     <packaging>pom</packaging>
-    <description>OLT application for CORD</description>
+
+    <properties>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <onos.version>1.6.0-SNAPSHOT</onos.version>
+        <onos.app.name>org.opencord.olt</onos.app.name>
+        <onos.app.title>OLT Access Management</onos.app.title>
+        <onos.app.origin>OpenCord</onos.app.origin>
+        <onos.app.category>default</onos.app.category>
+        <onos.app.url>http://opencord.org</onos.app.url>
+        <onos.app.readme>CORD OLT Access management application</onos.app.readme>
+    </properties>
 
     <modules>
         <module>api</module>
         <module>app</module>
     </modules>
 
+    
+    <dependencies>
+        <dependency>
+            <groupId>org.onosproject</groupId>
+            <artifactId>onos-api</artifactId>
+            <version>${onos.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.onosproject</groupId>
+            <artifactId>onos-cord-config</artifactId>
+            <version>${onos.version}</version>
+        </dependency>
+        
+        <!-- TODO FIX ONOS ROOT POM to split thirdparty and onos dependencies -->
+        <dependency>
+            <groupId>org.onosproject</groupId>
+            <artifactId>onlab-misc</artifactId>
+            <version>${onos.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.onosproject</groupId>
+            <artifactId>onlab-osgi</artifactId>
+            <version>${onos.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.onosproject</groupId>
+            <artifactId>onos-incubator-api</artifactId>
+            <version>${onos.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.onosproject</groupId>
+            <artifactId>onos-core-common</artifactId>
+            <version>${onos.version}</version>
+        </dependency>
+    </dependencies>
+
 </project>