From 67d237253968b2a36e7f0eaf1c3325d45d2655f6 Mon Sep 17 00:00:00 2001 From: Mathieu Lemay Date: Wed, 11 Jun 2014 14:09:39 -0400 Subject: [PATCH 1/1] Created Proper Feature File for AD-SAL PatchSet2: Brought in the base-features dependencies to the opendaylight-karaf pom file so features-adsal doesn't break for lack of it still getting the error: dopendaylight-user@root>feature:install odl-adsal-all 'org.opendaylight.controller.logging.bridge.internal.LogListenerImpl@281cf63e' is removed as a LogListener, since it threw an exception. Error executing command: Could not start bundle mvn:org.opendaylight.controller/sal.implementation/0.4.2-SNAPSHOT in feature(s) odl-adsal-core-0.8.1-SNAPSHOT: Unresolved constraint in bundle org.opendaylight.controller.sal.implementation [81]: Unable to resolve 81.0: missing requirement [81.0] osgi.wiring.package; (&(osgi.wiring.package=org.eclipse.osgi.framework.console)(version>=1.1.0)(!(version>=2.0.0))) PatchSet3: Rebased and fixed the commons.lang.version to be commons.lang3.version. Still getting the error from Patch3. PatchSet4: Fixed. Change-Id: I8190b4bbc52fb1c3202570b5f77477e4a0f30c48 Signed-off-by: Mathieu Lemay Signed-off-by: Ed Warnicke --- features/adsal/pom.xml | 73 +++++++++++++++++++ .../adsal/src/main/resources/features.xml | 47 ++++++++++++ .../distribution/opendaylight-karaf/pom.xml | 28 +++---- pom.xml | 1 + 4 files changed, 135 insertions(+), 14 deletions(-) create mode 100644 features/adsal/pom.xml create mode 100644 features/adsal/src/main/resources/features.xml diff --git a/features/adsal/pom.xml b/features/adsal/pom.xml new file mode 100644 index 0000000000..0ccb17a664 --- /dev/null +++ b/features/adsal/pom.xml @@ -0,0 +1,73 @@ + + + 4.0.0 + + org.opendaylight.controller + commons.opendaylight + 1.4.2-SNAPSHOT + ../../opendaylight/commons/opendaylight + + features-adsal + ${sal.version} + pom + Features :: AD-SAL Features + AD-SAL Features POM + + features.xml + + + + org.opendaylight.controller + base-features + ${project.parent.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 + + + + + + + + + diff --git a/features/adsal/src/main/resources/features.xml b/features/adsal/src/main/resources/features.xml new file mode 100644 index 0000000000..f955315164 --- /dev/null +++ b/features/adsal/src/main/resources/features.xml @@ -0,0 +1,47 @@ + + + + odl-adsal-core + odl-adsal-networkconfiguration + odl-adsal-connection + odl-adsal-clustering + odl-adsal-configuration + + + base-felix-dm + base-dummy-console + odl-adsal-thirdparty + mvn:org.apache.commons/commons-lang3/${commons.lang3.version} + + mvn:org.opendaylight.controller/sal/${sal.version} + mvn:org.opendaylight.controller/sal.implementation/${sal.implementation.version} + + + mvn:org.opendaylight.controller/sal.networkconfiguration/${sal.networkconfiguration.version} + mvn:org.opendaylight.controller/sal.networkconfiguration.implementation/${sal.networkconfiguration.version} + + + odl-adsal-core + mvn:org.opendaylight.controller/sal.connection/${sal.connection.version} + mvn:org.opendaylight.controller/sal.connection.implementation/${sal.connection.version} + + + transaction + base-felix-dm + base-eclipselink-persistence + odl-adsal-core + mvn:org.opendaylight.controller/clustering.services/${clustering.services.version} + mvn:org.opendaylight.controller/clustering.services-implementation/${clustering.services_implementation.version} + mvn:org.opendaylight.controller/clustering.stub/${clustering.stub.version} + + + odl-adsal-core + odl-adsal-clustering + mvn:org.opendaylight.controller/configuration/${configuration.version} + mvn:org.opendaylight.controller/configuration.implementation/${configuration.implementation.version} + + + mvn:org.opendaylight.controller/logging.bridge/${logging.bridge.version} + + diff --git a/opendaylight/distribution/opendaylight-karaf/pom.xml b/opendaylight/distribution/opendaylight-karaf/pom.xml index 8a23a6b5e6..d8f6ba1526 100644 --- a/opendaylight/distribution/opendaylight-karaf/pom.xml +++ b/opendaylight/distribution/opendaylight-karaf/pom.xml @@ -22,6 +22,12 @@ ${karaf.version} kar + + org.opendaylight.controller + base-features + ${project.version} + kar + org.opendaylight.controller karaf.branding @@ -41,10 +47,13 @@ org.opendaylight.controller base-features - ${project.version} - kar + ${project.parent.version} + features + xml runtime + org.opendaylight.controller config-features @@ -53,23 +62,14 @@ xml runtime - - org.opendaylight.controller mdsal-features diff --git a/pom.xml b/pom.xml index c54d9a930f..012d9399b8 100644 --- a/pom.xml +++ b/pom.xml @@ -128,6 +128,7 @@ features/base features/controller + features/adsal opendaylight/dummy-console opendaylight/karaf-branding opendaylight/distribution/opendaylight-karaf -- 2.36.6