From 289920d4cf32a7691776c93ae4a147e2d09a41ef Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Mon, 30 Mar 2015 13:19:10 +0200 Subject: [PATCH] Refactor dependency management to import upstream artifacts Upstream projects are exposing appropriate dependencyManagement section in $project-artifacts. Import them to simplify dependency declarations. Change-Id: Iec4af832e22857a0147c08c9deda3830351d44b5 Signed-off-by: Robert Varga --- applications/pom.xml | 161 ++++++++-------- .../openflowjava-extension-nicira-api/pom.xml | 2 +- .../openflowjava-extension-nicira/pom.xml | 2 +- .../openflowplugin-extension-api/pom.xml | 10 +- .../openflowplugin-extension-nicira/pom.xml | 4 +- extension/test-extension/pom.xml | 2 +- features/pom.xml | 3 +- openflowplugin-api/pom.xml | 3 +- openflowplugin-impl/pom.xml | 2 +- openflowplugin/pom.xml | 3 +- pom.xml | 181 ++++-------------- 11 files changed, 128 insertions(+), 245 deletions(-) diff --git a/applications/pom.xml b/applications/pom.xml index eaf955d017..9974c53a34 100644 --- a/applications/pom.xml +++ b/applications/pom.xml @@ -1,80 +1,79 @@ - 4.0.0 + 4.0.0 - - org.opendaylight.openflowplugin - openflowplugin-parent - 0.1.0-SNAPSHOT - + + org.opendaylight.openflowplugin + openflowplugin-parent + 0.1.0-SNAPSHOT + - applications - applications - http://maven.apache.org - pom + applications + applications + http://maven.apache.org + pom - - - - - org.opendaylight.yangtools - yang-maven-plugin - ${yang.binding.version} - - - - generate-sources - - - - - - org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator - - ${project.build.directory}/generated-sources/config - - - urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang - + + + + + org.opendaylight.yangtools + yang-maven-plugin + + + + generate-sources + + + + + + org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator + + ${project.build.directory}/generated-sources/config + + + urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang + urn:opendaylight:params:xml:ns:yang:openflowplugin:app==org.opendaylight.openflowplugin.applications.config.yang - - - - - org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl - - ${project.build.directory}/generated-sources/sal - - - true - - - - - - org.opendaylight.controller - yang-jmx-generator-plugin - ${config.parent.version} - - - org.opendaylight.yangtools - maven-sal-api-gen-plugin - ${yang.binding.version} - jar - - - - - - - - org.apache.felix - maven-bundle-plugin - - - + + + + + org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl + + ${project.build.directory}/generated-sources/sal + + + true + + + + + + org.opendaylight.controller + yang-jmx-generator-plugin + ${config.version} + + + org.opendaylight.yangtools + maven-sal-api-gen-plugin + ${yangtools.version} + jar + + + + + + + + org.apache.felix + maven-bundle-plugin + + + scm:git:ssh://git.opendaylight.org:29418/openflowplugin.git @@ -83,17 +82,17 @@ HEAD - - table-miss-enforcer - of-switch-config-pusher - lldp-speaker - - inventory-manager - statistics-manager - statistics-manager-config - topology-manager - forwardingrules-manager - topology-lldp-discovery - + + table-miss-enforcer + of-switch-config-pusher + lldp-speaker + + inventory-manager + statistics-manager + statistics-manager-config + topology-manager + forwardingrules-manager + topology-lldp-discovery + diff --git a/extension/openflowjava-extension-nicira-api/pom.xml b/extension/openflowjava-extension-nicira-api/pom.xml index 2f9e9a7e0d..7ea575038b 100644 --- a/extension/openflowjava-extension-nicira-api/pom.xml +++ b/extension/openflowjava-extension-nicira-api/pom.xml @@ -63,7 +63,7 @@ org.opendaylight.controller yang-jmx-generator-plugin - ${config.parent.version} + ${config.version} org.opendaylight.yangtools diff --git a/extension/openflowjava-extension-nicira/pom.xml b/extension/openflowjava-extension-nicira/pom.xml index 6551eaf34e..c2c002d840 100644 --- a/extension/openflowjava-extension-nicira/pom.xml +++ b/extension/openflowjava-extension-nicira/pom.xml @@ -58,7 +58,7 @@ org.opendaylight.controller yang-jmx-generator-plugin - ${config.parent.version} + ${config.version} org.opendaylight.yangtools diff --git a/extension/openflowplugin-extension-api/pom.xml b/extension/openflowplugin-extension-api/pom.xml index 3bfb344e0e..52734298d4 100644 --- a/extension/openflowplugin-extension-api/pom.xml +++ b/extension/openflowplugin-extension-api/pom.xml @@ -48,7 +48,7 @@ org.opendaylight.controller yang-jmx-generator-plugin - ${config.parent.version} + ${config.version} org.opendaylight.yangtools @@ -65,12 +65,6 @@ org.opendaylight.yangtools yang-model-api - ${yangtools.version} - - - org.opendaylight.openflowjava - openflow-protocol-api - ${openflowjava.version} @@ -106,4 +100,4 @@ - \ No newline at end of file + diff --git a/extension/openflowplugin-extension-nicira/pom.xml b/extension/openflowplugin-extension-nicira/pom.xml index fefc6200bd..13dc7c064b 100644 --- a/extension/openflowplugin-extension-nicira/pom.xml +++ b/extension/openflowplugin-extension-nicira/pom.xml @@ -59,7 +59,7 @@ org.opendaylight.controller yang-jmx-generator-plugin - ${config.parent.version} + ${config.version} org.opendaylight.yangtools @@ -118,4 +118,4 @@ - \ No newline at end of file + diff --git a/extension/test-extension/pom.xml b/extension/test-extension/pom.xml index df70bb6f8b..08dc703c9f 100644 --- a/extension/test-extension/pom.xml +++ b/extension/test-extension/pom.xml @@ -59,7 +59,7 @@ org.opendaylight.controller yang-jmx-generator-plugin - ${config.parent.version} + ${config.version} org.opendaylight.yangtools diff --git a/features/pom.xml b/features/pom.xml index 28b0cb4fc4..c79cc89161 100644 --- a/features/pom.xml +++ b/features/pom.xml @@ -16,6 +16,7 @@ 1.5.0-SNAPSHOT etc/opendaylight/karaf 30-statistics-manager.xml + 1.2.0-SNAPSHOT @@ -110,7 +111,7 @@ org.opendaylight.controller features-netconf-connector - ${netconf.version} + ${mdsal.version} features xml diff --git a/openflowplugin-api/pom.xml b/openflowplugin-api/pom.xml index 68a0be331d..54c1a09497 100644 --- a/openflowplugin-api/pom.xml +++ b/openflowplugin-api/pom.xml @@ -57,7 +57,7 @@ org.opendaylight.controller yang-jmx-generator-plugin - ${config.parent.version} + ${config.version} org.opendaylight.yangtools @@ -69,6 +69,7 @@ + org.opendaylight.openflowplugin.model diff --git a/openflowplugin-impl/pom.xml b/openflowplugin-impl/pom.xml index 4d3f1c38a2..efde56c993 100644 --- a/openflowplugin-impl/pom.xml +++ b/openflowplugin-impl/pom.xml @@ -57,7 +57,7 @@ org.opendaylight.controller yang-jmx-generator-plugin - ${config.parent.version} + ${config.version} org.opendaylight.yangtools diff --git a/openflowplugin/pom.xml b/openflowplugin/pom.xml index 48eba20ddb..8764cb8aad 100644 --- a/openflowplugin/pom.xml +++ b/openflowplugin/pom.xml @@ -57,7 +57,7 @@ org.opendaylight.controller yang-jmx-generator-plugin - ${config.parent.version} + ${config.version} org.opendaylight.yangtools @@ -103,7 +103,6 @@ org.opendaylight.controller sal-binding-broker-impl - ${sal.binding.api.version} diff --git a/pom.xml b/pom.xml index 4658608658..86690d70ba 100644 --- a/pom.xml +++ b/pom.xml @@ -44,18 +44,10 @@ utf-8 - 1.2.0-SNAPSHOT - 1.2.0-SNAPSHOT http://nexus.opendaylight.org/content 0.6.0-SNAPSHOT ${project.version} - 1.2.0-SNAPSHOT - 1.2.0-SNAPSHOT 0.9.0-SNAPSHOT - 0.2.0-SNAPSHOT - 1.2.0-SNAPSHOT - 0.3.0-SNAPSHOT - 0.3.0-SNAPSHOT 1.8 src/main/yang-gen-config src/main/yang-gen-sal @@ -70,15 +62,14 @@ target/code-coverage/jacoco-it.exec Sonar way with Findbugs - 1.5.0-SNAPSHOT - 0.7.0-SNAPSHOT - 0.2.0-SNAPSHOT 0.3.0-SNAPSHOT + 1.2.0-SNAPSHOT + 0.3.0-SNAPSHOT 0.7.0-SNAPSHOT - 2013.08.27.7-SNAPSHOT - 2010.09.24.7-SNAPSHOT - 2010.09.24.7-SNAPSHOT - 2013.09.07.7-SNAPSHOT + + 1.5.0-SNAPSHOT + 1.5.0-SNAPSHOT + 0.2.0-SNAPSHOT @@ -90,31 +81,45 @@ import pom - - org.opendaylight.openflowplugin - openflowplugin-api - ${project.version} + org.opendaylight.controller + config-artifacts + ${config.version} + import + pom - org.opendaylight.openflowjava - openflow-protocol-api - ${openflowjava.version} + org.opendaylight.controller + mdsal-artifacts + ${mdsal.version} + import + pom - org.opendaylight.openflowjava - openflow-protocol-spi - ${openflowjava.version} + org.opendaylight.controller + netconf-artifacts + ${netconf.version} + import + pom org.opendaylight.openflowjava - util + openflowjava-artifacts ${openflowjava.version} + import + pom - org.opendaylight.openflowjava - simple-client - ${openflowjava.version} + org.opendaylight.odlparent + features-test + ${features.test.version} + test + + + + org.opendaylight.openflowplugin + openflowplugin-api + ${project.version} @@ -133,127 +138,11 @@ ${openflowplugin.model.version} - - org.opendaylight.controller.model - model-inventory - ${controller.model.version} - - - org.opendaylight.controller.model - model-topology - ${controller.model.version} - - - - org.opendaylight.controller - sal-binding-api - ${sal.binding.api.version} - - - org.opendaylight.controller - sal-binding-config - ${sal.binding.api.version} - - - org.opendaylight.controller - sal-binding-util - ${controller.model.version} - - org.opendaylight.controller liblldp ${sal.api.version} - - org.opendaylight.controller - sal-common-util - ${sal.common.util.version} - - - - org.opendaylight.controller - config-netconf-connector - ${netconf.parent.version} - - - org.opendaylight.controller - sal-binding-it - ${sal.binding.api.version} - - - org.opendaylight.controller - sal-binding-broker-impl - ${sal.binding.api.version} - - - - - org.opendaylight.controller.model - model-flow-base - - - org.opendaylight.controller.model - model-flow-service - - - org.opendaylight.controller.model - model-flow-statistics - - - - - org.opendaylight.controller - config-manager - ${config.parent.version} - - - org.opendaylight.controller - config-api - ${config.parent.version} - - - org.opendaylight.controller - logback-config - ${config.parent.version} - - - org.opendaylight.controller - config-persister-api - ${config.parent.version} - - - org.opendaylight.controller - config-persister-impl - ${config.parent.version} - - - org.opendaylight.controller - config-persister-file-xml-adapter - ${config.parent.version} - - - org.opendaylight.controller - netconf-monitoring - ${netconf.parent.version} - - - org.opendaylight.controller - netconf-client - ${netconf.parent.version} - - - org.opendaylight.controller - netconf-impl - ${netconf.parent.version} - - - - org.opendaylight.odlparent - features-test - ${features.test.version} - @@ -379,7 +268,7 @@ org.opendaylight.yangtools yang-maven-plugin - ${yang.binding.version} + ${yangtools.version} org.apache.felix -- 2.36.6