Changing location where ONOS stages its deployed apps.

Change-Id: Ia3931454067829b6331419f81a714d865dc8a1e6
diff --git a/core/common/src/main/java/org/onosproject/common/app/ApplicationArchive.java b/core/common/src/main/java/org/onosproject/common/app/ApplicationArchive.java
index d60f74b..880a31b 100644
--- a/core/common/src/main/java/org/onosproject/common/app/ApplicationArchive.java
+++ b/core/common/src/main/java/org/onosproject/common/app/ApplicationArchive.java
@@ -76,9 +76,9 @@
     private static final String APP_XML = "app.xml";
     private static final String M2_PREFIX = "m2";
 
-    private static final String KARAF_ROOT = ".";
+    private static final String KARAF_ROOT = "../";
     private static final String M2_ROOT = "system/";
-    private static final String APPS_ROOT = "data/apps/";
+    private static final String APPS_ROOT = "apps/";
 
     private File karafRoot = new File(KARAF_ROOT);
     private File m2Dir = new File(karafRoot, M2_ROOT);
diff --git a/core/common/src/test/java/org/onosproject/common/app/ApplicationArchiveTest.java b/core/common/src/test/java/org/onosproject/common/app/ApplicationArchiveTest.java
index 240ed96..8070dfe 100644
--- a/core/common/src/test/java/org/onosproject/common/app/ApplicationArchiveTest.java
+++ b/core/common/src/test/java/org/onosproject/common/app/ApplicationArchiveTest.java
@@ -35,7 +35,7 @@
 
 public class ApplicationArchiveTest {
 
-    static final String ROOT = "/tmp/app-junit/" + new Random().nextInt();
+    static final String ROOT = "/tmp/app-junit/" + new Random().nextInt() + "/foo";
 
     private ApplicationArchive aar = new ApplicationArchive();