Converting builtin applications to be delivered in a self-contained manner via OAR files.

Change-Id: I5b7c6939aacc263248868fac2e0f69124c5f3609
diff --git a/app.xml b/app.xml
new file mode 100644
index 0000000..90246c1
--- /dev/null
+++ b/app.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2015 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.
+  -->
+<app name="org.onosproject.segmentrouting" origin="ON.Lab" version="${feature.version}"
+     featuresRepo="mvn:${project.groupId}/${project.artifactId}/${project.version}/xml/features"
+     features="${project.artifactId}">
+    <description>${project.description}</description>
+    <artifact>mvn:${project.groupId}/${project.artifactId}/${project.version}</artifact>
+</app>
+
diff --git a/pom.xml b/pom.xml
index 3e541f0..fa54f26 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,26 +13,21 @@
   ~ 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.

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

+  -->

+<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">

     <modelVersion>4.0.0</modelVersion>

     <parent>

-    <artifactId>onos-apps</artifactId>

-    <groupId>org.onosproject</groupId>

-    <version>1.2.0-SNAPSHOT</version>

-  </parent>

+        <artifactId>onos-apps</artifactId>

+        <groupId>org.onosproject</groupId>

+        <version>1.2.0-SNAPSHOT</version>

+        <relativePath>../pom.xml</relativePath>

+    </parent>

 

     <artifactId>onos-app-segmentrouting</artifactId>

     <packaging>bundle</packaging>

 

-    <description>ONOS OSGi bundle archetype</description>

-    <url>http://onosproject.org</url>

-

-    <dependencies>

-        <dependency>

-            <groupId>org.onosproject</groupId>

-            <artifactId>onos-app-grouphandler</artifactId>

-            <version>1.2.0-SNAPSHOT</version>

-        </dependency>

-    </dependencies>

+    <description>Segment routing application</description>

 

 </project>