From fe5ef8066b0dd57df46e5b8806020ceb41716efb Mon Sep 17 00:00:00 2001 From: Ed Warnicke Date: Mon, 21 Jul 2014 20:14:13 -0500 Subject: [PATCH] Made config/mdsal/netconf features non-cyclic We previously had some cross dependency between config-features and netconf-features. This is highly undesirable because it precludes folks being able to simply have a maven dependency for the one feature they want and requires enumerating *all* the feature files. This fixes that by pulling out features/config-netty features/config-persister from features/config So the dependency graph is now non-cyclic: config-netty -> config-persister config-persister -> (netconf,config) netconf -> (config,protocol-framework) Change-Id: Ie662df40bd6985e2ecd4280596ddafc947e5edd0 Signed-off-by: Ed Warnicke --- features/config-netty/pom.xml | 80 ++++++++++++++++ .../src/main/resources/features.xml | 16 ++++ features/config-persister/pom.xml | 96 +++++++++++++++++++ .../src/main/resources/features.xml | 32 +++++++ features/config/pom.xml | 11 ++- .../config/src/main/resources/features.xml | 33 ------- features/netconf/pom.xml | 19 +++- features/pom.xml | 2 + features/protocol-framework/pom.xml | 11 ++- .../distribution/opendaylight-karaf/pom.xml | 18 +--- 10 files changed, 265 insertions(+), 53 deletions(-) create mode 100644 features/config-netty/pom.xml create mode 100644 features/config-netty/src/main/resources/features.xml create mode 100644 features/config-persister/pom.xml create mode 100644 features/config-persister/src/main/resources/features.xml diff --git a/features/config-netty/pom.xml b/features/config-netty/pom.xml new file mode 100644 index 0000000000..98b97d1d95 --- /dev/null +++ b/features/config-netty/pom.xml @@ -0,0 +1,80 @@ + + + 4.0.0 + + org.opendaylight.controller + config-subsystem + 0.2.5-SNAPSHOT + ../../opendaylight/config/ + + config-netty-features + + pom + + + features.xml + + + + + org.opendaylight.controller + config-persister-features + ${config.version} + features + xml + runtime + + + + + + + true + src/main/resources + + + + + org.apache.maven.plugins + maven-resources-plugin + + + filter + + resources + + generate-resources + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + attach-artifacts + + attach-artifact + + package + + + + ${project.build.directory}/classes/${features.file} + xml + features + + + + + + + + + + scm:git:ssh://git.opendaylight.org:29418/controller.git + scm:git:ssh://git.opendaylight.org:29418/controller.git + HEAD + https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL + + diff --git a/features/config-netty/src/main/resources/features.xml b/features/config-netty/src/main/resources/features.xml new file mode 100644 index 0000000000..3121ca01a2 --- /dev/null +++ b/features/config-netty/src/main/resources/features.xml @@ -0,0 +1,16 @@ + + + + mvn:org.opendaylight.controller/config-persister-features/${config.version}/xml/features + + odl-config-netty-config-api + mvn:org.opendaylight.controller/netty-event-executor-config/${project.version} + mvn:org.opendaylight.controller/netty-threadgroup-config/${project.version} + mvn:org.opendaylight.controller/netty-timer-config/${project.version} + mvn:org.opendaylight.controller/threadpool-config-api/${project.version} + mvn:org.opendaylight.controller/threadpool-config-impl/${project.version} + odl-config-startup + + \ No newline at end of file diff --git a/features/config-persister/pom.xml b/features/config-persister/pom.xml new file mode 100644 index 0000000000..969d0c8841 --- /dev/null +++ b/features/config-persister/pom.xml @@ -0,0 +1,96 @@ + + + 4.0.0 + + org.opendaylight.controller + config-subsystem + 0.2.5-SNAPSHOT + ../../opendaylight/config/ + + config-persister-features + + pom + + + features.xml + + + + + org.opendaylight.yangtools + features-yangtools + ${yangtools.version} + features + xml + runtime + + + org.opendaylight.controller + netconf-features + ${netconf.version} + features + xml + runtime + + + org.opendaylight.controller + config-features + ${config.version} + features + xml + runtime + + + + + + + true + src/main/resources + + + + + org.apache.maven.plugins + maven-resources-plugin + + + filter + + resources + + generate-resources + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + attach-artifacts + + attach-artifact + + package + + + + ${project.build.directory}/classes/${features.file} + xml + features + + + + + + + + + + scm:git:ssh://git.opendaylight.org:29418/controller.git + scm:git:ssh://git.opendaylight.org:29418/controller.git + HEAD + https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL + + diff --git a/features/config-persister/src/main/resources/features.xml b/features/config-persister/src/main/resources/features.xml new file mode 100644 index 0000000000..2273a4a309 --- /dev/null +++ b/features/config-persister/src/main/resources/features.xml @@ -0,0 +1,32 @@ + + + + mvn:org.opendaylight.yangtools/features-yangtools/${yangtools.version}/xml/features + mvn:org.opendaylight.controller/netconf-features/${netconf.version}/xml/features + mvn:org.opendaylight.controller/config-features/${config.version}/xml/features + + odl-config-netconf-connector + odl-config-persister + odl-netconf-impl + + + odl-netconf-api + odl-config-api + yangtools-binding-generator + mvn:org.opendaylight.controller/config-persister-api/${project.version} + mvn:org.opendaylight.controller/config-persister-file-xml-adapter/${project.version} + mvn:org.opendaylight.controller/config-persister-directory-xml-adapter/${project.version} + mvn:org.opendaylight.controller/config-persister-impl/${project.version} + + mvn:org.opendaylight.controller/netconf-util/${netconf.version} + mvn:org.opendaylight.controller/netconf-mapping-api/${netconf.version} + + mvn:com.google.guava/guava/${guava.version} + mvn:commons-io/commons-io/${commons.io.version} + mvn:org.apache.commons/commons-lang3/${commons.lang3.version} + mvn:org.eclipse.persistence/org.eclipse.persistence.core/${eclipse.persistence.version} + mvn:org.eclipse.persistence/org.eclipse.persistence.moxy/${eclipse.persistence.version} + + \ No newline at end of file diff --git a/features/config/pom.xml b/features/config/pom.xml index 01a4ea74a2..7e5dd6472b 100644 --- a/features/config/pom.xml +++ b/features/config/pom.xml @@ -15,7 +15,16 @@ features.xml - + + + org.opendaylight.yangtools + features-yangtools + ${yangtools.version} + features + xml + runtime + + diff --git a/features/config/src/main/resources/features.xml b/features/config/src/main/resources/features.xml index 7c11b5b18b..e18f844622 100644 --- a/features/config/src/main/resources/features.xml +++ b/features/config/src/main/resources/features.xml @@ -4,13 +4,6 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.2.0 http://karaf.apache.org/xmlns/features/v1.2.0"> mvn:org.opendaylight.yangtools/features-yangtools/${yangtools.version}/xml/features - mvn:org.opendaylight.controller/netconf-features/${netconf.version}/xml/features - - - odl-config-netconf-connector - odl-config-persister - odl-netconf-impl - yangtools-concepts @@ -30,24 +23,7 @@ odl-config-core mvn:org.opendaylight.controller/config-manager/${project.version} - - odl-netconf-api - odl-config-api - yangtools-binding-generator - mvn:org.opendaylight.controller/config-persister-api/${project.version} - mvn:org.opendaylight.controller/config-persister-file-xml-adapter/${project.version} - mvn:org.opendaylight.controller/config-persister-directory-xml-adapter/${project.version} - mvn:org.opendaylight.controller/config-persister-impl/${project.version} - mvn:org.opendaylight.controller/netconf-util/${netconf.version} - mvn:org.opendaylight.controller/netconf-mapping-api/${netconf.version} - - mvn:com.google.guava/guava/${guava.version} - mvn:commons-io/commons-io/${commons.io.version} - mvn:org.apache.commons/commons-lang3/${commons.lang3.version} - mvn:org.eclipse.persistence/org.eclipse.persistence.core/${eclipse.persistence.version} - mvn:org.eclipse.persistence/org.eclipse.persistence.moxy/${eclipse.persistence.version} - mvn:org.opendaylight.controller/config-api/${project.version} @@ -66,15 +42,6 @@ odl-config-api - - odl-config-netty-config-api - mvn:org.opendaylight.controller/netty-event-executor-config/${project.version} - mvn:org.opendaylight.controller/netty-threadgroup-config/${project.version} - mvn:org.opendaylight.controller/netty-timer-config/${project.version} - mvn:org.opendaylight.controller/threadpool-config-api/${project.version} - mvn:org.opendaylight.controller/threadpool-config-impl/${project.version} - odl-config-startup - mvn:org.opendaylight.controller/netconf-config-dispatcher/${project.version} diff --git a/features/netconf/pom.xml b/features/netconf/pom.xml index 457fc64edd..90c088eaba 100644 --- a/features/netconf/pom.xml +++ b/features/netconf/pom.xml @@ -15,7 +15,24 @@ features.xml - + + + org.opendaylight.controller + config-features + ${config.version} + features + xml + runtime + + + org.opendaylight.controller + features-odl-protocol-framework + ${protocol-framework.version} + features + xml + runtime + + diff --git a/features/pom.xml b/features/pom.xml index dce47faea6..fb40fa93b1 100644 --- a/features/pom.xml +++ b/features/pom.xml @@ -14,6 +14,8 @@ config + config-persister + config-netty mdsal netconf protocol-framework diff --git a/features/protocol-framework/pom.xml b/features/protocol-framework/pom.xml index f0208d6452..045ac2dffe 100644 --- a/features/protocol-framework/pom.xml +++ b/features/protocol-framework/pom.xml @@ -15,7 +15,16 @@ features.xml - + + + org.opendaylight.controller + config-features + ${config.version} + features + xml + runtime + + diff --git a/opendaylight/distribution/opendaylight-karaf/pom.xml b/opendaylight/distribution/opendaylight-karaf/pom.xml index 4ef0b8e86b..efb7a374f3 100644 --- a/opendaylight/distribution/opendaylight-karaf/pom.xml +++ b/opendaylight/distribution/opendaylight-karaf/pom.xml @@ -63,23 +63,7 @@ org.opendaylight.controller - features-odl-protocol-framework - ${protocol-framework.version} - features - xml - runtime - - - org.opendaylight.controller - netconf-features - ${netconf.version} - features - xml - runtime - - - org.opendaylight.controller - config-features + config-netty-features ${config.version} features xml -- 2.36.6