From 9459954a216d61dfce69ffd90e45ea6a1d851584 Mon Sep 17 00:00:00 2001 From: Ed Warnicke Date: Wed, 20 Aug 2014 11:09:15 -0500 Subject: [PATCH] Fix karaf features, and add testing for them. Change-Id: I272e0b92099d68e72f30138fe42935495ddf7d94 Signed-off-by: Ed Warnicke --- feature/pom.xml | 71 ----------- feature/src/main/resources/features.xml | 22 ---- features/pom.xml | 156 +++++++++++++++++++++++ features/src/main/resources/features.xml | 28 ++++ pom.xml | 38 +++++- 5 files changed, 221 insertions(+), 94 deletions(-) delete mode 100644 feature/pom.xml delete mode 100644 feature/src/main/resources/features.xml create mode 100644 features/pom.xml create mode 100644 features/src/main/resources/features.xml diff --git a/feature/pom.xml b/feature/pom.xml deleted file mode 100644 index bfd110c9..00000000 --- a/feature/pom.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - 4.0.0 - - org.opendaylight.openflowjava - openflow-protocol-parent - 0.5-SNAPSHOT - - openflowjava-features - Openflow Protocol Library - Karaf Features - - pom - - - features.xml - - - - - - - - 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/openflowjava.git - scm:git:ssh://git.opendaylight.org:29418/openflowjava.git - HEAD - https://wiki.opendaylight.org/view/Openflow_Protocol_Library:Main - - diff --git a/feature/src/main/resources/features.xml b/feature/src/main/resources/features.xml deleted file mode 100644 index 1692a3d0..00000000 --- a/feature/src/main/resources/features.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - yangtools-concepts - yangtools-binding - yangtools-binding-generator - yangtools-models - odl-config-subsystem - mvn:io.netty/netty-buffer/${netty.version} - mvn:io.netty/netty-common/${netty.version} - mvn:io.netty/netty-transport/${netty.version} - mvn:io.netty/netty-codec/${netty.version} - mvn:io.netty/netty-handler/${netty.version} - mvn:org.opendaylight.openflowjava/openflow-protocol-api/${project.version} - mvn:org.opendaylight.openflowjava/openflow-protocol-spi/${project.version} - mvn:org.opendaylight.openflowjava/openflow-protocol-impl/${project.version} - - \ No newline at end of file diff --git a/features/pom.xml b/features/pom.xml new file mode 100644 index 00000000..1ec17d83 --- /dev/null +++ b/features/pom.xml @@ -0,0 +1,156 @@ + + + 4.0.0 + + org.opendaylight.openflowjava + openflow-protocol-parent + 0.5-SNAPSHOT + ../ + + features-openflowjava + + jar + + + features.xml + 1.4.2-SNAPSHOT + 0.6.2-SNAPSHOT + + + + + + org.opendaylight.yangtools + features-yangtools + features + xml + + + org.opendaylight.controller + features-config + features + xml + + + + + org.opendaylight.openflowjava + openflow-protocol-api + ${project.version} + + + org.opendaylight.openflowjava + openflow-protocol-spi + ${project.version} + + + org.opendaylight.openflowjava + openflow-protocol-impl + ${project.version} + + + org.opendaylight.openflowjava + util + ${project.version} + + + io.netty + netty-codec + + + io.netty + netty-handler + + + io.netty + netty-common + + + io.netty + netty-buffer + + + io.netty + netty-transport + + + + org.opendaylight.yangtools + features-test + + + + org.opendaylight.controller + opendaylight-karaf-empty + ${karaf.distro.empty.version} + zip + + + + + + + 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 + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.16 + + + org.opendaylight.controller + opendaylight-karaf-empty + ${karaf.empty.distro.version} + + + org.opendaylight.yangtools:features-test + + + + + + + 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/src/main/resources/features.xml b/features/src/main/resources/features.xml new file mode 100644 index 00000000..2419f1ff --- /dev/null +++ b/features/src/main/resources/features.xml @@ -0,0 +1,28 @@ + + + + mvn:org.opendaylight.yangtools/features-yangtools/${yangtools.version}/xml/features + mvn:org.opendaylight.controller/features-config/${config.version}/xml/features + + odl-openflowjava-protocol + + + odl-yangtools-common + odl-yangtools-binding + odl-yangtools-binding-generator + odl-yangtools-models + odl-config-api + odl-mdsal-common + mvn:io.netty/netty-buffer/${netty.version} + mvn:io.netty/netty-common/${netty.version} + mvn:io.netty/netty-transport/${netty.version} + mvn:io.netty/netty-codec/${netty.version} + mvn:io.netty/netty-handler/${netty.version} + mvn:org.opendaylight.openflowjava/openflow-protocol-api/${project.version} + mvn:org.opendaylight.openflowjava/openflow-protocol-spi/${project.version} + mvn:org.opendaylight.openflowjava/openflow-protocol-impl/${project.version} + mvn:org.opendaylight.openflowjava/util/${project.version} + + diff --git a/pom.xml b/pom.xml index a808355e..29c8df68 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ util openflow-protocol-impl openflow-protocol-it - feature + features simple-client openflow-nx-resubmit-action openflow-extension-nicira @@ -36,6 +36,7 @@ 1.5.0 1.26.2 ${project.build.directory}/yang-gen-config + 1.4.2-SNAPSHOT ${project.build.directory}/yang-gen-sal ${user.name}-private-view org.openflow.openflowj,net.sf.jung2 @@ -122,6 +123,21 @@ + + + org.opendaylight.yangtools + features-yangtools + ${yangtools.version} + features + xml + + + org.opendaylight.controller + features-config + ${config.version} + features + xml + org.slf4j slf4j-api @@ -137,6 +153,21 @@ netty-handler ${netty.version} + + io.netty + netty-codec + ${netty.version} + + + io.netty + netty-common + ${netty.version} + + + io.netty + netty-transport + ${netty.version} + com.google.guava guava @@ -180,6 +211,11 @@ 1.9.5 test + + org.opendaylight.yangtools + features-test + ${yangtools.version} + -- 2.36.6