9 #install maven and JDK11 on the Gate since they are not there by default
10 which mvn >/dev/null || ./installMavenCentOS.sh
13 #patch OLM constant to speed up tests, unnecessary for PCE tests
14 sed -i'_' 's@=.*//#FUNCTESTVAL=@=@g' olm/src/main/java/org/opendaylight/transportpce/olm/util/OlmUtils.java
15 if [ "$USE_LIGHTY" != "True" ]; then
16 for suffix in 121 221 71; do
18 cp -r karaf "karaf$suffix"
22 #build controller, source JDK_JAVA_OPTIONS to remove illegal reflective acces warnings introduced by Java11
23 . "$current_dir"/reflectwarn.sh
24 mvn clean install -B -q -s tests/odl_settings.xml -DskipTests -Dmaven.javadoc.skip=true -Dodlparent.spotbugs.skip -Dodlparent.checkstyle.skip
26 mv olm/src/main/java/org/opendaylight/transportpce/olm/util/OlmUtils.java_ olm/src/main/java/org/opendaylight/transportpce/olm/util/OlmUtils.java
28 #patch Karaf exec for the same reason at runtime and also to have the possibility to use alternative ports
29 ./karaf/target/assembly/ressources/post_install_for_tests.sh
31 #build Lighty if needed
32 if [ "$USE_LIGHTY" = "True" ]; then