Skip to content

Commit

Permalink
Merge pull request #124 from OpenLiberty/revert-123-staging
Browse files Browse the repository at this point in the history
Revert "Merge staging to prod - Version update (#122)"
  • Loading branch information
gkwan-ibm authored Jun 4, 2021
2 parents f8706e1 + 10faaaf commit aeb4f8f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
6 changes: 3 additions & 3 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2017, 2021 IBM Corporation and others.
// Copyright (c) 2017, 2020 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/
Expand All @@ -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']
:page-tags: ['Maven', 'Getting Started']
: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
Expand Down Expand Up @@ -244,7 +244,7 @@ include::finish/src/main/liberty/config/server.xml[]
== Running the application

[role='command']
include::{common-includes}/devmode-lmp33-start.adoc[]
include::{common-includes}/devmode-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?`.

Expand Down
8 changes: 4 additions & 4 deletions finish/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<dependency>
<groupId>org.eclipse.microprofile</groupId>
<artifactId>microprofile</artifactId>
<version>4.0.1</version>
<version>3.3</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
Expand All @@ -65,7 +65,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.7.1</version>
<version>5.6.2</version>
<!-- tag::test2[] -->
<scope>test</scope>
<!-- end::test2[] -->
Expand All @@ -81,13 +81,13 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.1</version>
<version>3.2.3</version>
</plugin>
<!-- tag::liberty-maven-plugin[] -->
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>3.3.4</version>
<version>3.2.3</version>
<!-- tag::configuration[] -->
<configuration>
<!-- tag::serverName[] -->
Expand Down
7 changes: 4 additions & 3 deletions scripts/dailyBuild.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#!/bin/bash
while getopts t:d: flag;
while getopts t:d:b:u: flag;
do
case "${flag}" in
t) DATE="${OPTARG}";;
d) DRIVER="${OPTARG}";;
*) echo "Invalid option";;
b) BUILD="${OPTARG}";;
u) DOCKER_USERNAME="${OPTARG}";;
esac
done

sed -i "\#<artifactId>liberty-maven-plugin</artifactId>#,\#<configuration>#c<artifactId>liberty-maven-plugin</artifactId><version>3.3.4</version><configuration><install><runtimeUrl>https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly/$DATE/$DRIVER</runtimeUrl></install>" pom.xml
sed -i "\#<artifactId>liberty-maven-plugin</artifactId>#,\#<configuration>#c<artifactId>liberty-maven-plugin</artifactId><version>3.2.3</version><configuration><install><runtimeUrl>https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly/"$DATE"/"$DRIVER"</runtimeUrl></install>" pom.xml
cat pom.xml

../scripts/testApp.sh
6 changes: 1 addition & 5 deletions scripts/testApp.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/bash
set -euxo pipefail

# LMP 3.0+ goals are listed here: https://github.com/OpenLiberty/ci.maven#goals
Expand All @@ -8,10 +7,7 @@ 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 -Dhttp.keepAlive=false \
-Dmaven.wagon.http.pool=false \
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 \
-q clean package liberty:create liberty:install-feature liberty:deploy
mvn -q clean package liberty:create liberty:install-feature liberty:deploy


## Run the tests
Expand Down

0 comments on commit aeb4f8f

Please sign in to comment.