Adding means to build pom files for publishing to Maven repository.
Change-Id: Ife5b8570652e9b35744a4276c0896c69c4f5dcf3
diff --git a/lib/BUCK b/lib/BUCK
index e4c0b6c..bd02414 100644
--- a/lib/BUCK
+++ b/lib/BUCK
@@ -1,4 +1,4 @@
-# ***** This file was auto-generated at Fri, 13 Jul 2018 17:38:31 GMT. Do not edit this file manually. *****
+# ***** This file was auto-generated at Fri, 20 Jul 2018 15:28:54 GMT. Do not edit this file manually. *****
# ***** Use onos-lib-gen *****
pass_thru_pom(
diff --git a/tools/build/bazel/BUILD b/tools/build/bazel/BUILD
index 57a2ce1..d819d63 100644
--- a/tools/build/bazel/BUILD
+++ b/tools/build/bazel/BUILD
@@ -19,6 +19,13 @@
visibility = ["//visibility:public"],
)
+py_binary(
+ name = "pom_generator",
+ srcs = ["pom_generator.py"],
+ main = "pom_generator.py",
+ visibility = ["//visibility:public"],
+)
+
java_binary(
name = "onos_yang_compiler",
main_class = "org.onosproject.yang.compiler.main.YangCompilerMain",
diff --git a/tools/build/bazel/generate_workspace.bzl b/tools/build/bazel/generate_workspace.bzl
index 6bd9ccb..edf213a 100644
--- a/tools/build/bazel/generate_workspace.bzl
+++ b/tools/build/bazel/generate_workspace.bzl
@@ -1,4 +1,4 @@
-# ***** This file was auto-generated at Fri, 13 Jul 2018 17:38:35 GMT. Do not edit this file manually. *****
+# ***** This file was auto-generated at Fri, 20 Jul 2018 15:28:59 GMT. Do not edit this file manually. *****
# ***** Use onos-lib-gen *****
load("//tools/build/bazel:variables.bzl", "ONOS_GROUP_ID", "ONOS_VERSION")
@@ -2139,179 +2139,185 @@
)
artifact_map = {}
-artifact_map[str(Label("@aopalliance_repackaged//jar"))] = "mvn:org.glassfish.hk2.external:aopalliance-repackaged:jar:2.5.0-b42"
-artifact_map[str(Label("@amqp_client//jar"))] = "mvn:com.rabbitmq:amqp-client:jar:3.6.1"
-artifact_map[str(Label("@asm//jar"))] = "mvn:org.ow2.asm:asm:jar:5.0.4"
-artifact_map[str(Label("@atomix//jar"))] = "mvn:io.atomix:atomix:jar:2.0.23"
-artifact_map[str(Label("@commons_codec//jar"))] = "mvn:commons-codec:commons-codec:jar:1.10"
-artifact_map[str(Label("@commons_cli//jar"))] = "mvn:commons-cli:commons-cli:jar:1.3"
-artifact_map[str(Label("@commons_collections//jar"))] = "mvn:commons-collections:commons-collections:jar:3.2.2"
-artifact_map[str(Label("@commons_configuration//jar"))] = "mvn:commons-configuration:commons-configuration:jar:1.10"
-artifact_map[str(Label("@commons_io//jar"))] = "mvn:commons-io:commons-io:jar:2.6"
-artifact_map[str(Label("@commons_jxpath//jar"))] = "mvn:commons-jxpath:commons-jxpath:jar:1.3"
-artifact_map[str(Label("@commons_beanutils//jar"))] = "mvn:commons-beanutils:commons-beanutils:jar:1.9.3"
-artifact_map[str(Label("@jdom//jar"))] = "mvn:jdom:jdom:jar:NON-OSGI:1.0"
-artifact_map[str(Label("@commons_lang//jar"))] = "mvn:commons-lang:commons-lang:jar:2.6"
-artifact_map[str(Label("@commons_lang3//jar"))] = "mvn:org.apache.commons:commons-lang3:jar:3.7"
-artifact_map[str(Label("@commons_logging//jar"))] = "mvn:commons-logging:commons-logging:jar:1.2"
-artifact_map[str(Label("@commons_math3//jar"))] = "mvn:org.apache.commons:commons-math3:jar:3.6.1"
-artifact_map[str(Label("@commons_pool//jar"))] = "mvn:commons-pool:commons-pool:jar:1.6"
-artifact_map[str(Label("@commons_text//jar"))] = "mvn:org.apache.commons:commons-text:jar:1.3"
-artifact_map[str(Label("@concurrent_trees//jar"))] = "mvn:com.googlecode.concurrent-trees:concurrent-trees:jar:2.6.1"
-artifact_map[str(Label("@easymock//jar"))] = "mvn:org.easymock:easymock:jar:3.6"
-artifact_map[str(Label("@antlr//jar"))] = "mvn:antlr:antlr:jar:NON-OSGI:2.7.7"
-artifact_map[str(Label("@error_prone_annotations//jar"))] = "mvn:com.google.errorprone:error_prone_annotations:jar:NON-OSGI:2.0.18"
-artifact_map[str(Label("@ganymed_ssh2//jar"))] = "mvn:ch.ethz.ganymed:ganymed-ssh2:jar:NON-OSGI:262"
-artifact_map[str(Label("@gmetric4j//jar"))] = "mvn:info.ganglia.gmetric4j:gmetric4j:jar:1.0.10"
-artifact_map[str(Label("@gson//jar"))] = "mvn:com.google.code.gson:gson:jar:2.7"
-artifact_map[str(Label("@guava//jar"))] = "mvn:com.google.guava:guava:jar:22.0"
-artifact_map[str(Label("@guava_testlib//jar"))] = "mvn:com.google.guava:guava-testlib:jar:NON-OSGI:22.0"
-artifact_map[str(Label("@hamcrest_all//jar"))] = "mvn:org.hamcrest:hamcrest-all:jar:NON-OSGI:1.3"
-artifact_map[str(Label("@hk2_api//jar"))] = "mvn:org.glassfish.hk2:hk2-api:jar:2.5.0-b42"
-artifact_map[str(Label("@hk2_locator//jar"))] = "mvn:org.glassfish.hk2:hk2-locator:jar:2.5.0-b42"
-artifact_map[str(Label("@hk2_osgi_resource_locator//jar"))] = "mvn:org.glassfish.hk2:osgi-resource-locator:jar:1.0.1"
-artifact_map[str(Label("@hk2_utils//jar"))] = "mvn:org.glassfish.hk2:hk2-utils:jar:2.5.0-b42"
-artifact_map[str(Label("@httpclient_osgi//jar"))] = "mvn:org.apache.httpcomponents:httpclient-osgi:jar:4.5.1"
-artifact_map[str(Label("@httpcore_osgi//jar"))] = "mvn:org.apache.httpcomponents:httpcore-osgi:jar:4.4.4"
-artifact_map[str(Label("@influxdb_java//jar"))] = "mvn:org.influxdb:influxdb-java:jar:NON-OSGI:2.9"
-artifact_map[str(Label("@retrofit//jar"))] = "mvn:com.squareup.retrofit2:retrofit:jar:NON-OSGI:2.3.0"
-artifact_map[str(Label("@converter_moshi//jar"))] = "mvn:com.squareup.retrofit2:converter-moshi:jar:NON-OSGI:2.3.0"
-artifact_map[str(Label("@okhttp//jar"))] = "mvn:com.squareup.okhttp3:okhttp:jar:NON-OSGI:3.9.1"
-artifact_map[str(Label("@logging_interceptor//jar"))] = "mvn:com.squareup.okhttp3:logging-interceptor:jar:NON-OSGI:3.9.1"
-artifact_map[str(Label("@moshi//jar"))] = "mvn:com.squareup.moshi:moshi:jar:NON-OSGI:1.4.0"
-artifact_map[str(Label("@okio//jar"))] = "mvn:com.squareup.okio:okio:jar:NON-OSGI:1.11.0"
-artifact_map[str(Label("@jackson_annotations//jar"))] = "mvn:com.fasterxml.jackson.core:jackson-annotations:jar:2.9.5"
-artifact_map[str(Label("@jackson_core//jar"))] = "mvn:com.fasterxml.jackson.core:jackson-core:jar:2.9.5"
-artifact_map[str(Label("@jackson_databind//jar"))] = "mvn:com.fasterxml.jackson.core:jackson-databind:jar:2.9.5"
-artifact_map[str(Label("@javax_annotation_api//jar"))] = "mvn:javax.annotation:javax.annotation-api:jar:1.2"
-artifact_map[str(Label("@javax_inject//jar"))] = "mvn:org.glassfish.hk2.external:javax.inject:jar:2.5.0-b42"
-artifact_map[str(Label("@javax_ws_rs_api//jar"))] = "mvn:javax.ws.rs:javax.ws.rs-api:jar:2.1"
-artifact_map[str(Label("@jersey_client//jar"))] = "mvn:org.glassfish.jersey.core:jersey-client:jar:2.26"
-artifact_map[str(Label("@jersey_security//jar"))] = "mvn:org.glassfish.jersey.security:oauth2-client:jar:NON-OSGI:2.26"
-artifact_map[str(Label("@jersey_common//jar"))] = "mvn:org.glassfish.jersey.core:jersey-common:jar:2.26"
-artifact_map[str(Label("@jersey_container_jetty_http//jar"))] = "mvn:org.glassfish.jersey.containers:jersey-container-jetty-http:jar:2.26"
-artifact_map[str(Label("@jersey_container_servlet//jar"))] = "mvn:org.glassfish.jersey.containers:jersey-container-servlet:jar:2.26"
-artifact_map[str(Label("@jersey_container_servlet_core//jar"))] = "mvn:org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.26"
-artifact_map[str(Label("@jersey_media_multipart//jar"))] = "mvn:org.glassfish.jersey.media:jersey-media-multipart:jar:2.26"
-artifact_map[str(Label("@jersey_server//jar"))] = "mvn:org.glassfish.jersey.core:jersey-server:jar:2.26"
-artifact_map[str(Label("@jersey_hk2//jar"))] = "mvn:org.glassfish.jersey.inject:jersey-hk2:jar:2.26"
-artifact_map[str(Label("@jersey_test_framework_core//jar"))] = "mvn:org.glassfish.jersey.test-framework:jersey-test-framework-core:jar:NON-OSGI:2.26"
-artifact_map[str(Label("@jersey_test_framework_jetty//jar"))] = "mvn:org.glassfish.jersey.test-framework.providers:jersey-test-framework-provider-jetty:jar:NON-OSGI:2.26"
-artifact_map[str(Label("@jetty_util//jar"))] = "mvn:org.eclipse.jetty:jetty-util:jar:9.2.21.v20170120"
-artifact_map[str(Label("@jetty_websocket//jar"))] = "mvn:org.eclipse.jetty:jetty-websocket:jar:8.1.19.v20160209"
-artifact_map[str(Label("@jetty_server//jar"))] = "mvn:org.eclipse.jetty:jetty-server:jar:9.2.21.v20170120"
-artifact_map[str(Label("@jetty_continuation//jar"))] = "mvn:org.eclipse.jetty:jetty-continuation:jar:9.2.21.v20170120"
-artifact_map[str(Label("@jetty_http//jar"))] = "mvn:org.eclipse.jetty:jetty-http:jar:9.2.21.v20170120"
-artifact_map[str(Label("@jetty_io//jar"))] = "mvn:org.eclipse.jetty:jetty-io:jar:9.2.21.v20170120"
-artifact_map[str(Label("@javax_servlet_api//jar"))] = "mvn:javax.servlet:javax.servlet-api:jar:3.1.0"
-artifact_map[str(Label("@joda_time//jar"))] = "mvn:joda-time:joda-time:jar:2.9.3"
-artifact_map[str(Label("@jsch//jar"))] = "mvn:com.jcraft:jsch:jar:NON-OSGI:0.1.53"
-artifact_map[str(Label("@jsr305//jar"))] = "mvn:com.google.code.findbugs:jsr305:jar:3.0.1"
-artifact_map[str(Label("@junit//jar"))] = "mvn:junit:junit:jar:NON-OSGI:4.12"
-artifact_map[str(Label("@junit_dep//jar"))] = "mvn:junit:junit:jar:NON-OSGI:4.10"
-artifact_map[str(Label("@kryo//jar"))] = "mvn:com.esotericsoftware:kryo:jar:4.0.1"
-artifact_map[str(Label("@mapdb//jar"))] = "mvn:org.mapdb:mapdb:jar:1.0.9"
-artifact_map[str(Label("@metrics_core//jar"))] = "mvn:io.dropwizard.metrics:metrics-core:jar:3.2.2"
-artifact_map[str(Label("@metrics_ganglia//jar"))] = "mvn:io.dropwizard.metrics:metrics-ganglia:jar:3.2.2"
-artifact_map[str(Label("@metrics_graphite//jar"))] = "mvn:io.dropwizard.metrics:metrics-graphite:jar:3.2.2"
-artifact_map[str(Label("@metrics_influxdb//jar"))] = "mvn:com.izettle:metrics-influxdb:jar:NON-OSGI:1.1.1"
-artifact_map[str(Label("@metrics_json//jar"))] = "mvn:io.dropwizard.metrics:metrics-json:jar:3.2.2"
-artifact_map[str(Label("@minimal_json//jar"))] = "mvn:com.eclipsesource.minimal-json:minimal-json:jar:0.9.4"
-artifact_map[str(Label("@minlog//jar"))] = "mvn:com.esotericsoftware:minlog:jar:1.3.0"
-artifact_map[str(Label("@netty//jar"))] = "mvn:io.netty:netty:jar:3.10.5.Final"
-artifact_map[str(Label("@netty_buffer//jar"))] = "mvn:io.netty:netty-buffer:jar:4.1.8.Final"
-artifact_map[str(Label("@netty_codec//jar"))] = "mvn:io.netty:netty-codec:jar:4.1.8.Final"
-artifact_map[str(Label("@netty_common//jar"))] = "mvn:io.netty:netty-common:jar:4.1.8.Final"
-artifact_map[str(Label("@netty_handler//jar"))] = "mvn:io.netty:netty-handler:jar:4.1.8.Final"
-artifact_map[str(Label("@netty_transport//jar"))] = "mvn:io.netty:netty-transport:jar:4.1.8.Final"
-artifact_map[str(Label("@netty_transport_native_epoll//jar"))] = "mvn:io.netty:netty-transport-native-epoll:jar:4.1.8.Final"
-artifact_map[str(Label("@netty_resolver//jar"))] = "mvn:io.netty:netty-resolver:jar:4.1.8.Final"
-artifact_map[str(Label("@netty_codec_http2//jar"))] = "mvn:io.netty:netty-codec-http2:jar:4.1.8.Final"
-artifact_map[str(Label("@netty_codec_http//jar"))] = "mvn:io.netty:netty-codec-http:jar:4.1.8.Final"
-artifact_map[str(Label("@objenesis//jar"))] = "mvn:org.objenesis:objenesis:jar:2.6"
-artifact_map[str(Label("@openflowj//jar"))] = "mvn:org.onosproject:openflowj:jar:3.2.1.onos"
-artifact_map[str(Label("@org_apache_felix_framework_security//jar"))] = "mvn:org.onosproject:org.apache.felix.framework.security:jar:2.2.0.onos"
-artifact_map[str(Label("@org_apache_felix_scr//jar"))] = "mvn:org.apache.felix:org.apache.felix.scr:jar:1.8.2"
-artifact_map[str(Label("@org_apache_felix_scr_annotations//jar"))] = "mvn:org.apache.felix:org.apache.felix.scr.annotations:jar:NON-OSGI:1.9.12"
-artifact_map[str(Label("@org_apache_karaf_features_core//jar"))] = "mvn:org.apache.karaf.features:org.apache.karaf.features.core:jar:3.0.8"
-artifact_map[str(Label("@org_apache_karaf_shell_console//jar"))] = "mvn:org.apache.karaf.shell:org.apache.karaf.shell.console:jar:3.0.8"
-artifact_map[str(Label("@org_apache_httpcomponents_httpasyncclient_osgi//jar"))] = "mvn:org.apache.httpcomponents:httpasyncclient-osgi:jar:4.1.2"
-artifact_map[str(Label("@org_apache_httpcomponents_httpcore_nio//jar"))] = "mvn:org.apache.httpcomponents:httpcore-nio:jar:NON-OSGI:4.4.4"
-artifact_map[str(Label("@org_apache_karaf_jaas//jar"))] = "mvn:org.apache.karaf.jaas:org.apache.karaf.jaas.modules:jar:3.0.8"
-artifact_map[str(Label("@org_apache_karaf_system_core//jar"))] = "mvn:org.apache.karaf.system:org.apache.karaf.system.core:jar:3.0.8"
-artifact_map[str(Label("@org_apache_servicemix_bundles_snmp4j//jar"))] = "mvn:org.apache.servicemix.bundles:org.apache.servicemix.bundles.snmp4j:jar:2.3.4_1"
-artifact_map[str(Label("@org_osgi_compendium//jar"))] = "mvn:org.osgi:org.osgi.compendium:jar:5.0.0"
-artifact_map[str(Label("@osgi_core//jar"))] = "mvn:org.osgi:org.osgi.core:jar:5.0.0"
-artifact_map[str(Label("@reflectasm//jar"))] = "mvn:com.esotericsoftware:reflectasm:jar:1.11.0"
-artifact_map[str(Label("@remotetea_oncrpc//jar"))] = "mvn:org.acplt.remotetea:remotetea-oncrpc:jar:1.1.3"
-artifact_map[str(Label("@rrd4j//jar"))] = "mvn:org.rrd4j:rrd4j:jar:NON-OSGI:3.1"
-artifact_map[str(Label("@javassist//jar"))] = "mvn:org.javassist:javassist:jar:3.22.0-GA"
-artifact_map[str(Label("@mimepull//jar"))] = "mvn:org.jvnet.mimepull:mimepull:jar:1.9.6"
-artifact_map[str(Label("@servlet_api//jar"))] = "mvn:javax.servlet:servlet-api:jar:NON-OSGI:2.5"
-artifact_map[str(Label("@slf4j_api//jar"))] = "mvn:org.slf4j:slf4j-api:jar:1.7.25"
-artifact_map[str(Label("@slf4j_jdk14//jar"))] = "mvn:org.slf4j:slf4j-jdk14:jar:1.7.25"
-artifact_map[str(Label("@slf4j_nop//jar"))] = "mvn:org.slf4j:slf4j-nop:jar:1.7.25"
-artifact_map[str(Label("@typesafe_config//jar"))] = "mvn:com.typesafe:config:jar:1.2.1"
-artifact_map[str(Label("@validation_api//jar"))] = "mvn:javax.validation:validation-api:jar:1.1.0.Final"
-artifact_map[str(Label("@checkstyle//jar"))] = "mvn:com.puppycrawl.tools:checkstyle:jar:NON-OSGI:8.10"
-artifact_map[str(Label("@apache_karaf//jar"))] = "http://repo1.maven.org/maven2/org/onosproject/apache-karaf-offline/3.0.8/apache-karaf-offline-3.0.8.tar.gz"
-artifact_map[str(Label("@apache_karaf_patches//jar"))] = "http://repo1.maven.org/maven2/org/onosproject/onos-apache-karaf-patches/3.0.8/onos-apache-karaf-patches-3.0.8.tar.gz"
-artifact_map[str(Label("@bndlib//jar"))] = "mvn:biz.aQute.bnd:biz.aQute.bndlib:jar:3.1.0"
-artifact_map[str(Label("@bndexe//jar"))] = "mvn:biz.aQute.bnd:biz.aQute.bnd:jar:3.1.0"
-artifact_map[str(Label("@libthrift//jar"))] = "mvn:org.apache.thrift:libthrift:jar:0.9.3"
-artifact_map[str(Label("@qdox//jar"))] = "mvn:com.thoughtworks.qdox:qdox:jar:NON-OSGI:2.0-M3"
-artifact_map[str(Label("@org_apache_felix_scr_bnd//jar"))] = "https://oss.sonatype.org/content/repositories/snapshots/org/onosproject/org.apache.felix.scr.bnd/1.4.1-SNAPSHOT/org.apache.felix.scr.bnd-1.4.1-20160328.235003-2.jar"
-artifact_map[str(Label("@snmp_core//jar"))] = "mvn:org.onosproject:snmp-core:jar:1.3-20161021.1"
-artifact_map[str(Label("@mibs_net_snmp//jar"))] = "mvn:org.onosproject:mibbler-mibs-net-snmp:jar:1.0-20151221.1"
-artifact_map[str(Label("@mibs_rfc//jar"))] = "mvn:org.onosproject:mibbler-mibs-rfc:jar:1.0-20151221.1"
-artifact_map[str(Label("@openstack4j_core//jar"))] = "mvn:org.pacesys:openstack4j-core:jar:3.1.0"
-artifact_map[str(Label("@openstack4j_http_connector//jar"))] = "mvn:org.pacesys.openstack4j.connectors:openstack4j-http-connector:jar:3.1.0"
-artifact_map[str(Label("@openstack4j_httpclient//jar"))] = "mvn:org.pacesys.openstack4j.connectors:openstack4j-httpclient:jar:3.1.0"
-artifact_map[str(Label("@json_patch//jar"))] = "mvn:com.github.fge:json-patch:jar:1.9"
-artifact_map[str(Label("@jackson_coreutils//jar"))] = "mvn:com.github.fge:jackson-coreutils:jar:1.6"
-artifact_map[str(Label("@btf//jar"))] = "mvn:com.github.fge:btf:jar:1.2"
-artifact_map[str(Label("@msg_simple//jar"))] = "mvn:com.github.fge:msg-simple:jar:1.1"
-artifact_map[str(Label("@snakeyaml//jar"))] = "mvn:org.yaml:snakeyaml:jar:1.15"
-artifact_map[str(Label("@onos_yang_model//jar"))] = "mvn:org.onosproject:onos-yang-model:jar:2.5"
-artifact_map[str(Label("@onos_yang_compiler_api//jar"))] = "mvn:org.onosproject:onos-yang-compiler-api:jar:2.5"
-artifact_map[str(Label("@onos_yang_compiler_main//jar"))] = "mvn:org.onosproject:onos-yang-compiler-main:jar:2.5"
-artifact_map[str(Label("@onos_yang_runtime//jar"))] = "mvn:org.onosproject:onos-yang-runtime:jar:2.5"
-artifact_map[str(Label("@onos_yang_serializers_json//jar"))] = "mvn:org.onosproject:onos-yang-serializers-json:jar:2.5"
-artifact_map[str(Label("@onos_yang_serializers_xml//jar"))] = "mvn:org.onosproject:onos-yang-serializers-xml:jar:2.5"
-artifact_map[str(Label("@onos_yang_serializers_utils//jar"))] = "mvn:org.onosproject:onos-yang-serializers-utils:jar:2.5"
-artifact_map[str(Label("@org_apache_servicemix_bundles_dom4j//jar"))] = "mvn:org.apache.servicemix.bundles:org.apache.servicemix.bundles.dom4j:jar:1.6.1_5"
-artifact_map[str(Label("@plexus_utils//jar"))] = "mvn:org.codehaus.plexus:plexus-utils:jar:NON-OSGI:3.0.24"
-artifact_map[str(Label("@sshd_core//jar"))] = "mvn:org.apache.sshd:sshd-core:jar:1.4.0"
-artifact_map[str(Label("@grpc_core_1_3_1//jar"))] = "mvn:io.grpc:grpc-core:jar:NON-OSGI:1.3.1"
-artifact_map[str(Label("@grpc_protobuf_1_3_1//jar"))] = "mvn:io.grpc:grpc-protobuf:jar:NON-OSGI:1.3.1"
-artifact_map[str(Label("@grpc_protobuf_lite_1_3_1//jar"))] = "mvn:io.grpc:grpc-protobuf-lite:jar:NON-OSGI:1.3.1"
-artifact_map[str(Label("@grpc_stub_1_3_1//jar"))] = "mvn:io.grpc:grpc-stub:jar:NON-OSGI:1.3.1"
-artifact_map[str(Label("@grpc_netty_1_3_1//jar"))] = "mvn:io.grpc:grpc-netty:jar:NON-OSGI:1.3.1"
-artifact_map[str(Label("@grpc_auth_1_3_1//jar"))] = "mvn:io.grpc:grpc-auth:jar:NON-OSGI:1.3.1"
-artifact_map[str(Label("@protobuf_java_3_3_0//jar"))] = "mvn:com.google.protobuf:protobuf-java:jar:3.3.0"
-artifact_map[str(Label("@protobuf_java_3_2_0//jar"))] = "mvn:com.google.protobuf:protobuf-java:jar:3.2.0"
-artifact_map[str(Label("@grpc_testing_1_3_1//jar"))] = "mvn:io.grpc:grpc-testing:jar:NON-OSGI:1.3.1"
-artifact_map[str(Label("@grpc_testing_proto_1_3_1//jar"))] = "mvn:io.grpc:grpc-testing-proto:jar:NON-OSGI:1.3.1"
-artifact_map[str(Label("@grpc_context_1_3_1//jar"))] = "mvn:io.grpc:grpc-context:jar:NON-OSGI:1.3.1"
-artifact_map[str(Label("@google_truth_0_28//jar"))] = "mvn:com.google.truth:truth:jar:NON-OSGI:0.28"
-artifact_map[str(Label("@google_code_findbugs_3_0_0//jar"))] = "mvn:com.google.code.findbugs:jsr305:jar:NON-OSGI:3.0.0"
-artifact_map[str(Label("@google_errorprone_2_0_19//jar"))] = "mvn:com.google.errorprone:error_prone_annotations:jar:NON-OSGI:2.0.19"
-artifact_map[str(Label("@google_instrumentation_0_3_0//jar"))] = "mvn:com.google.instrumentation:instrumentation-api:jar:NON-OSGI:0.3.0"
-artifact_map[str(Label("@bcpkix_jdk15on//jar"))] = "mvn:org.bouncycastle:bcpkix-jdk15on:jar:1.59"
-artifact_map[str(Label("@bcprov_jdk15on//jar"))] = "mvn:org.bouncycastle:bcprov-jdk15on:jar:1.59"
-artifact_map[str(Label("@hamcrest_optional//jar"))] = "mvn:com.spotify:hamcrest-optional:jar:NON-OSGI:1.1.0"
-artifact_map[str(Label("@swagger_annotations//jar"))] = "mvn:io.swagger:swagger-annotations:jar:1.5.16"
-artifact_map[str(Label("@kafka_clients//jar"))] = "mvn:org.apache.servicemix.bundles:org.apache.servicemix.bundles.kafka-clients:jar:0.8.2.2_1"
-artifact_map[str(Label("@tinder_xmpp//jar"))] = "mvn:org.igniterealtime:tinder:jar:NON-OSGI:1.3.0"
-artifact_map[str(Label("@aalto_xml//jar"))] = "mvn:com.fasterxml:aalto-xml:jar:1.0.0"
-artifact_map[str(Label("@stax2_api//jar"))] = "mvn:org.codehaus.woodstox:stax2-api:jar:4.0.0"
-artifact_map[str(Label("@concurrent_hashmap//jar"))] = "mvn:com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:NON-OSGI:1.0"
-artifact_map[str(Label("@gnu_idn//jar"))] = "mvn:org.gnu.inet:libidn:jar:NON-OSGI:1.15"
-artifact_map[str(Label("@sigar//jar"))] = "mvn:org.knowhowlab.osgi:sigar:jar:1.6.5_01"
+artifact_map["@aopalliance_repackaged//jar"] = "mvn:org.glassfish.hk2.external:aopalliance-repackaged:jar:2.5.0-b42"
+artifact_map["@amqp_client//jar"] = "mvn:com.rabbitmq:amqp-client:jar:3.6.1"
+artifact_map["@asm//jar"] = "mvn:org.ow2.asm:asm:jar:5.0.4"
+artifact_map["@atomix//jar"] = "mvn:io.atomix:atomix:jar:2.0.23"
+artifact_map["@commons_codec//jar"] = "mvn:commons-codec:commons-codec:jar:1.10"
+artifact_map["@commons_cli//jar"] = "mvn:commons-cli:commons-cli:jar:1.3"
+artifact_map["@commons_collections//jar"] = "mvn:commons-collections:commons-collections:jar:3.2.2"
+artifact_map["@commons_configuration//jar"] = "mvn:commons-configuration:commons-configuration:jar:1.10"
+artifact_map["@commons_io//jar"] = "mvn:commons-io:commons-io:jar:2.6"
+artifact_map["@commons_jxpath//jar"] = "mvn:commons-jxpath:commons-jxpath:jar:1.3"
+artifact_map["@commons_beanutils//jar"] = "mvn:commons-beanutils:commons-beanutils:jar:1.9.3"
+artifact_map["@jdom//jar"] = "mvn:jdom:jdom:jar:NON-OSGI:1.0"
+artifact_map["@commons_lang//jar"] = "mvn:commons-lang:commons-lang:jar:2.6"
+artifact_map["@commons_lang3//jar"] = "mvn:org.apache.commons:commons-lang3:jar:3.7"
+artifact_map["@commons_logging//jar"] = "mvn:commons-logging:commons-logging:jar:1.2"
+artifact_map["@commons_math3//jar"] = "mvn:org.apache.commons:commons-math3:jar:3.6.1"
+artifact_map["@commons_pool//jar"] = "mvn:commons-pool:commons-pool:jar:1.6"
+artifact_map["@commons_text//jar"] = "mvn:org.apache.commons:commons-text:jar:1.3"
+artifact_map["@concurrent_trees//jar"] = "mvn:com.googlecode.concurrent-trees:concurrent-trees:jar:2.6.1"
+artifact_map["@easymock//jar"] = "mvn:org.easymock:easymock:jar:3.6"
+artifact_map["@antlr//jar"] = "mvn:antlr:antlr:jar:NON-OSGI:2.7.7"
+artifact_map["@error_prone_annotations//jar"] = "mvn:com.google.errorprone:error_prone_annotations:jar:NON-OSGI:2.0.18"
+artifact_map["@ganymed_ssh2//jar"] = "mvn:ch.ethz.ganymed:ganymed-ssh2:jar:NON-OSGI:262"
+artifact_map["@gmetric4j//jar"] = "mvn:info.ganglia.gmetric4j:gmetric4j:jar:1.0.10"
+artifact_map["@gson//jar"] = "mvn:com.google.code.gson:gson:jar:2.7"
+artifact_map["@guava//jar"] = "mvn:com.google.guava:guava:jar:22.0"
+artifact_map["@guava_testlib//jar"] = "mvn:com.google.guava:guava-testlib:jar:NON-OSGI:22.0"
+artifact_map["@hamcrest_all//jar"] = "mvn:org.hamcrest:hamcrest-all:jar:NON-OSGI:1.3"
+artifact_map["@hk2_api//jar"] = "mvn:org.glassfish.hk2:hk2-api:jar:2.5.0-b42"
+artifact_map["@hk2_locator//jar"] = "mvn:org.glassfish.hk2:hk2-locator:jar:2.5.0-b42"
+artifact_map["@hk2_osgi_resource_locator//jar"] = "mvn:org.glassfish.hk2:osgi-resource-locator:jar:1.0.1"
+artifact_map["@hk2_utils//jar"] = "mvn:org.glassfish.hk2:hk2-utils:jar:2.5.0-b42"
+artifact_map["@httpclient_osgi//jar"] = "mvn:org.apache.httpcomponents:httpclient-osgi:jar:4.5.1"
+artifact_map["@httpcore_osgi//jar"] = "mvn:org.apache.httpcomponents:httpcore-osgi:jar:4.4.4"
+artifact_map["@influxdb_java//jar"] = "mvn:org.influxdb:influxdb-java:jar:NON-OSGI:2.9"
+artifact_map["@retrofit//jar"] = "mvn:com.squareup.retrofit2:retrofit:jar:NON-OSGI:2.3.0"
+artifact_map["@converter_moshi//jar"] = "mvn:com.squareup.retrofit2:converter-moshi:jar:NON-OSGI:2.3.0"
+artifact_map["@okhttp//jar"] = "mvn:com.squareup.okhttp3:okhttp:jar:NON-OSGI:3.9.1"
+artifact_map["@logging_interceptor//jar"] = "mvn:com.squareup.okhttp3:logging-interceptor:jar:NON-OSGI:3.9.1"
+artifact_map["@moshi//jar"] = "mvn:com.squareup.moshi:moshi:jar:NON-OSGI:1.4.0"
+artifact_map["@okio//jar"] = "mvn:com.squareup.okio:okio:jar:NON-OSGI:1.11.0"
+artifact_map["@jackson_annotations//jar"] = "mvn:com.fasterxml.jackson.core:jackson-annotations:jar:2.9.5"
+artifact_map["@jackson_core//jar"] = "mvn:com.fasterxml.jackson.core:jackson-core:jar:2.9.5"
+artifact_map["@jackson_databind//jar"] = "mvn:com.fasterxml.jackson.core:jackson-databind:jar:2.9.5"
+artifact_map["@javax_annotation_api//jar"] = "mvn:javax.annotation:javax.annotation-api:jar:1.2"
+artifact_map["@javax_inject//jar"] = "mvn:org.glassfish.hk2.external:javax.inject:jar:2.5.0-b42"
+artifact_map["@javax_ws_rs_api//jar"] = "mvn:javax.ws.rs:javax.ws.rs-api:jar:2.1"
+artifact_map["@jersey_client//jar"] = "mvn:org.glassfish.jersey.core:jersey-client:jar:2.26"
+artifact_map["@jersey_security//jar"] = "mvn:org.glassfish.jersey.security:oauth2-client:jar:NON-OSGI:2.26"
+artifact_map["@jersey_common//jar"] = "mvn:org.glassfish.jersey.core:jersey-common:jar:2.26"
+artifact_map["@jersey_container_jetty_http//jar"] = "mvn:org.glassfish.jersey.containers:jersey-container-jetty-http:jar:2.26"
+artifact_map["@jersey_container_servlet//jar"] = "mvn:org.glassfish.jersey.containers:jersey-container-servlet:jar:2.26"
+artifact_map["@jersey_container_servlet_core//jar"] = "mvn:org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.26"
+artifact_map["@jersey_media_multipart//jar"] = "mvn:org.glassfish.jersey.media:jersey-media-multipart:jar:2.26"
+artifact_map["@jersey_server//jar"] = "mvn:org.glassfish.jersey.core:jersey-server:jar:2.26"
+artifact_map["@jersey_hk2//jar"] = "mvn:org.glassfish.jersey.inject:jersey-hk2:jar:2.26"
+artifact_map["@jersey_test_framework_core//jar"] = "mvn:org.glassfish.jersey.test-framework:jersey-test-framework-core:jar:NON-OSGI:2.26"
+artifact_map["@jersey_test_framework_jetty//jar"] = "mvn:org.glassfish.jersey.test-framework.providers:jersey-test-framework-provider-jetty:jar:NON-OSGI:2.26"
+artifact_map["@jetty_util//jar"] = "mvn:org.eclipse.jetty:jetty-util:jar:9.2.21.v20170120"
+artifact_map["@jetty_websocket//jar"] = "mvn:org.eclipse.jetty:jetty-websocket:jar:8.1.19.v20160209"
+artifact_map["@jetty_server//jar"] = "mvn:org.eclipse.jetty:jetty-server:jar:9.2.21.v20170120"
+artifact_map["@jetty_continuation//jar"] = "mvn:org.eclipse.jetty:jetty-continuation:jar:9.2.21.v20170120"
+artifact_map["@jetty_http//jar"] = "mvn:org.eclipse.jetty:jetty-http:jar:9.2.21.v20170120"
+artifact_map["@jetty_io//jar"] = "mvn:org.eclipse.jetty:jetty-io:jar:9.2.21.v20170120"
+artifact_map["@javax_servlet_api//jar"] = "mvn:javax.servlet:javax.servlet-api:jar:3.1.0"
+artifact_map["@joda_time//jar"] = "mvn:joda-time:joda-time:jar:2.9.3"
+artifact_map["@jsch//jar"] = "mvn:com.jcraft:jsch:jar:NON-OSGI:0.1.53"
+artifact_map["@jsr305//jar"] = "mvn:com.google.code.findbugs:jsr305:jar:3.0.1"
+artifact_map["@junit//jar"] = "mvn:junit:junit:jar:NON-OSGI:4.12"
+artifact_map["@junit_dep//jar"] = "mvn:junit:junit:jar:NON-OSGI:4.10"
+artifact_map["@kryo//jar"] = "mvn:com.esotericsoftware:kryo:jar:4.0.1"
+artifact_map["@mapdb//jar"] = "mvn:org.mapdb:mapdb:jar:1.0.9"
+artifact_map["@metrics_core//jar"] = "mvn:io.dropwizard.metrics:metrics-core:jar:3.2.2"
+artifact_map["@metrics_ganglia//jar"] = "mvn:io.dropwizard.metrics:metrics-ganglia:jar:3.2.2"
+artifact_map["@metrics_graphite//jar"] = "mvn:io.dropwizard.metrics:metrics-graphite:jar:3.2.2"
+artifact_map["@metrics_influxdb//jar"] = "mvn:com.izettle:metrics-influxdb:jar:NON-OSGI:1.1.1"
+artifact_map["@metrics_json//jar"] = "mvn:io.dropwizard.metrics:metrics-json:jar:3.2.2"
+artifact_map["@minimal_json//jar"] = "mvn:com.eclipsesource.minimal-json:minimal-json:jar:0.9.4"
+artifact_map["@minlog//jar"] = "mvn:com.esotericsoftware:minlog:jar:1.3.0"
+artifact_map["@netty//jar"] = "mvn:io.netty:netty:jar:3.10.5.Final"
+artifact_map["@netty_buffer//jar"] = "mvn:io.netty:netty-buffer:jar:4.1.8.Final"
+artifact_map["@netty_codec//jar"] = "mvn:io.netty:netty-codec:jar:4.1.8.Final"
+artifact_map["@netty_common//jar"] = "mvn:io.netty:netty-common:jar:4.1.8.Final"
+artifact_map["@netty_handler//jar"] = "mvn:io.netty:netty-handler:jar:4.1.8.Final"
+artifact_map["@netty_transport//jar"] = "mvn:io.netty:netty-transport:jar:4.1.8.Final"
+artifact_map["@netty_transport_native_epoll//jar"] = "mvn:io.netty:netty-transport-native-epoll:jar:4.1.8.Final"
+artifact_map["@netty_resolver//jar"] = "mvn:io.netty:netty-resolver:jar:4.1.8.Final"
+artifact_map["@netty_codec_http2//jar"] = "mvn:io.netty:netty-codec-http2:jar:4.1.8.Final"
+artifact_map["@netty_codec_http//jar"] = "mvn:io.netty:netty-codec-http:jar:4.1.8.Final"
+artifact_map["@objenesis//jar"] = "mvn:org.objenesis:objenesis:jar:2.6"
+artifact_map["@openflowj//jar"] = "mvn:org.onosproject:openflowj:jar:3.2.1.onos"
+artifact_map["@org_apache_felix_framework_security//jar"] = "mvn:org.onosproject:org.apache.felix.framework.security:jar:2.2.0.onos"
+artifact_map["@org_apache_felix_scr//jar"] = "mvn:org.apache.felix:org.apache.felix.scr:jar:1.8.2"
+artifact_map["@org_apache_felix_scr_annotations//jar"] = "mvn:org.apache.felix:org.apache.felix.scr.annotations:jar:NON-OSGI:1.9.12"
+artifact_map["@org_apache_karaf_features_core//jar"] = "mvn:org.apache.karaf.features:org.apache.karaf.features.core:jar:3.0.8"
+artifact_map["@org_apache_karaf_shell_console//jar"] = "mvn:org.apache.karaf.shell:org.apache.karaf.shell.console:jar:3.0.8"
+artifact_map["@org_apache_httpcomponents_httpasyncclient_osgi//jar"] = "mvn:org.apache.httpcomponents:httpasyncclient-osgi:jar:4.1.2"
+artifact_map["@org_apache_httpcomponents_httpcore_nio//jar"] = "mvn:org.apache.httpcomponents:httpcore-nio:jar:NON-OSGI:4.4.4"
+artifact_map["@org_apache_karaf_jaas//jar"] = "mvn:org.apache.karaf.jaas:org.apache.karaf.jaas.modules:jar:3.0.8"
+artifact_map["@org_apache_karaf_system_core//jar"] = "mvn:org.apache.karaf.system:org.apache.karaf.system.core:jar:3.0.8"
+artifact_map["@org_apache_servicemix_bundles_snmp4j//jar"] = "mvn:org.apache.servicemix.bundles:org.apache.servicemix.bundles.snmp4j:jar:2.3.4_1"
+artifact_map["@org_osgi_compendium//jar"] = "mvn:org.osgi:org.osgi.compendium:jar:5.0.0"
+artifact_map["@osgi_core//jar"] = "mvn:org.osgi:org.osgi.core:jar:5.0.0"
+artifact_map["@reflectasm//jar"] = "mvn:com.esotericsoftware:reflectasm:jar:1.11.0"
+artifact_map["@remotetea_oncrpc//jar"] = "mvn:org.acplt.remotetea:remotetea-oncrpc:jar:1.1.3"
+artifact_map["@rrd4j//jar"] = "mvn:org.rrd4j:rrd4j:jar:NON-OSGI:3.1"
+artifact_map["@javassist//jar"] = "mvn:org.javassist:javassist:jar:3.22.0-GA"
+artifact_map["@mimepull//jar"] = "mvn:org.jvnet.mimepull:mimepull:jar:1.9.6"
+artifact_map["@servlet_api//jar"] = "mvn:javax.servlet:servlet-api:jar:NON-OSGI:2.5"
+artifact_map["@slf4j_api//jar"] = "mvn:org.slf4j:slf4j-api:jar:1.7.25"
+artifact_map["@slf4j_jdk14//jar"] = "mvn:org.slf4j:slf4j-jdk14:jar:1.7.25"
+artifact_map["@slf4j_nop//jar"] = "mvn:org.slf4j:slf4j-nop:jar:1.7.25"
+artifact_map["@typesafe_config//jar"] = "mvn:com.typesafe:config:jar:1.2.1"
+artifact_map["@validation_api//jar"] = "mvn:javax.validation:validation-api:jar:1.1.0.Final"
+artifact_map["@checkstyle//jar"] = "mvn:com.puppycrawl.tools:checkstyle:jar:NON-OSGI:8.10"
+artifact_map["@apache_karaf//jar"] = "http://repo1.maven.org/maven2/org/onosproject/apache-karaf-offline/3.0.8/apache-karaf-offline-3.0.8.tar.gz"
+artifact_map["@apache_karaf_patches//jar"] = "http://repo1.maven.org/maven2/org/onosproject/onos-apache-karaf-patches/3.0.8/onos-apache-karaf-patches-3.0.8.tar.gz"
+artifact_map["@bndlib//jar"] = "mvn:biz.aQute.bnd:biz.aQute.bndlib:jar:3.1.0"
+artifact_map["@bndexe//jar"] = "mvn:biz.aQute.bnd:biz.aQute.bnd:jar:3.1.0"
+artifact_map["@libthrift//jar"] = "mvn:org.apache.thrift:libthrift:jar:0.9.3"
+artifact_map["@qdox//jar"] = "mvn:com.thoughtworks.qdox:qdox:jar:NON-OSGI:2.0-M3"
+artifact_map["@org_apache_felix_scr_bnd//jar"] = "https://oss.sonatype.org/content/repositories/snapshots/org/onosproject/org.apache.felix.scr.bnd/1.4.1-SNAPSHOT/org.apache.felix.scr.bnd-1.4.1-20160328.235003-2.jar"
+artifact_map["@snmp_core//jar"] = "mvn:org.onosproject:snmp-core:jar:1.3-20161021.1"
+artifact_map["@mibs_net_snmp//jar"] = "mvn:org.onosproject:mibbler-mibs-net-snmp:jar:1.0-20151221.1"
+artifact_map["@mibs_rfc//jar"] = "mvn:org.onosproject:mibbler-mibs-rfc:jar:1.0-20151221.1"
+artifact_map["@openstack4j_core//jar"] = "mvn:org.pacesys:openstack4j-core:jar:3.1.0"
+artifact_map["@openstack4j_http_connector//jar"] = "mvn:org.pacesys.openstack4j.connectors:openstack4j-http-connector:jar:3.1.0"
+artifact_map["@openstack4j_httpclient//jar"] = "mvn:org.pacesys.openstack4j.connectors:openstack4j-httpclient:jar:3.1.0"
+artifact_map["@json_patch//jar"] = "mvn:com.github.fge:json-patch:jar:1.9"
+artifact_map["@jackson_coreutils//jar"] = "mvn:com.github.fge:jackson-coreutils:jar:1.6"
+artifact_map["@btf//jar"] = "mvn:com.github.fge:btf:jar:1.2"
+artifact_map["@msg_simple//jar"] = "mvn:com.github.fge:msg-simple:jar:1.1"
+artifact_map["@snakeyaml//jar"] = "mvn:org.yaml:snakeyaml:jar:1.15"
+artifact_map["@onos_yang_model//jar"] = "mvn:org.onosproject:onos-yang-model:jar:2.5"
+artifact_map["@onos_yang_compiler_api//jar"] = "mvn:org.onosproject:onos-yang-compiler-api:jar:2.5"
+artifact_map["@onos_yang_compiler_main//jar"] = "mvn:org.onosproject:onos-yang-compiler-main:jar:2.5"
+artifact_map["@onos_yang_runtime//jar"] = "mvn:org.onosproject:onos-yang-runtime:jar:2.5"
+artifact_map["@onos_yang_serializers_json//jar"] = "mvn:org.onosproject:onos-yang-serializers-json:jar:2.5"
+artifact_map["@onos_yang_serializers_xml//jar"] = "mvn:org.onosproject:onos-yang-serializers-xml:jar:2.5"
+artifact_map["@onos_yang_serializers_utils//jar"] = "mvn:org.onosproject:onos-yang-serializers-utils:jar:2.5"
+artifact_map["@org_apache_servicemix_bundles_dom4j//jar"] = "mvn:org.apache.servicemix.bundles:org.apache.servicemix.bundles.dom4j:jar:1.6.1_5"
+artifact_map["@plexus_utils//jar"] = "mvn:org.codehaus.plexus:plexus-utils:jar:NON-OSGI:3.0.24"
+artifact_map["@sshd_core//jar"] = "mvn:org.apache.sshd:sshd-core:jar:1.4.0"
+artifact_map["@grpc_core_1_3_1//jar"] = "mvn:io.grpc:grpc-core:jar:NON-OSGI:1.3.1"
+artifact_map["@grpc_protobuf_1_3_1//jar"] = "mvn:io.grpc:grpc-protobuf:jar:NON-OSGI:1.3.1"
+artifact_map["@grpc_protobuf_lite_1_3_1//jar"] = "mvn:io.grpc:grpc-protobuf-lite:jar:NON-OSGI:1.3.1"
+artifact_map["@grpc_stub_1_3_1//jar"] = "mvn:io.grpc:grpc-stub:jar:NON-OSGI:1.3.1"
+artifact_map["@grpc_netty_1_3_1//jar"] = "mvn:io.grpc:grpc-netty:jar:NON-OSGI:1.3.1"
+artifact_map["@grpc_auth_1_3_1//jar"] = "mvn:io.grpc:grpc-auth:jar:NON-OSGI:1.3.1"
+artifact_map["@protobuf_java_3_3_0//jar"] = "mvn:com.google.protobuf:protobuf-java:jar:3.3.0"
+artifact_map["@protobuf_java_3_2_0//jar"] = "mvn:com.google.protobuf:protobuf-java:jar:3.2.0"
+artifact_map["@grpc_testing_1_3_1//jar"] = "mvn:io.grpc:grpc-testing:jar:NON-OSGI:1.3.1"
+artifact_map["@grpc_testing_proto_1_3_1//jar"] = "mvn:io.grpc:grpc-testing-proto:jar:NON-OSGI:1.3.1"
+artifact_map["@grpc_context_1_3_1//jar"] = "mvn:io.grpc:grpc-context:jar:NON-OSGI:1.3.1"
+artifact_map["@google_truth_0_28//jar"] = "mvn:com.google.truth:truth:jar:NON-OSGI:0.28"
+artifact_map["@google_code_findbugs_3_0_0//jar"] = "mvn:com.google.code.findbugs:jsr305:jar:NON-OSGI:3.0.0"
+artifact_map["@google_errorprone_2_0_19//jar"] = "mvn:com.google.errorprone:error_prone_annotations:jar:NON-OSGI:2.0.19"
+artifact_map["@google_instrumentation_0_3_0//jar"] = "mvn:com.google.instrumentation:instrumentation-api:jar:NON-OSGI:0.3.0"
+artifact_map["@bcpkix_jdk15on//jar"] = "mvn:org.bouncycastle:bcpkix-jdk15on:jar:1.59"
+artifact_map["@bcprov_jdk15on//jar"] = "mvn:org.bouncycastle:bcprov-jdk15on:jar:1.59"
+artifact_map["@hamcrest_optional//jar"] = "mvn:com.spotify:hamcrest-optional:jar:NON-OSGI:1.1.0"
+artifact_map["@swagger_annotations//jar"] = "mvn:io.swagger:swagger-annotations:jar:1.5.16"
+artifact_map["@kafka_clients//jar"] = "mvn:org.apache.servicemix.bundles:org.apache.servicemix.bundles.kafka-clients:jar:0.8.2.2_1"
+artifact_map["@tinder_xmpp//jar"] = "mvn:org.igniterealtime:tinder:jar:NON-OSGI:1.3.0"
+artifact_map["@aalto_xml//jar"] = "mvn:com.fasterxml:aalto-xml:jar:1.0.0"
+artifact_map["@stax2_api//jar"] = "mvn:org.codehaus.woodstox:stax2-api:jar:4.0.0"
+artifact_map["@concurrent_hashmap//jar"] = "mvn:com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:NON-OSGI:1.0"
+artifact_map["@gnu_idn//jar"] = "mvn:org.gnu.inet:libidn:jar:NON-OSGI:1.15"
+artifact_map["@sigar//jar"] = "mvn:org.knowhowlab.osgi:sigar:jar:1.6.5_01"
def maven_coordinates(label):
label_string = str(label)
if label_string in artifact_map:
return artifact_map[label_string]
- else:
- return "mvn:%s:%s:%s" % (ONOS_GROUP_ID, label.name, ONOS_VERSION)
+ if (label_string.endswith(":jar")):
+ label_string = label_string.replace(":jar", "")
+ if label_string in artifact_map:
+ return artifact_map[label_string]
+ if type(label) == "string":
+ return "mvn:%s:%s:%s" % (ONOS_GROUP_ID, label_string, ONOS_VERSION)
+ return "mvn:%s:%s:%s" % (ONOS_GROUP_ID, label.name, ONOS_VERSION)
+
diff --git a/tools/build/bazel/osgi_java_library.bzl b/tools/build/bazel/osgi_java_library.bzl
index 5ba5e91..523224c 100644
--- a/tools/build/bazel/osgi_java_library.bzl
+++ b/tools/build/bazel/osgi_java_library.bzl
@@ -18,6 +18,7 @@
load("//tools/build/bazel:variables.bzl", "ONOS_VERSION")
load("//tools/build/bazel:generate_test_rules.bzl", "generate_test_rules")
load("//tools/build/bazel:checkstyle.bzl", "checkstyle_test")
+load("//tools/build/bazel:pom_file.bzl", "pom_file")
load("//tools/build/bazel:java_sources.bzl", "java_sources")
load("//tools/build/bazel:javadoc.bzl", "javadoc")
@@ -464,7 +465,10 @@
include_resources = _include_resources_to_string(include_resources),
)
- # rule for building source jars
+ # rule for generating pom file for publishing
+ pom_file(name = name + "-pom", artifact = name, deps = deps, visibility = visibility)
+
+ # rule for building source jar
if not suppress_javadocs:
java_sources(name = name + "-sources", srcs = srcs, visibility = visibility)
diff --git a/tools/build/bazel/pom_file.bzl b/tools/build/bazel/pom_file.bzl
new file mode 100644
index 0000000..792d35a
--- /dev/null
+++ b/tools/build/bazel/pom_file.bzl
@@ -0,0 +1,48 @@
+# Copyright 2015 The Bazel Authors. All rights reserved.
+#
+# 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.
+
+load("//tools/build/bazel:generate_workspace.bzl", "maven_coordinates")
+
+def _impl(ctx):
+ arguments = [
+ ctx.outputs.pom.path,
+ maven_coordinates(ctx.attr.artifact)
+ ]
+
+ for dep in ctx.attr.deps:
+ arguments += [ maven_coordinates(dep.label) ]
+
+ ctx.actions.run(
+ inputs = ctx.files.deps,
+ outputs = [ctx.outputs.pom],
+ progress_message = "Generating pom file for %s" % ctx.attr.name,
+ arguments = arguments,
+ executable = ctx.executable._pom_generator,
+ )
+
+pom_file = rule(
+ attrs = {
+ "artifact": attr.string(),
+ "deps": attr.label_list(allow_files = True),
+ "_pom_generator": attr.label(
+ executable = True,
+ cfg = "host",
+ allow_files = True,
+ default = Label("//tools/build/bazel:pom_generator"),
+ )
+ },
+ implementation = _impl,
+ outputs = {"pom" : "%{name}.pom"},
+)
+
diff --git a/tools/build/bazel/pom_generator.py b/tools/build/bazel/pom_generator.py
new file mode 100755
index 0000000..2e16f49
--- /dev/null
+++ b/tools/build/bazel/pom_generator.py
@@ -0,0 +1,80 @@
+#!/usr/bin/env python
+"""
+ Copyright 2018-present Open Networking Foundation
+
+ 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.
+"""
+
+POM_HEADER = '''\
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<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>
+ <groupId>org.onosproject</groupId>
+ <artifactId>onos-base</artifactId>
+ <version>1</version>
+ </parent>'''
+POM_FOOTER = '</project>\n'
+
+ID_BLOCK = '''
+ <groupId>%s</groupId>
+ <artifactId>%s</artifactId>
+ <version>%s</version>
+ <name>%s</name>
+'''
+
+DEPENDENCIES_HEADER = ' <dependencies>\n'
+DEPENDENCIES_FOOTER = ' </dependencies>\n'
+
+DEPENDENCY_BLOCK = ''' <dependency>
+ <groupId>%s</groupId>
+ <artifactId>%s</artifactId>
+ <version>%s</version>
+ </dependency>
+'''
+
+def write(name, msg):
+ if name is not None:
+ with open(name, "w") as file:
+ file.write(msg)
+ else:
+ print msg
+
+
+def write_pom(output, coords, deps):
+ mvn = coords.split(':')
+ lines = POM_HEADER
+ lines += ID_BLOCK % (mvn[1], mvn[2], mvn[3], mvn[2])
+ lines += DEPENDENCIES_HEADER
+
+ for dep in deps:
+ mvn = dep.split(':')
+ lines += DEPENDENCY_BLOCK % (mvn[1], mvn[2], mvn[len(mvn)-1])
+
+ lines += DEPENDENCIES_FOOTER
+ lines += POM_FOOTER
+ write(output, lines)
+
+if __name__ == '__main__':
+ import sys
+
+ if len(sys.argv) < 3:
+ print 'usage: pom_generator pom.xml maven_coords dep_coords1 dep_coords2 ...'
+ sys.exit(1)
+
+ output = sys.argv[1]
+ coords = sys.argv[2]
+ deps = sys.argv[3:]
+
+ write_pom(output, coords, deps)
diff --git a/tools/build/libgen/src/main/java/org/onosproject/libgen/BuckLibGenerator.java b/tools/build/libgen/src/main/java/org/onosproject/libgen/BuckLibGenerator.java
index ed4c625..9355079 100644
--- a/tools/build/libgen/src/main/java/org/onosproject/libgen/BuckLibGenerator.java
+++ b/tools/build/libgen/src/main/java/org/onosproject/libgen/BuckLibGenerator.java
@@ -203,15 +203,23 @@
artifactMap.append("\nartifact_map = {}");
artifacts.forEach(artifact -> {
- artifactMap.append("\nartifact_map[str(Label(\"" + artifact.bazelExport() + "\"))] = \"" + artifact.url(true) + "\"");
+ artifactMap.append("\nartifact_map[\"" + artifact.bazelExport() + "\"] = \"" + artifact.url(true) + "\"");
});
- artifactMap.append("\n\ndef maven_coordinates(label):\n" +
+ artifactMap.append(
+ "\n\n" +
+ "def maven_coordinates(label):\n" +
" label_string = str(label)\n" +
" if label_string in artifact_map:\n" +
" return artifact_map[label_string]\n" +
- " else:\n" +
- " return \"mvn:%s:%s:%s\" % (ONOS_GROUP_ID, label.name, ONOS_VERSION)\n");
+ " if (label_string.endswith(\":jar\")):\n" +
+ " label_string = label_string.replace(\":jar\", \"\")\n" +
+ " if label_string in artifact_map:\n" +
+ " return artifact_map[label_string]\n" +
+ " if type(label) == \"string\":\n" +
+ " return \"mvn:%s:%s:%s\" % (ONOS_GROUP_ID, label_string, ONOS_VERSION)\n" +
+ " return \"mvn:%s:%s:%s\" % (ONOS_GROUP_ID, label.name, ONOS_VERSION)\n\n"
+ );
return artifactMap.toString();
}