From e3bf6987d0362f4192d774ad2dc816e87cd0a532 Mon Sep 17 00:00:00 2001 From: Thomas Bachman Date: Tue, 9 Sep 2014 10:00:42 +0000 Subject: [PATCH] BUG-1769: Controller project no longer supports non-karaf distributions. This adds a project-local karaf distribution build, so that users can check out the Group Based Policy and run it with just the controller build. Change-Id: Ide0775827bf0951c32b9eefea5c8742c2745d0b0 Signed-off-by: Thomas Bachman --- commons/parent/pom.xml | 1 + distribution-karaf/pom.xml | 260 ++++++++++++++++++ features/pom.xml | 10 +- features/src/main/resources/features.xml | 14 +- groupbasedpolicy-ofoverlay-config/pom.xml | 15 + .../initial/43-openflowjava-nx-api-config.xml | 38 +++ .../resources/initial/44-nicira-extension.xml | 34 +++ .../initial/44-openflowjava-nx-config.xml | 24 ++ pom.xml | 2 +- 9 files changed, 385 insertions(+), 13 deletions(-) create mode 100644 distribution-karaf/pom.xml create mode 100644 groupbasedpolicy-ofoverlay-config/src/main/resources/initial/43-openflowjava-nx-api-config.xml create mode 100644 groupbasedpolicy-ofoverlay-config/src/main/resources/initial/44-nicira-extension.xml create mode 100644 groupbasedpolicy-ofoverlay-config/src/main/resources/initial/44-openflowjava-nx-config.xml diff --git a/commons/parent/pom.xml b/commons/parent/pom.xml index fe2e16735..29408298f 100644 --- a/commons/parent/pom.xml +++ b/commons/parent/pom.xml @@ -22,6 +22,7 @@ 0.0.3-SNAPSHOT 0.5-SNAPSHOT etc/opendaylight/karaf + 0.1.0-SNAPSHOT 15-groupbasedpolicy-ofoverlay.xml diff --git a/distribution-karaf/pom.xml b/distribution-karaf/pom.xml new file mode 100644 index 000000000..2cfd4dfa6 --- /dev/null +++ b/distribution-karaf/pom.xml @@ -0,0 +1,260 @@ + + + 4.0.0 + + groupbasedpolicy.project + org.opendaylight.groupbasedpolicy + 0.1.0-SNAPSHOT + ../ + + distribution-karaf + org.opendaylight.groupbasedpolicy + pom + + 3.0 + + + 1.0.0-SNAPSHOT + 1.4.2-SNAPSHOT + 3.0.1 + + + + + + org.apache.karaf.features + framework + ${karaf.version} + kar + + + org.apache.karaf.features + standard + ${karaf.version} + features + xml + runtime + + + + + org.opendaylight.controller + karaf.branding + ${branding.version} + compile + + + + + org.opendaylight.controller + opendaylight-karaf-resources + ${karaf.resources.version} + + + + + org.opendaylight.controller + features-mdsal + features + xml + runtime + + + + org.opendaylight.groupbasedpolicy + features-groupbasedpolicy + ${groupbasedpolicy.project.version} + features + xml + runtime + + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.felix + maven-bundle-plugin + [0,) + + cleanVersions + + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + [0,) + + copy + unpack + + + + + + + + + org.apache.karaf.tooling + karaf-maven-plugin + [0,) + + commands-generate-help + + + + + + + + + org.fusesource.scalate + maven-scalate-plugin + [0,) + + sitegen + + + + + + + + + org.apache.servicemix.tooling + depends-maven-plugin + [0,) + + generate-depends-file + + + + + + + + + + + + + + + org.apache.karaf.tooling + karaf-maven-plugin + ${karaf.version} + true + + + standard + standard + odl-groupbasedpolicy-ofoverlay + odl-restconf + + + + + process-resources + + install-kars + + process-resources + + + package + + instance-create-archive + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.6 + + + copy + + copy + + generate-resources + + + + org.opendaylight.controller + karaf.branding + ${karaf.branding.version} + target/assembly/lib + karaf.branding-${branding.version}.jar + + + + + + unpack-karaf-resources + + unpack-dependencies + + prepare-package + + ${project.build.directory}/assembly + org.opendaylight.controller + opendaylight-karaf-resources + META-INF\/** + true + false + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + prepare-package + + run + + + + + + + + + + + + + + + + + + + + + + + scm:git:ssh://git.opendaylight.org:29418/groupbasedpolicy.git + scm:git:ssh://git.opendaylight.org:29418/groupbasedpolicy.git + HEAD + https://git.opendaylight.org/gerrit/gitweb?p=groupbasedpolicy.git;a=summary + + diff --git a/features/pom.xml b/features/pom.xml index 724cc5f2d..ab698a5d8 100644 --- a/features/pom.xml +++ b/features/pom.xml @@ -29,21 +29,21 @@ org.opendaylight.yangtools features-yangtools - 0.6.2-SNAPSHOT + ${yangtools.version} features xml org.opendaylight.controller features-mdsal - 1.1-SNAPSHOT + ${mdsal.version} features xml org.opendaylight.openflowplugin features-openflowplugin - 0.0.3-SNAPSHOT + ${openflowplugin.distribution.version} features xml @@ -84,14 +84,14 @@ org.opendaylight.openflowplugin features-openflowplugin - 0.0.3-SNAPSHOT + ${openflowplugin.distribution.version} features xml org.opendaylight.ovsdb features-openflow-nxm - 0.0.3-SNAPSHOT + ${openflowplugin.distribution.version} features xml diff --git a/features/src/main/resources/features.xml b/features/src/main/resources/features.xml index 1cf84de9e..605c18cf6 100644 --- a/features/src/main/resources/features.xml +++ b/features/src/main/resources/features.xml @@ -10,16 +10,16 @@ - mvn:org.opendaylight.yangtools/features-yangtools/0.6.2-SNAPSHOT/xml/features - mvn:org.opendaylight.controller/features-mdsal/1.1-SNAPSHOT/xml/features - mvn:org.opendaylight.openflowplugin/features-openflowplugin/0.0.3-SNAPSHOT/xml/features - mvn:org.opendaylight.ovsdb/features-openflow-nxm/0.0.3-SNAPSHOT/xml/features + mvn:org.opendaylight.yangtools/features-yangtools/${yangtools.version}/xml/features + mvn:org.opendaylight.controller/features-mdsal/${mdsal.version}/xml/features + mvn:org.opendaylight.openflowplugin/features-openflowplugin/${openflowplugin.distribution.version}/xml/features + mvn:org.opendaylight.ovsdb/features-openflow-nxm/${openflowplugin.distribution.version}/xml/features odl-mdsal-broker - odl-yangtools-binding - odl-yangtools-models + odl-yangtools-binding + odl-yangtools-models odl-openflowplugin-flow-services - odl-openflow-nxm-extensions + odl-openflow-nxm-extensions mvn:org.opendaylight.groupbasedpolicy/groupbasedpolicy/${project.version} mvn:com.fasterxml.jackson.core/jackson-annotations/${jackson.version} mvn:com.fasterxml.jackson.core/jackson-core/${jackson.version} diff --git a/groupbasedpolicy-ofoverlay-config/pom.xml b/groupbasedpolicy-ofoverlay-config/pom.xml index 70dfcef74..b3e7f32b0 100644 --- a/groupbasedpolicy-ofoverlay-config/pom.xml +++ b/groupbasedpolicy-ofoverlay-config/pom.xml @@ -39,6 +39,21 @@ xml config + + ${project.build.directory}/classes/initial/43-openflowjava-nx-api-config.xml + xml + config-nx-api + + + ${project.build.directory}/classes/initial/44-nicira-extension.xml + xml + config-nx-ext + + + ${project.build.directory}/classes/initial/44-openflowjava-nx-config.xml + xml + config-nx-cfg + diff --git a/groupbasedpolicy-ofoverlay-config/src/main/resources/initial/43-openflowjava-nx-api-config.xml b/groupbasedpolicy-ofoverlay-config/src/main/resources/initial/43-openflowjava-nx-api-config.xml new file mode 100644 index 000000000..1964e4d32 --- /dev/null +++ b/groupbasedpolicy-ofoverlay-config/src/main/resources/initial/43-openflowjava-nx-api-config.xml @@ -0,0 +1,38 @@ + + + + + urn:opendaylight:params:xml:ns:yang:openflowplugin:ofjava:nx:api:config?module=openflowjava-nx-api-config&revision=2014-07-11 + + + + + + + + prefix:openflowjava-extension-nicira-api + openflowjava-extension-nx-api-bundle + + ofSwitch:openflow-switch-connection-provider + openflow-switch-connection-provider-legacy + + + ofSwitch:openflow-switch-connection-provider + openflow-switch-connection-provider-default + + + + + + + prefix:nicira-extension-codec-registrator + + openflowjava-nicira-ext-registrator + /modules/module[type='openflowjava-extension-nicira-api'][name='openflowjava-extension-nx-api-bundle'] + + + + + + + diff --git a/groupbasedpolicy-ofoverlay-config/src/main/resources/initial/44-nicira-extension.xml b/groupbasedpolicy-ofoverlay-config/src/main/resources/initial/44-nicira-extension.xml new file mode 100644 index 000000000..a5338c077 --- /dev/null +++ b/groupbasedpolicy-ofoverlay-config/src/main/resources/initial/44-nicira-extension.xml @@ -0,0 +1,34 @@ + + + + + + urn:opendaylight:params:xml:ns:yang:openflowplugin:nx:config:impl?module=nicira-extension-impl&revision=2014-07-11 + + urn:opendaylight:params:xml:ns:yang:openflow:common:config?module=openflow-provider&revision=2014-03-26 + + + + + + + + prefix:nicira-extension-provider-impl + nicira-extension-provider-default-impl + + + opfprov:openflow-provider + openflow-provider + + + + + + + diff --git a/groupbasedpolicy-ofoverlay-config/src/main/resources/initial/44-openflowjava-nx-config.xml b/groupbasedpolicy-ofoverlay-config/src/main/resources/initial/44-openflowjava-nx-config.xml new file mode 100644 index 000000000..756bd15f2 --- /dev/null +++ b/groupbasedpolicy-ofoverlay-config/src/main/resources/initial/44-openflowjava-nx-config.xml @@ -0,0 +1,24 @@ + + + + + urn:opendaylight:params:xml:ns:yang:openflowplugin:ofjava:nx:config?module=openflowjava-nx-config&revision=2014-07-11 + + + + + + + + prefix:openflowjava-extension-nicira + openflow-nx-bundle + + prefix:nicira-extension-codec-registrator + openflowjava-nicira-ext-registrator + + + + + + + diff --git a/pom.xml b/pom.xml index 74872a236..3eea583ed 100644 --- a/pom.xml +++ b/pom.xml @@ -18,7 +18,7 @@ commons/parent groupbasedpolicy groupbasedpolicy-ofoverlay-config - distribution + distribution-karaf features -- 2.36.6