From fb5f6a394d26ab3ef3c9943a6d975d60c70ae949 Mon Sep 17 00:00:00 2001 From: Ed Warnicke Date: Sun, 4 Aug 2013 23:11:22 -0500 Subject: [PATCH] Added distribution directory - Added a distribution/opendaylight directory - Modified commons directory to build all modules - Modified commons directory to use the controller checkstyle Note: This won't work correctly until https://git.opendaylight.org/gerrit/#/c/781/ is merged Note: The Jenkins job should be modified to build commons/ (which will build all submodules). Change-Id: I64f4721ba65cabcc0c48db6b9f531aa73e266807 Signed-off-by: Ed Warnicke --- README | 38 ++++++++ commons/pom.xml | 18 +++- commons/space_and_tabs_checks.xml | 17 ---- distribution/opendaylight/pom.xml | 88 +++++++++++++++++++ .../opendaylight/src/assemble/bin.xml | 45 ++++++++++ 5 files changed, 188 insertions(+), 18 deletions(-) create mode 100644 README delete mode 100755 commons/space_and_tabs_checks.xml create mode 100755 distribution/opendaylight/pom.xml create mode 100644 distribution/opendaylight/src/assemble/bin.xml diff --git a/README b/README new file mode 100644 index 0000000000..1401a994b5 --- /dev/null +++ b/README @@ -0,0 +1,38 @@ +DIRECTORY ORGANIZATION +====================== + +- commons: contains the parent pom.xml for all ovsdb projects. +- ovsdb: contains the ovsdb SB plugin +- distribution/opendaylight: will build a working controller distribution + based on the controller + ovsdb modules + +HOW TO BUILD +============ + +In order to build it's required to have JDK 1.7+ and Maven 3+, to get +a build going it's needed to: + +cd commons/ +mvn clean install + +or if you want to avoid SNAPSHOT checking + +cd commons/ +mvn clean install -nsu + +HOW TO RUN +============ + +Upon successful completion of a build + +cd distribution/opendaylight/target/distribution.ovsdb-1.0.0-SNAPSHOT-osgipackage/opendaylight/ +./run.sh + +Wait for the osgi console to startup and then point a browser at + +http:localhost:8080/ + + + + + diff --git a/commons/pom.xml b/commons/pom.xml index 11a4923c8d..bd66993b19 100755 --- a/commons/pom.xml +++ b/commons/pom.xml @@ -14,7 +14,18 @@ commons.ovsdb 1.0.0-SNAPSHOT pom - + https://wiki.opendaylight.org/view/OVSDB_Integration:Main + + scm:git:https://git.opendaylight.org/gerrit/p/ovsdb.git + + + http://nexus.opendaylight.org/content + UTF-8 + + + ../ovsdb/ + ../distribution/opendaylight + @@ -43,5 +54,10 @@ central2 http://nexus.opendaylight.org/content/repositories/central2/ + + opendaylight-snapshot + central2 + http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ + diff --git a/commons/space_and_tabs_checks.xml b/commons/space_and_tabs_checks.xml deleted file mode 100755 index 49a5802444..0000000000 --- a/commons/space_and_tabs_checks.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/distribution/opendaylight/pom.xml b/distribution/opendaylight/pom.xml new file mode 100755 index 0000000000..15509b8a15 --- /dev/null +++ b/distribution/opendaylight/pom.xml @@ -0,0 +1,88 @@ + + + 4.0.0 + + org.opendaylight.ovsdb + commons.ovsdb + 1.0.0-SNAPSHOT + ../../commons/ + + + distribution.ovsdb + pom + ovsdb Distribution + + + + org.opendaylight.controller + distribution.opendaylight + 0.1.0-SNAPSHOT + zip + osgipackage + + provided + + + org.opendaylight.ovsdb + ovsdb + 0.4.0-SNAPSHOT + + + + + + ${basedir}/src/main/resources + + + ${project.build.directory}/generated-resources + true + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.8 + + + unpack-shared-resources + + unpack-dependencies + + generate-resources + + ${project.build.directory}/generated-resources + distribution.opendaylight + org.opendaylight.controller + true + false + + + + + + maven-assembly-plugin + + + distro-assembly + package + + single + + + + src/assemble/bin.xml + + + + + + + + diff --git a/distribution/opendaylight/src/assemble/bin.xml b/distribution/opendaylight/src/assemble/bin.xml new file mode 100644 index 0000000000..b06e147dc6 --- /dev/null +++ b/distribution/opendaylight/src/assemble/bin.xml @@ -0,0 +1,45 @@ + + osgipackage + + dir + zip + + false + + + ${project.build.directory}/generated-resources + / + + + + + opendaylight/plugins + + equinoxSDK381:org.eclipse.osgi + equinoxSDK381:org.eclipse.equinox.console + equinoxSDK381:org.eclipse.equinox.launcher + equinoxSDK381:org.eclipse.equinox.ds + equinoxSDK381:org.eclipse.equinox.util + equinoxSDK381:org.eclipse.osgi.services + virgomirror:org.eclipse.jdt.core.compiler.batch + org.apache.felix:org.apache.felix.fileinstall + geminiweb:org.eclipse.virgo.kernel.equinox.extensions + org.slf4j:slf4j-api + ch.qos.logback:logback-core + ch.qos.logback:logback-classic + com.sun.jersey:jersey-core + com.sun.jersey:jersey-json + com.sun.jersey:jersey-server + + + ${artifact.groupId}.${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension} + + false + runtime + false + + + -- 2.36.6