You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by Marshall Schor <ms...@schor.com> on 2018/10/10 21:35:35 UTC

lots of issues running uimaj build on java 11

seems the maven-compiler-plugin needs version 3.8.0, and some new configuration:

https://stackoverflow.com/questions/49398894/unable-to-compile-simple-java-10-project-with-maven/51586202#51586202

When updated to that, build of uimaj-parent fails with api incompatibility...
investigating.


Re: lots of issues running uimaj build on java 11

Posted by Richard Eckart de Castilho <re...@apache.org>.
Nice work! :)

-- Richard

> On 12. Oct 2018, at 17:04, Marshall Schor <ms...@schor.com> wrote:
> 
> I've gotten uimaj (v2) to build using Java 11, with a setting of
> maven-compiler-source / target of "8".
> I've run the "document analyzer" gui, using Java 11, and it seems to at least
> launch OK.
> 
> One quirk I haven't found a way to get around: the build reports a
> false-positive javadoc warning message
> ... JCas.java:270: warning: @return has already been specified
> 
> Searching the web shows this is a known issue, but I didn't find any workarounds.
> 
> I'll be checking in mods soon... -Marshall


Re: lots of issues running uimaj build on java 11

Posted by Marshall Schor <ms...@schor.com>.
I've gotten uimaj (v2) to build using Java 11, with a setting of
maven-compiler-source / target of "8".
I've run the "document analyzer" gui, using Java 11, and it seems to at least
launch OK.

One quirk I haven't found a way to get around: the build reports a
false-positive javadoc warning message
... JCas.java:270: warning: @return has already been specified

Searching the web shows this is a known issue, but I didn't find any workarounds.

I'll be checking in mods soon... -Marshall

On 10/10/2018 5:35 PM, Marshall Schor wrote:
> seems the maven-compiler-plugin needs version 3.8.0, and some new configuration:
>
> https://stackoverflow.com/questions/49398894/unable-to-compile-simple-java-10-project-with-maven/51586202#51586202
>
> When updated to that, build of uimaj-parent fails with api incompatibility...
> investigating.
>
>

lots of issues running uimaj build on java 11

Posted by Marshall Schor <sc...@apache.org>.
fixed some issues, beginning to get some things to build. 

Java 11 has significant changes from java 9 / 10, both of which are obsolete
(Java 11 has LTS (long term support) commitment).
I'm going to change the profile from id=java9plus to java11.

One change needed was to remove from the maven-compiler-plugin, the
configuration to add compiler-args of --add-module java.xml.bind, because as of
Java 11, that is no longer a module in the JVM package (was removed).

-Marshall