From: guillaume.lambert Date: Fri, 2 Apr 2021 09:23:06 +0000 (+0200) Subject: Lighty support Silicon migration X-Git-Tag: 4.0.0~115 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=transportpce.git;a=commitdiff_plain;h=49a7298494b14c83bb5ac0a33abb5bf1340b6f13 Lighty support Silicon migration - bump lighty pom to 14.0.0 - fix a few migration issues since Si SR0 - adapt tox.ini accordingly - fix README.md - force lighty use in tox JIRA: TRNSPRTPCE-442 Signed-off-by: guillaume.lambert Change-Id: If7124a7b93e4606037ffa25d4faff79deac023d9 (cherry picked from commit 450c421e16108c03a1278cfd9c112c09e2a04e1f) --- diff --git a/lighty/README.md b/lighty/README.md index a88acbc58..e4c4d9884 100644 --- a/lighty/README.md +++ b/lighty/README.md @@ -8,21 +8,14 @@ This project starts [TransportPCE](https://git.opendaylight.org/gerrit/#/admin/p * Make sure you have proper [settings.xml](https://github.com/opendaylight/odlparent/blob/master/settings.xml) in your ``~/.m2`` directory. #### Before compiling Lighty-TransportPCE -Make sure upstream projects are compiled locally and stored in local ``~/.m2/repository``: -1. compile __transportpce/master__ +1. Make sure upstream projects are compiled locally and stored in local ``~/.m2/repository``: +2. compile __transportpce/silicon__ ``` -git clone https://git.opendaylight.org/gerrit/transportpce && (cd transportpce && curl -kLo `git rev-parse --git-dir`/hooks/commit-msg https://git.opendaylight.org/gerrit/tools/hooks/commit-msg; chmod +x `git rev-parse --git-dir`/hooks/commit-msg) +git clone -b stable/silicon https://git.opendaylight.org/gerrit/transportpce && (cd transportpce && curl -kLo `git rev-parse --git-dir`/hooks/commit-msg https://git.opendaylight.org/gerrit/tools/hooks/commit-msg; chmod +x `git rev-parse --git-dir`/hooks/commit-msg) cd transportpce ``` mvn clean install -s tests/odl_settings.xml -DskipTests -Dmaven.javadoc.skip=true -Dodlparent.spotbugs.skip -Dodlparent.checkstyle.skip ``` -2. compile __lighty-core/12.1.x__ -``` -git clone https://github.com/PantheonTechnologies/lighty-core.git -cd lighty-core -git checkout 12.1.x -mvn clean install -DskipTests -Dmaven.javadoc.skip=true -``` #### Compile Lighty-TransportPCE * Project is build using maven command: ``` @@ -32,8 +25,8 @@ mvn clean install -Dmaven.javadoc.skip=true * After project build is done, use binary package to run the TransportPCE controller. ``` cd target -unzip lighty-transportpce-12.1.0-SNAPSHOT-bin.zip -cd lighty-transportpce-12.1.0-SNAPSHOT +unzip tpce-bin.zip +cd tpce ./start-controller.sh ``` * The whole build process described here and in the previous section can be performed automatically by launching the script build.sh from lighty folder. diff --git a/lighty/pom.xml b/lighty/pom.xml index 3f7ecb116..d2bf948d3 100644 --- a/lighty/pom.xml +++ b/lighty/pom.xml @@ -11,7 +11,7 @@ io.lighty.core lighty-app-parent - 13.0.0 + 14.0.0