Errors building jmc 7.1.0-SNAPSHOT

Marcus Hirt marcus.hirt at datadoghq.com
Wed Aug 14 15:40:12 UTC 2019


Hi there,

There is no trick - these build errors and warnings for the p2 repo are
known and an effect of build changes related to pulling Java FX as a
third-party dependency (not expecting Java FX to be part of the JDK, like
it used to be in Oracle JDK 8). We haven't looked into if they can be
solved in a good way (Guru Hb would be the guy to talk to), but they do not
affect the build.

Kind regards,
Marcus

On Wed, Aug 14, 2019 at 4:48 AM <am at topazdevelopment.com> wrote:

> I was able to build JMC from source in the past.  Now doing this:
>
> $:/jmc-c56816b25c99/releng/third-party$ mvn -v
> Apache Maven 3.6.0
> Maven home: /usr/share/maven
> Java version: 1.8.0_222, vendor: Amazon.com Inc., runtime: /opt/jdk-8/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "4.15.0-54-generic", arch: "amd64", family:
> "unix"
>
> /jmc-c56816b25c99/releng/third-party$ mvn p2:site
>
> ...generates many errors like
>
> [info] Executing Bundler:
> [info]   [EXEC] javafx-media-11.0.1-mac.jar
> [warn]  : Imports that lack version ranges: [com.sun.glass.ui,
> com.sun.glass.utils, com.sun.javafx.collections, com.sun.javafx.geom,
> com.sun.javafx
> .geom.transform, com.sun.javafx.media, com.sun.javafx.scene,
> com.sun.javafx.scene.media, com.sun.javafx.sg.prism, com.sun.javafx.tk,
> com.sun.javafx
> .util, com.sun.media.jfxmedia, com.sun.media.jfxmedia.control,
> com.sun.media.jfxmedia.effects, com.sun.media.jfxmedia.events,
> com.sun.media.jfxmedi
> a.locator, com.sun.media.jfxmedia.logging, com.sun.media.jfxmedia.track,
> com.sun.media.jfxmediaimpl, com.sun.media.jfxmediaimpl.platform, com.sun.m
> edia.jfxmediaimpl.platform.gstreamer,
> com.sun.media.jfxmediaimpl.platform.ios,
> com.sun.media.jfxmediaimpl.platform.java, com.sun.media.jfxmediaimpl
> .platform.osx, com.sun.prism, javafx.application, javafx.beans,
> javafx.beans.binding, javafx.beans.property, javafx.beans.value,
> javafx.collections
> , javafx.event, javafx.geometry, javafx.scene, javafx.scene.image,
> javafx.scene.media, javafx.util]
> [error]  : Exception: java.lang.ArrayIndexOutOfBoundsException
> [error]  : Invalid class file module-info.class
> (java.lang.ArrayIndexOutOfBoundsException)
> [info] Bundling Artifact org.openjfx:javafx-media:jar:win:11.0.1
> [warn] BND instructions are NOT applied to the transitive dependencies
> of  org.openjfx:javafx-media:jar:win:11.0.1
>
> Followed by thread dumps.  However mvn still reports BUILD SUCCESS
>
> Looks like I get the same result even when
> - using an older version of maven
> - building jmc-c56816b25c99 or jmc-5e0a199762b6 from a few months ago
> (used to work)
> - deleting maven's .m2 cache
> - using Windows or Linux
> - using different JDK versions
>
> I assume maven must be pulling down something newer than it was a couple
> months ago.
> It sounds related to this
>
> https://stackoverflow.com/questions/50530927/maven-bundle-plugin-fails-with-invalid-class-file-module-info-class
>
>
> What's the trick here?  Thanks! -Andrew
>


More information about the jmc-dev mailing list