[JIRA] (JENKINS-52024) Can't compile/test under Java 10/11 with mvn

2 views
Skip to first unread message

o.v.nenashev@gmail.com (JIRA)

unread,
Sep 20, 2018, 8:12:02 PM9/20/18
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
 
Jenkins / Bug JENKINS-52024
Can't compile/test under Java 10/11 with mvn
Change By: Oleg Nenashev
Summary: Can't compile/test under Java 10 /11 with mvn
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

o.v.nenashev@gmail.com (JIRA)

unread,
Sep 20, 2018, 8:12:02 PM9/20/18
to jenkinsc...@googlegroups.com
Oleg Nenashev commented on Bug JENKINS-52024
 
Re: Can't compile/test under Java 10/11 with mvn

Sam Van Oort I actually compile on Java 11 so my mileage may vary (spoiler: it hurts)

dbeck@cloudbees.com (JIRA)

unread,
Sep 26, 2018, 4:52:05 AM9/26/18
to jenkinsc...@googlegroups.com
Daniel Beck updated Bug JENKINS-52024
 

Addressed in 2.143.

Change By: Daniel Beck
Status: In Review Resolved
Resolution: Fixed

o.v.nenashev@gmail.com (JIRA)

unread,
Oct 3, 2018, 5:57:16 PM10/3/18
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
Change By: Oleg Nenashev
Labels: java10 java10_hackathon java11

mark.earl.waite@gmail.com (JIRA)

unread,
Mar 10, 2019, 9:24:01 PM3/10/19
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-52024
 
Re: Can't compile/test under Java 10/11 with mvn

Solution in my case (and I believe the general case) to compile with Java 11 needs to use Jenkins version 2.164 or later (slightly older versions can compile with Java 11, Jenkins 2.150 cannot compile with Java 11).

My command line to compile with Java 11 was:

$ java -version
openjdk version "11.0.2" 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
$ mvn --version
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T18:41:47Z)
Maven home: /home/jagent/tools/apache-maven-3.6.0
Java version: 11.0.2, vendor: Oracle Corporation, runtime: /mnt/xvdba/home/jagent/tools/jdk-11.0.2
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-754.6.3.el6.x86_64", arch: "amd64", family: "unix"
$ mvn -Djenkins.version=2.164 clean install

bmathus+ossjira@cloudbees.com (JIRA)

unread,
Mar 5, 2020, 12:37:03 PM3/5/20
to jenkinsc...@googlegroups.com
Baptiste Mathus updated an issue
 
Change By: Baptiste Mathus
Released As: Jenkins 2.143
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages