update for ONOS 1.10.3 support

Change-Id: I441d387d3e5d20058bdf2ef9050d7fe42cc43234
diff --git a/build.gradle b/build.gradle
index 1653236..ce19cf3 100644
--- a/build.gradle
+++ b/build.gradle
@@ -87,12 +87,12 @@
 
 task buildOnosApps (type: Exec) {
     workingDir './apps'
-    commandLine 'mvn', 'clean', 'install', '-U'
+    commandLine 'mvn', 'dependency:copy-dependencies', '-Dmdep.copyPom=false', '-Dmdep.useRepositoryLayout=true', '-DoutputDirectory=m2/repository', '-Dmdep.addParentPoms=false', '-Dtype=oar', '-DexcludeTypes=jar', '-Dsilent=true', '-f', 'dependencies.xml'
 }
 
 task copyLocalRepo (dependsOn: buildOnosApps, type: Exec) {
     workingDir './'
-    commandLine 'cp', '-R', System.env.HOME + '/.m2/repository', '.'
+    commandLine 'cp', '-R', 'apps/m2/repository', '.'
 }
 
 task buildRepoImage (dependsOn: copyLocalRepo, type: Exec) {