Built on an Ubuntu 18.04 VM, using distro packages AFAICT:

 

Apache Maven 3.5.2

Maven home: /usr/share/maven

Java version: 10.0.2, vendor: Oracle Corporation

Java home: /usr/lib/jvm/java-11-openjdk-amd64

Default locale: en_AU, platform encoding: UTF-8

OS name: "linux", version: "4.15.0-36-generic", arch: "amd64", family: "unix"

 

I think that JDK is really a pre-11 release though, so will make sure I use a 
better source when I do the main laptop.

 

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by org.opengis.util.CodeListTest 
(file:/home/bradh/geotools-jdk11/modules/library/opengis/target/test-classes/) 
to field java.util.ArrayList.elementData

WARNING: Please consider reporting this to the maintainers of 
org.opengis.util.CodeListTest

WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations

WARNING: All illegal access operations will be denied in a future release

 

I tried switching up the target and source versions to 10 (instead of 1.8), 
along with upgrading the maven-compiler-plugin.

 

diff --git a/pom.xml b/pom.xml

index b30e4c25b0..2fa501e4e5 100644

--- a/pom.xml

+++ b/pom.xml

@@ -1412,7 +1412,7 @@

         <plugin>

           <groupId>org.apache.maven.plugins</groupId>

           <artifactId>maven-plugin-plugin</artifactId>

-          <version>3.4</version>

+          <version>3.5.2.</version>

         </plugin>

         <plugin>

           <groupId>com.coveo</groupId>

@@ -1469,10 +1469,10 @@

       <plugin>

         <groupId>org.apache.maven.plugins</groupId>

         <artifactId>maven-compiler-plugin</artifactId>

-        <version>3.1</version>

+        <version>3.8.0</version>

         <configuration>

-          <source>1.8</source>  <!-- The -source argument for the Java 
compiler. -->

-          <target>1.8</target>  <!-- The -target argument for the Java 
compiler. -->

+          <source>10</source>  <!-- The -source argument for the Java 
compiler. -->

+          <target>10</target>  <!-- The -target argument for the Java 
compiler. -->

           <debug>true</debug>   <!-- Whether to include debugging information. 
  -->

           <encoding>UTF-8</encoding> <!-- The -encoding argument for the Java 
compiler. -->

           <fork>${fork.javac}</fork>

 

That dies in:

 

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.8.0:testCompile 
(default-testCompile) on project gt-imagemosaic: Compilation failure

[ERROR] 
/home/bradh/geotools-jdk11/modules/plugin/imagemosaic/src/test/java/org/geotools/gce/imagemosaic/remote/RemoteImageInputStreamSPI.java:[19,22]
 error: package com.sun.imageio.spi is not visible

[ERROR]   (package com.sun.imageio.spi is declared in module java.desktop, 
which does not export it)

 

Which is as far as I can get on Friday night.

 

Brad

From: Nuno Oliveira <[email protected]> 
Sent: Friday, 19 October 2018 8:42 PM
To: Andrea Aime <[email protected]>; Geotools-Devel list 
<[email protected]>
Subject: Re: [Geotools-devel] JDK11 branch created

 

Builds on my machine with OpenJDK 11 with:

 

mvn clean install -T4 -Dall
 
Apache Maven 3.3.9
Maven home: /usr/share/maven
Java version: 11.0.1, vendor: Oracle Corporation
Java home: /home/nuno/applications/open-jdk-11.0.1
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-109-generic", arch: "amd64", family: "unix"

 

>$ ~/applications/open-jdk-11.0.1/bin/java --version
openjdk 11.0.1 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)

 

The result (NO online tests):

 

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:46 min (Wall Clock)
[INFO] Finished at: 2018-10-19T10:37:55+01:00
[INFO] Final Memory: 161M/1024M
[INFO] ------------------------------------------------------------------------

                   

Thank you for your work on this Andrea !

 

On Fri, 2018-10-19 at 09:33 +0200, Andrea Aime wrote:

Here, based on my initial work on having GeoTools build:

 

https://github.com/geotools/geotools/tree/jdk11

 

Right now it builds fine on my machine, but not on the build server, nor on 
Torben's machine.

They both look like local problems (font formatting in one case, locale in the 
other), whoever can

experience the issue you're best suited to look at it (so please try and build 
it with whatever JDK 11

you have locally, looks like there are various sources, OpenJDK, AdoptOpenJDK, 
Oracle just for starters,

but there are others).

 

Cheers

Andrea





==

GeoServer Professional Services from the experts! Visit  <http://goo.gl/it488V> 
http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf 
Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) 
phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549  
<http://www.geo-solutions.it> http://www.geo-solutions.it  
<http://twitter.com/geosolutions_it> http://twitter.com/geosolutions_it 
------------------------------------------------------- Con riferimento alla 
normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento 
generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza 
inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è 
un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo 
scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, 
ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene 
notizia. This email is intended only for the person or entity to which it is 
addressed and may contain information that is privileged, confidential or 
otherwise protected from disclosure. We remind that - as provided by European 
Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or 
the information herein by anyone other than the intended recipient is 
prohibited. If you have received this email by mistake, please notify us 
immediately by telephone or e-mail. 

_______________________________________________
GeoTools-Devel mailing list
[email protected] 
<mailto:[email protected]> 
https://lists.sourceforge.net/lists/listinfo/geotools-devel

_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to