Add perltidy to pre-commit linters
[transportpce.git] / lighty / build.sh
index 43a4fb7769e5961865bf7d826af6e3a66072d35b..15b00b37cc8b5594b6bdd89c2be319dbae74b615 100755 (executable)
@@ -1,15 +1,8 @@
 #!/bin/sh
 
 cd $(dirname "$0")
-cd ..
-#mvn clean install -s tests/odl_settings.xml -DskipTests -Dmaven.javadoc.skip=true -Dodlparent.spotbugs.skip -Dodlparent.checkstyle.skip
-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
-cd ../lighty
-mvn clean install -Dmaven.javadoc.skip=true
-cd  target
-unzip lighty-transportpce-12.1.0-SNAPSHOT-bin.zip
-cd ..
-rm -rf ../lighty-core
+export JDK_JAVA_OPTIONS="--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED"
+# uncomment the following line when related artifacts are not avaible on mvn central yet
+./build_lighty_core.sh
+mvn clean install -B -U -q -Dmaven.javadoc.skip=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -s ../tests/odl_settings.xml -DskipTests
+unzip -q target/tpce-bin.zip -d target