Updating Buck files to build OSGi jars

- Using osgi_jar for all modules except apps
- Adding target for installation of core modules to .m2 repo

Change-Id: I65d9e3a9567918e275191724842d7d9b1f485128
diff --git a/core/store/dist/BUCK b/core/store/dist/BUCK
index 8653ad5..c9bd95c 100644
--- a/core/store/dist/BUCK
+++ b/core/store/dist/BUCK
@@ -22,7 +22,7 @@
      '//core/common:onos-core-common-tests',
 ]
 
-java_library(
+osgi_jar(
     name = CURRENT_NAME,
     srcs = glob([SRC + '/*.java']),
     deps = COMPILE_DEPS,