Closed yeekangc closed 4 years ago
working on
Note: liberty:run has issue to run loose application
Issues for dev-mode:
Getting Started guide
mvn package liberty:dev -DverifyTimeout=120
liberty:run
, liberty:start
, and liberty:package
should install appRest Intro guide
Verify Liberty Maven Plugin (LMP) 3.0.2-SNAPSHOT with OL 19.0.0.10 GM Candidate
Preparation:
rm ~/.m2/repository/io/openliberty
settings.xml
to your .m2
directorymvn install:install-file -Dfile=openliberty-kernel-19.0.0.10-cl191020191002-0300.zip -DgroupId=io.openliberty -DartifactId=openliberty-kernel -Dversion=19.0.0.10 -Dpackaging=zip
jar -xvf <DOWNLOADPATH>\openliberty-MavenArtifact-19.0.0.10-201910020424.zip
git clone https://github.com/OpenLiberty/guide-getting-started.git -b qa
git clone https://github.com/OpenLiberty/guide-rest-intro.git -b qa-devmode
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>3.0.2-SNAPSHOT</version>
</plugin>
Verification:
liberty-maven-plugin:3.0.2-SNAPSHOT
and 19.0.0.10
are used (being shown in the console)@yeekangc would you review dev mode? for Getting Started http://lgdev1.fyre.ibm.com:4060/guides/getting-started.html for Rest Intro http://lgdev1.fyre.ibm.com:4060/guides/rest-intro.html
Linux test info:
[INFO] --- liberty-maven-plugin:3.0.2-SNAPSHOT:dev (default-cli) @ guide-getting-started ---
[INFO] Launching defaultServer (Open Liberty 19.0.0.10/wlp-1.0.33.cl191020191002-0300) on Eclipse OpenJ9 VM, version 11.0.4+11 (en_US)
java -version
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.15.1, JRE 11 Linux amd64-64-Bit Compressed References 20190717_286 (JIT enabled, AOT enabled)
OpenJ9 - 0f66c6431
OMR - ec782f26
JCL - fa49279450 based on jdk-11.0.4+11)
The release jdk11.0.4 above gave the segmentation error when add a feature then add a
[INFO] Unhandled exception
[INFO] Type=Segmentation error vmState=0x00040000
The openj9 nightly build (below) was working:
java -version
openjdk version "11.0.5" 2019-10-15
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.5+9)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.17.0-m2, JRE 11 Linux amd64-64-Bit Compressed References 20191007_350 (JIT enabled, AOT enabled)
OpenJ9 - 23b8b11b4
OMR - 20db4fbc
JCL - c210c1e1a3 based on jdk-11.0.5+9)
Regarding core dump issue OpenLiberty/ci.maven#589:
Other verifications:
MAC Test info:
[INFO] Launching defaultServer (Open Liberty 19.0.0.10/wlp-1.0.33.cl191020191002-0300) on Eclipse OpenJ9 VM, version 11.0.4+11 (en_CA)
[INFO] --- liberty-maven-plugin:3.0.2-SNAPSHOT:dev (default-cli) @ guide-rest-intro ---
[INFO] Launching defaultServer (Open Liberty 19.0.0.10/wlp-1.0.33.cl191020191002-0300) on Eclipse OpenJ9 VM, version 11.0.4+11 (en_CA)
[INFO] --- liberty-maven-plugin:3.0.2-SNAPSHOT:dev (default-cli) @ guide-getting-started ---
Everything works now.
Verify Liberty Maven Plugin (LMP) 3.0.2-SNAPSHOT with OL 19.0.0.10 GM Candidate
On Windows:
[INFO] --- liberty-maven-plugin:3.0.2-SNAPSHOT:dev (default-cli) @ guide-getting-started ---
[INFO] CWWKM2102I: Using artifact based assembly archive : io.openliberty:openliberty-kernel:null:19.0.0.10:zip.
java -version
produces:
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.15.1, JRE 11 Windows 10 amd64-64-Bit Compressed References 20190717_282 (JIT enabled, AOT enabled)
OpenJ9 - 0f66c6431
OMR - ec782f26
JCL - fa49279450 based on jdk-11.0.4+11)
End-to-end completed, everything works as expected.
[INFO] --- liberty-maven-plugin:3.0.1:dev (default-cli) @ guide-rest-intro ---
[INFO] CWWKM2102I: Using artifact based assembly archive : io.openliberty:openliberty-kernel:null:19.0.0.10:zip.
java -version
produces:
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.15.1, JRE 11 Windows 10 amd64-64-Bit Compressed References 20190717_282 (JIT enabled, AOT enabled)
OpenJ9 - 0f66c6431
OMR - ec782f26
JCL - fa49279450 based on jdk-11.0.4+11)
End-to-end completed, everything works as expected.
Verify Liberty Maven Plugin (LMP) 3.1-SNAPSHOT with OL 19.0.0.10 GM Candidate
Preparation:
rm ~/.m2/repository/io/openliberty
settings.xml
to your .m2
directorymvn install:install-file -Dfile=openliberty-kernel-19.0.0.10-cl191020191002-0300.zip -DgroupId=io.openliberty -DartifactId=openliberty-kernel -Dversion=19.0.0.10 -Dpackaging=zip
jar -xvf <DOWNLOADPATH>\openliberty-MavenArtifact-19.0.0.10-201910020424.zip
git clone https://github.com/OpenLiberty/guide-getting-started.git -b qa
git clone https://github.com/OpenLiberty/guide-rest-intro.git -b qa
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>3.1-SNAPSHOT</version>
</plugin>
Verification:
liberty-maven-plugin:3.1-SNAPSHOT
and 19.0.0.10
are used (being shown in the console)Verify the published Liberty Maven Plugin (LMP) 3.1 with OL 19.0.0.10 GM
Preparation:
rm -fr ~/.m2/repository/io/openliberty
rm ~/.m2/settings.xml
git clone https://github.com/OpenLiberty/guide-getting-started.git -b qa
git clone https://github.com/OpenLiberty/guide-rest-intro.git -b qa
Verification:
liberty-maven-plugin:3.1
and 19.0.0.10
are used (being shown in the console)Should consider having the instructions for launching into dev mode (development mode) as a common include under "Getting Started" as a sub-section after "Try what you'll build". Should offer proper context/intro to dev mode there too.
Ref https://github.com/OpenLiberty/guides-common/issues/300#issuecomment-539717496, I filed issues and made comments where appropriate with my feedback. I am fine for us to move forward to push out the updates. ID reviews will be helpful.
Verifying OpenJ9 JDK11 latest nightly, Rest Intro, linux:
Ran end-to-end on qa, looks good to me
19.0.0.10 GM:
[INFO] Launching defaultServer (Open Liberty 19.0.0.10/wlp-1.0.33.cl191020191002-0300) on Eclipse OpenJ9 VM, version 11.0.5+9-201910101810 (en_US)
3.1-SNAPSHOT:
[INFO] --- liberty-maven-plugin:3.1-SNAPSHOT:dev (default-cli) @ guide-rest-intro ---
OpenJ9 JDK11 latest nightly:
java -version
openjdk version "11.0.5" 2019-10-15
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.5+9-201910101810)
Eclipse OpenJ9 VM AdoptOpenJDK (build master-0739a278d, JRE 11 Linux amd64-64-Bit .
Compressed References 20191010_353 (JIT enabled, AOT enabled)
OpenJ9 - 0739a278d
OMR - 34bbcd21
JCL - 642d34017c based on jdk-11.0.5+9)
Getting Started
From the console:
[INFO] --- liberty-maven-plugin:3.1-SNAPSHOT:dev (default-cli) @ guide-getting-started ---
[INFO] CWWKM2102I: Using artifact based assembly archive : io.openliberty:openliberty-kernel:null:19.0.0.10:zip.
messages.log
:
product = Open Liberty 19.0.0.10 (wlp-1.0.33.cl191020191002-0300)
java.home = C:\Program Files\AdoptOpenJDK\jdk-11.0.4.11-openj9
java.version = 11.0.4
java.runtime = OpenJDK Runtime Environment (11.0.4+11)
os = Windows 10 (10.0; amd64) (en_CA)
~Rest Intro~
~⚠️ Error when running mvn liberty:run
in the /finish
directory:~
[INFO] [ERROR ] CWWKF0001E: A feature definition could not be found for jaxrs-2.1
~Similar to this issue.~
~Environment Details:~
Didn't realize I wasn't supposed to test this guide, ignore this.
Getting Started
[INFO] --- liberty-maven-plugin:3.1-SNAPSHOT:dev (default-cli) @ guide-getting-started ---
[INFO] CWWKM2102I: Using artifact based assembly archive : io.openliberty:openliberty-kernel:null:19.0.0.10:zip.
product = Open Liberty 19.0.0.10 (wlp-1.0.33.cl191020191002-0300)
java.home = /Library/Java/JavaVirtualMachines/adoptopenjdk-11.0.4.jdk/Contents/Home
java.version = 11.0.4
java.runtime = OpenJDK Runtime Environment (11.0.4+11)
os = Mac OS X (10.14.6; x86_64) (en_CA)
rest-intro - OpenJ9 - JDK11 - Mac
Console output:
[INFO] --- liberty-maven-plugin:3.1-SNAPSHOT:run (default-cli) @ guide-rest-intro ---
[INFO] Launching defaultServer (Open Liberty 19.0.0.10/wlp-1.0.33.cl191020191002-0300) on Eclipse OpenJ9 VM, version 11.0.4+11 (en_CA)
Version output
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.15.1, JRE 11 Mac OS X amd64-64-Bit Compressed References 20190823_327 (JIT enabled, AOT enabled)
OpenJ9 - 0f66c6431
OMR - ec782f26
JCL - fa49279450 based on jdk-11.0.4+11)```
Getting Started: Hotspot JDK 11 latest release, Linux
ran end-to-end on qa
console output:
[INFO] --- liberty-maven-plugin:3.1:run (default-cli) @ guide-getting-started ---
[INFO] --- liberty-maven-plugin:3.1:dev (default-cli) @ guide-getting-started ---
[INFO] Launching defaultServer (Open Liberty 19.0.0.10/wlp-1.0.33.cl191020191002-0300) on OpenJDK 64-Bit Server VM, version 11.0.4+11 (en_US)
[INFO] CWWKM2102I: Using artifact based assembly archive : io.openliberty:openliberty-kernel:null:19.0.0.10:zip.
java version:
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.4+11, mixed mode)
Rest Intro: OpenJ9 JDK11 latest nightly, Linux
ran end-to-end on qa
console output:
[INFO] --- liberty-maven-plugin:3.1:run (default-cli) @ guide-rest-intro ---
[INFO] --- liberty-maven-plugin:3.1:dev (default-cli) @ guide-rest-intro ---
[INFO] CWWKM2102I: Using artifact based assembly archive : io.openliberty:openliberty-kernel:null:19.0.0.10:zip.
[INFO] Launching defaultServer (Open Liberty 19.0.0.10/wlp-1.0.33.cl191020191002-0300) on Eclipse OpenJ9 VM, version 11.0.5+9-201910101810 (en_US)
java version:
openjdk version "11.0.5" 2019-10-15
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.5+9-201910101810)
Eclipse OpenJ9 VM AdoptOpenJDK (build master-0739a278d, JRE 11 Linux amd64-64-Bit
Compressed References 20191010_353 (JIT enabled, AOT enabled)
OpenJ9 - 0739a278d
OMR - 34bbcd21
JCL - 642d34017c based on jdk-11.0.5+9)
Rest Intro:
Console output:
[INFO] --- liberty-maven-plugin:3.1:dev (default-cli) @ guide-rest-intro ---
[INFO] CWWKM2102I: Using artifact based assembly archive : io.openliberty:openliberty-kernel:null:19.0.0.10:zip.
java -version
output:
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.15.1, JRE 11 Windows 10 amd64-64-Bit Compressed References 20190717_282 (JIT enabled, AOT enabled)
OpenJ9 - 0f66c6431
OMR - ec782f26
JCL - fa49279450 based on jdk-11.0.4+11)
End-to-end completed and everything works as expected.
Getting Started:
Console output:
[INFO] --- liberty-maven-plugin:3.1:dev (default-cli) @ guide-getting-started ---
[INFO] CWWKM2102I: Using artifact based assembly archive : io.openliberty:openliberty-kernel:null:19.0.0.10:zip.
java -version
output:
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.4+11, mixed mode)
End-to-end completed and everything works as expected.
[INFO] --- liberty-maven-plugin:3.1:run (default-cli) @ guide-rest-intro ---
[INFO] --- liberty-maven-plugin:3.1:dev (default-cli) @ guide-rest-intro ---
[INFO] Launching defaultServer (Open Liberty 19.0.0.10/wlp-1.0.33.cl191020191002-0300) on Eclipse OpenJ9 VM, version 11.0.4+11 (en_CA)
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.15.1, JRE 11 Mac OS X amd64-64-Bit Compressed References 20190823_327 (JIT enabled, AOT enabled)
OpenJ9 - 0f66c6431
OMR - ec782f26
JCL - fa49279450 based on jdk-11.0.4+11)
[INFO] --- liberty-maven-plugin:3.1:run (default-cli) @ guide-getting-started ---
[INFO] --- liberty-maven-plugin:3.1:dev (default-cli) @ guide-getting-started ---
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-b10)
Eclipse OpenJ9 VM (build openj9-0.15.1, JRE 1.8.0 Mac OS X amd64-64-Bit Compressed References 20190717_298 (JIT enabled, AOT enabled)
OpenJ9 - 0f66c6431
OMR - ec782f26
JCL - f147086df1 based on jdk8u222-b10)
When using ctl-c
to close the service, the following error appears. Exiting using liberty:stop works fine.
[ERROR] An error occurred while starting the server: CWWKM2002E: Failed to invoke [/Users/jonathan.xueibm.com/Github/guide-rest-intro/finish/target/liberty/wlp/bin/server, debug, defaultServer]. RC= 130 but expected=[0].
org.apache.tools.ant.BuildException: CWWKM2002E: Failed to invoke [/Users/jonathan.xueibm.com/Github/guide-rest-intro/finish/target/liberty/wlp/bin/server, debug, defaultServer]. RC= 130 but expected=[0].
[ERROR] An error occurred while starting the server: CWWKM2002E: Failed to invoke [/Users/jonathan.xueibm.com/Github/guide-getting-started/start/target/liberty/wlp/bin/server, debug, defaultServer]. RC= 255 but expected=[0].
org.apache.tools.ant.BuildException: CWWKM2002E: Failed to invoke [/Users/jonathan.xueibm.com/Github/guide-getting-started/start/target/liberty/wlp/bin/server, debug, defaultServer]. RC= 255 but expected=[0].
EDIT: There is an issue for this problem here https://github.com/OpenLiberty/ci.maven/issues/661
completed expect the following guides which will be handled by individual issues
FYI, @ericglau @kathrynkodama @proubatsis.
Plan:
Required changes:
*Test
class to*IT
mvn install
cannot be used to verify anymore