Simple Maven example fails with unusual error

Paul Ray Russell paulrussell70 at gmail.com
Sun Jul 22 17:17:49 UTC 2018


Hi Mark,

Are you using the v. latest version maven compiler in your POM?

Best,
Paul

On Sun, 22 Jul 2018 at 13:00, <openjfx-dev-request at openjdk.java.net> wrote:

> Send openjfx-dev mailing list submissions to
>         openjfx-dev at openjdk.java.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://mail.openjdk.java.net/mailman/listinfo/openjfx-dev
> or, via email, send a message with subject or body 'help' to
>         openjfx-dev-request at openjdk.java.net
>
> You can reach the person managing the list at
>         openjfx-dev-owner at openjdk.java.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of openjfx-dev digest..."
>
>
> Today's Topics:
>
>    1. Simple Maven example fails with unusual error (Mark Raynsford)
>    2. Re: Simple Maven example fails with unusual error (Mark Raynsford)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 21 Jul 2018 15:55:15 +0100
> From: Mark Raynsford <org.openjdk at io7m.com>
> To: openjfx-dev at openjdk.java.net
> Subject: Simple Maven example fails with unusual error
> Message-ID: <20180721155515.7d471cad at almond.int.arc7.info>
> Content-Type: text/plain; charset=US-ASCII
>
> Hello!
>
> I've finally gotten around to trying out the artifacts that are
> currently on Maven Central.
>
> I put together a trivial example that does nothing but start up
> OpenJFX:
>
>   https://github.com/io7m/javafx-example-20180721
>
> It works, but only if I take the somewhat bizarre step of excluding the
> non-platform-specific artifacts from the build. Note the <exclusions>
> elements in the Maven dependencies.
>
> The error I get if I don't do this:
>
> java.lang.module.FindException: Unable to derive module descriptor
> for
> /home/rm/var/maven/org/openjfx/javafx-graphics/11-ea+19/javafx-graphics-11-ea+19.jar
> Caused by: java.lang.IllegalArgumentException:
> javafx.graphics.11.ea.19: Invalid module name: '11' is not a Java
> identifier
>
> Is this a known issue?
>
> --
> Mark Raynsford | http://www.io7m.com
>
>
>
> ------------------------------
>
> Message: 2
> Date: Sat, 21 Jul 2018 16:07:45 +0100
> From: Mark Raynsford <org.openjdk at io7m.com>
> To: openjfx-dev at openjdk.java.net
> Subject: Re: Simple Maven example fails with unusual error
> Message-ID: <20180721160745.61862755 at almond.int.arc7.info>
> Content-Type: text/plain; charset=US-ASCII
>
> On 2018-07-21T15:55:15 +0100
> Mark Raynsford <org.openjdk at io7m.com> wrote:
> >
> > Is this a known issue?
>
> Forgot to mention:
>
> $ java -version
> openjdk version "10.0.1" 2018-04-17
> OpenJDK Runtime Environment (build 10.0.1+10)
> OpenJDK 64-Bit Server VM (build 10.0.1+10, mixed mode)
>
> $ uname -a
> Linux almond.int.arc7.info 4.17.5-1-ARCH #1 SMP PREEMPT Sun Jul 8
> 17:27:31 UTC 2018 x86_64 GNU/Linux
>
> $ mvn --version
> Apache Maven 3.5.2 (NON-CANONICAL_2017-10-25T13:09:52+03:00_root;
> 2017-10-25T11:09:52+01:00) Maven home: /opt/maven
> Java version: 10.0.1, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-10-openjdk
> Default locale: en_GB, platform encoding: UTF-8
> OS name: "linux", version: "4.17.5-1-arch", arch: "amd64", family:
> "unix"
>
>
> --
> Mark Raynsford | http://www.io7m.com
>
>
>
> End of openjfx-dev Digest, Vol 80, Issue 32
> *******************************************
>


More information about the openjfx-dev mailing list