From d3407dec86616ceacda41eb74b6048640bb00801 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Mon, 16 Nov 2015 17:56:42 +0100 Subject: [PATCH] Maven cleanup and features-parent migration Use features-parent {{VERSION}} to allow dropping a number of Maven properties. Upgrade commons-collections (1.0 -> 3.2.1) and httpcomponents (4.2.1 -> 4.4.1). Drop a number of obsolete components from dependency management (controller:commons.northbound, controller:containermanager, controller:forwardingrulesmanager, controller:sal, controller:switchmanager. Use odlparent-provided versions of commons-lang3, most netty components, and the equinoxSDK381 components. Drop obsolete io.netty:netty:3.8.0 dependency (replaced by io.netty:netty-all in versions 4+). Remove some duplicate dependency declarations. Use "" instead of "" now that it's safe to do so (the auto-release scripts handle it). Change-Id: I62a385ba49d79e045934ec706f69313425553ae0 Signed-off-by: Stephen Kitt --- commons/parent/pom.xml | 29 ++-------------- features/ovsdb/pom.xml | 22 +----------- features/ovsdb/src/main/features/features.xml | 34 +++++++++---------- .../production/src/main/features/features.xml | 30 ++++++++-------- .../test/src/main/features/features.xml | 4 +-- 5 files changed, 37 insertions(+), 82 deletions(-) diff --git a/commons/parent/pom.xml b/commons/parent/pom.xml index 641001fb55..9335b95fe4 100644 --- a/commons/parent/pom.xml +++ b/commons/parent/pom.xml @@ -97,8 +97,8 @@ and is available at http://www.eclipse.org/legal/epl-v10.html 0.9.0-SNAPSHOT 0.8.0-SNAPSHOT - 1.0 - 4.2.1 + 3.2.1 + 4.4.1 2.0 1.5.2 0.3.0-SNAPSHOT @@ -141,26 +141,11 @@ and is available at http://www.eclipse.org/legal/epl-v10.html httpcore-nio ${httpcomponents.version} - - org.opendaylight.controller - commons.northbound - ${northbound.commons.version} - org.opendaylight.controller config-api ${controller.config.version} - - org.opendaylight.controller - containermanager - ${containermanager.version} - - - org.opendaylight.controller - forwardingrulesmanager - ${forwardingrulesmanager.version} - org.opendaylight.neutron neutron-spi @@ -172,11 +157,6 @@ and is available at http://www.eclipse.org/legal/epl-v10.html 1.6.0-SNAPSHOT zip - - org.opendaylight.controller - sal - ${sal.version} - org.opendaylight.yangtools @@ -207,11 +187,6 @@ and is available at http://www.eclipse.org/legal/epl-v10.html import - - org.opendaylight.controller - switchmanager - ${switchmanager.api.version} - org.opendaylight.openflowplugin.model model-flow-base diff --git a/features/ovsdb/pom.xml b/features/ovsdb/pom.xml index 4d77456863..a5d890a212 100644 --- a/features/ovsdb/pom.xml +++ b/features/ovsdb/pom.xml @@ -15,7 +15,7 @@ and is available at http://www.eclipse.org/legal/epl-v10.html org.opendaylight.odlparent features-parent 1.6.0-SNAPSHOT - + org.opendaylight.ovsdb @@ -47,7 +47,6 @@ and is available at http://www.eclipse.org/legal/epl-v10.html 1.6.0-SNAPSHOT 1.3.0-SNAPSHOT - 3.8.0.Final 0.6.0-SNAPSHOT 1.2.1-SNAPSHOT 1.2.1-SNAPSHOT @@ -118,12 +117,6 @@ and is available at http://www.eclipse.org/legal/epl-v10.html org.apache.commons commons-lang3 - ${commons.lang3.version} - - - io.netty - netty - ${io.netty.version} io.netty @@ -133,42 +126,34 @@ and is available at http://www.eclipse.org/legal/epl-v10.html io.netty netty-buffer - ${netty.version} io.netty netty-codec - ${netty.version} io.netty netty-codec-http - ${netty.version} io.netty netty-common - ${netty.version} io.netty netty-handler - ${netty.version} io.netty netty-transport - ${netty.version} equinoxSDK381 javax.servlet - 3.0.0.v201112011016 equinoxSDK381 javax.servlet.jsp - 2.2.0.v201112011158 equinoxSDK381 @@ -327,10 +312,5 @@ and is available at http://www.eclipse.org/legal/epl-v10.html features xml - - org.opendaylight.ovsdb - ovsdb-ui-bundle - ${ovsdb.ui.version} - diff --git a/features/ovsdb/src/main/features/features.xml b/features/ovsdb/src/main/features/features.xml index f301542343..e36f3d1158 100644 --- a/features/ovsdb/src/main/features/features.xml +++ b/features/ovsdb/src/main/features/features.xml @@ -2,13 +2,13 @@ - mvn:org.opendaylight.openflowplugin/features-openflowplugin-extension/${openflowplugin.version}/xml/features - mvn:org.opendaylight.openflowplugin/features-openflowplugin/${openflowplugin.version}/xml/features - mvn:org.opendaylight.neutron/features-neutron/${networkconfig.neutron.version}/xml/features + mvn:org.opendaylight.openflowplugin/features-openflowplugin-extension/{{VERSION}}/xml/features + mvn:org.opendaylight.openflowplugin/features-openflowplugin/{{VERSION}}/xml/features + mvn:org.opendaylight.neutron/features-neutron/{{VERSION}}/xml/features mvn:org.opendaylight.ovsdb/southbound-features/1.2.1-SNAPSHOT/xml/features - mvn:org.opendaylight.controller/features-mdsal/${mdsal.version}/xml/features - mvn:org.opendaylight.ovsdb/library-features/${ovsdb.library.version}/xml/features - mvn:org.opendaylight.dlux/features-dlux/${dlux.version}/xml/features + mvn:org.opendaylight.controller/features-mdsal/{{VERSION}}/xml/features + mvn:org.opendaylight.ovsdb/library-features/{{VERSION}}/xml/features + mvn:org.opendaylight.dlux/features-dlux/{{VERSION}}/xml/features @@ -18,13 +18,13 @@ odl-ovsdb-library - mvn:org.opendaylight.ovsdb/schema.openvswitch/${schema.openvswitch.version} + mvn:org.opendaylight.ovsdb/schema.openvswitch/{{VERSION}} odl-ovsdb-library - mvn:org.opendaylight.ovsdb/schema.hardwarevtep/${schema.hardwarevtep.version} + mvn:org.opendaylight.ovsdb/schema.hardwarevtep/{{VERSION}} odl-mdsal-broker odl-openflowplugin-nsf-model odl-neutron-service - odl-ovsdb-southbound-impl-ui + odl-ovsdb-southbound-impl-ui odl-openflowplugin-flow-services odl-openflowplugin-nxm-extensions - mvn:org.opendaylight.ovsdb/utils.servicehelper/${ovsdb.utils.servicehelper.version} - mvn:org.opendaylight.ovsdb/utils.mdsal-utils/${project.version} - mvn:org.opendaylight.ovsdb/openstack.net-virt/${openstack.netvirt.version} - mvn:org.opendaylight.ovsdb/openstack.net-virt-providers/${openstack.netvirt.providers.version} - mvn:org.opendaylight.neutron/dummyprovider/${networkconfig.neutron.version} - mvn:org.opendaylight.ovsdb/openstack.net-virt/${project.version}/xml/config - mvn:org.opendaylight.ovsdb/openstack.net-virt-providers/${project.version}/xml/config + mvn:org.opendaylight.ovsdb/utils.servicehelper/{{VERSION}} + mvn:org.opendaylight.ovsdb/utils.mdsal-utils/{{VERSION}} + mvn:org.opendaylight.ovsdb/openstack.net-virt/{{VERSION}} + mvn:org.opendaylight.ovsdb/openstack.net-virt-providers/{{VERSION}} + mvn:org.opendaylight.neutron/dummyprovider/{{VERSION}} + mvn:org.opendaylight.ovsdb/openstack.net-virt/{{VERSION}}/xml/config + mvn:org.opendaylight.ovsdb/openstack.net-virt-providers/{{VERSION}}/xml/config odl-dlux-core - mvn:org.opendaylight.ovsdb/ovsdb-ui-bundle/${ovsdb.ui.version} + mvn:org.opendaylight.ovsdb/ovsdb-ui-bundle/{{VERSION}} diff --git a/openstack/net-virt-sfc/features/production/src/main/features/features.xml b/openstack/net-virt-sfc/features/production/src/main/features/features.xml index cf65c97d01..cce550aa05 100644 --- a/openstack/net-virt-sfc/features/production/src/main/features/features.xml +++ b/openstack/net-virt-sfc/features/production/src/main/features/features.xml @@ -10,19 +10,19 @@ and is available at http://www.eclipse.org/legal/epl-v10.html - mvn:org.opendaylight.controller/features-mdsal/${mdsal.version}/xml/features - mvn:org.opendaylight.dlux/features-dlux/${dlux.version}/xml/features - mvn:org.opendaylight.mdsal.model/features-mdsal-model/${mdsal.model.version}/xml/features - mvn:org.opendaylight.netconf/features-restconf/${restconf.version}/xml/features - mvn:org.opendaylight.openflowplugin/features-openflowplugin/${openflowplugin.version}/xml/features - mvn:org.opendaylight.openflowplugin/features-openflowplugin-extension/${openflowplugin.version}/xml/features - mvn:org.opendaylight.ovsdb/features-ovsdb/${project.version}/xml/features - mvn:org.opendaylight.ovsdb/southbound-features/${project.version}/xml/features - mvn:org.opendaylight.sfc/features-sfc/${sfc.version}/xml/features - mvn:org.opendaylight.yangtools/features-yangtools/${yangtools.version}/xml/features + mvn:org.opendaylight.controller/features-mdsal/{{VERSION}}/xml/features + mvn:org.opendaylight.dlux/features-dlux/{{VERSION}}/xml/features + mvn:org.opendaylight.mdsal.model/features-mdsal-model/{{VERSION}}/xml/features + mvn:org.opendaylight.netconf/features-restconf/{{VERSION}}/xml/features + mvn:org.opendaylight.openflowplugin/features-openflowplugin/{{VERSION}}/xml/features + mvn:org.opendaylight.openflowplugin/features-openflowplugin-extension/{{VERSION}}/xml/features + mvn:org.opendaylight.ovsdb/features-ovsdb/{{VERSION}}/xml/features + mvn:org.opendaylight.ovsdb/southbound-features/{{VERSION}}/xml/features + mvn:org.opendaylight.sfc/features-sfc/{{VERSION}}/xml/features + mvn:org.opendaylight.yangtools/features-yangtools/{{VERSION}}/xml/features odl-mdsal-models - mvn:org.opendaylight.ovsdb/openstack.net-virt-sfc-api/${project.version} + mvn:org.opendaylight.ovsdb/openstack.net-virt-sfc-api/{{VERSION}} odl-mdsal-broker @@ -34,10 +34,10 @@ and is available at http://www.eclipse.org/legal/epl-v10.html odl-sfc-provider odl-sfcofl2 odl-ovsdb-sfc-api - mvn:org.opendaylight.ovsdb/utils.mdsal-utils/${project.version} - mvn:org.opendaylight.ovsdb/utils.servicehelper/${project.version} - mvn:org.opendaylight.ovsdb/openstack.net-virt-sfc-impl/${project.version} - mvn:org.opendaylight.ovsdb/openstack.net-virt-sfc-impl/${project.version}/xml/config + mvn:org.opendaylight.ovsdb/utils.mdsal-utils/{{VERSION}} + mvn:org.opendaylight.ovsdb/utils.servicehelper/{{VERSION}} + mvn:org.opendaylight.ovsdb/openstack.net-virt-sfc-impl/{{VERSION}} + mvn:org.opendaylight.ovsdb/openstack.net-virt-sfc-impl/{{VERSION}}/xml/config odl-ovsdb-sfc diff --git a/openstack/net-virt-sfc/features/test/src/main/features/features.xml b/openstack/net-virt-sfc/features/test/src/main/features/features.xml index 9dd3154362..0f8b724bd8 100644 --- a/openstack/net-virt-sfc/features/test/src/main/features/features.xml +++ b/openstack/net-virt-sfc/features/test/src/main/features/features.xml @@ -12,8 +12,8 @@ and is available at http://www.eclipse.org/legal/epl-v10.html xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.2.0 http://karaf.apache.org/xmlns/features/v1.2.0"> mvn:org.opendaylight.ovsdb/openstack.net-virt-sfc-features/1.2.1-SNAPSHOT/xml/features - mvn:org.opendaylight.ovsdb/utils.mdsal-utils/${project.version} - mvn:org.opendaylight.ovsdb/utils.southbound-utils/${project.version} + mvn:org.opendaylight.ovsdb/utils.mdsal-utils/{{VERSION}} + mvn:org.opendaylight.ovsdb/utils.southbound-utils/{{VERSION}} odl-ovsdb-sfc-ui -- 2.36.6