From 8967d57b92cd854f1b4aec2a1fa09562be1c4ea8 Mon Sep 17 00:00:00 2001 From: Gilbert Kwan Date: Mon, 31 May 2021 09:15:01 -0400 Subject: [PATCH] Version update (#122) * update versions * fixed linting issues * fixed linting issues Co-authored-by: Rutav Shah --- README.adoc | 6 +++--- finish/pom.xml | 8 ++++---- scripts/dailyBuild.sh | 7 +++---- scripts/testApp.sh | 6 +++++- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/README.adoc b/README.adoc index 3209e12..3370e5e 100644 --- a/README.adoc +++ b/README.adoc @@ -1,4 +1,4 @@ -// Copyright (c) 2017, 2020 IBM Corporation and others. +// Copyright (c) 2017, 2021 IBM Corporation and others. // Licensed under Creative Commons Attribution-NoDerivatives // 4.0 International (CC BY-ND 4.0) // https://creativecommons.org/licenses/by-nd/4.0/ @@ -15,7 +15,7 @@ :page-essential-order: 3 :page-description: Learn how to build and test a simple web application using Maven and Open Liberty :page-related-guides: ['maven-multimodules', 'gradle-intro'] -:page-tags: ['Maven', 'Getting Started'] +:page-tags: ['Maven'] :page-permalink: /guides/{projectid} :common-includes: https://raw.githubusercontent.com/OpenLiberty/guides-common/master :page-seo-title: Building and testing a Java web application with Maven and Open Liberty @@ -244,7 +244,7 @@ include::finish/src/main/liberty/config/server.xml[] == Running the application [role='command'] -include::{common-includes}/devmode-start.adoc[] +include::{common-includes}/devmode-lmp33-start.adoc[] Navigate your browser to the http://localhost:9080/ServletSample/servlet[^] URL to access the application. The servlet returns a simple response of `Hello! How are you today?`. diff --git a/finish/pom.xml b/finish/pom.xml index 32d6ef7..fddff0e 100644 --- a/finish/pom.xml +++ b/finish/pom.xml @@ -46,7 +46,7 @@ org.eclipse.microprofile microprofile - 3.3 + 4.0.1 pom provided @@ -65,7 +65,7 @@ org.junit.jupiter junit-jupiter - 5.6.2 + 5.7.1 test @@ -81,13 +81,13 @@ org.apache.maven.plugins maven-war-plugin - 3.2.3 + 3.3.1 io.openliberty.tools liberty-maven-plugin - 3.2.3 + 3.3.4 diff --git a/scripts/dailyBuild.sh b/scripts/dailyBuild.sh index 86c29f6..196135d 100755 --- a/scripts/dailyBuild.sh +++ b/scripts/dailyBuild.sh @@ -1,15 +1,14 @@ #!/bin/bash -while getopts t:d:b:u: flag; +while getopts t:d: flag; do case "${flag}" in t) DATE="${OPTARG}";; d) DRIVER="${OPTARG}";; - b) BUILD="${OPTARG}";; - u) DOCKER_USERNAME="${OPTARG}";; + *) echo "Invalid option";; esac done -sed -i "\#liberty-maven-plugin#,\##cliberty-maven-plugin3.2.3https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly/"$DATE"/"$DRIVER"" pom.xml +sed -i "\#liberty-maven-plugin#,\##cliberty-maven-plugin3.3.4https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly/$DATE/$DRIVER" pom.xml cat pom.xml ../scripts/testApp.sh diff --git a/scripts/testApp.sh b/scripts/testApp.sh index f755c2f..b1910d0 100755 --- a/scripts/testApp.sh +++ b/scripts/testApp.sh @@ -1,3 +1,4 @@ +#!/bin/bash set -euxo pipefail # LMP 3.0+ goals are listed here: https://github.com/OpenLiberty/ci.maven#goals @@ -7,7 +8,10 @@ set -euxo pipefail # liberty:create - Create a Liberty server. # liberty:install-feature - Install a feature packaged as a Subsystem Archive (esa) to the Liberty runtime. # liberty:deploy - Copy applications to the Liberty server's dropins or apps directory. -mvn -q clean package liberty:create liberty:install-feature liberty:deploy +mvn -Dhttp.keepAlive=false \ + -Dmaven.wagon.http.pool=false \ + -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 \ + -q clean package liberty:create liberty:install-feature liberty:deploy ## Run the tests