Errors building jmc 7.1.0-SNAPSHOT
Jie Kang
jkang at redhat.com
Wed Aug 14 14:21:28 UTC 2019
On Tue, Aug 13, 2019 at 10:48 PM <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
Hey Andrew,
I tried running it this morning and when I examined the results of
p2:site against my pre-existing jars, they weren't different. When I
continued the build process, building core, starting the Jetty and
then building the root, I did not run into any issues. Does continuing
the build process work for you as well? For what it's worth, I was on
revision 527d408d2a4e
Regards,
More information about the jmc-dev
mailing list