maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jiri Ondrusek (Jira)" <>
Subject [jira] [Commented] (SUREFIRE-1809) Differences between Oracle JDK and AdoptOpenJDK caused by JPMS
Date Wed, 01 Jul 2020 15:15:00 GMT


Jiri Ondrusek commented on SUREFIRE-1809:

I'll try to add some logs tomorrow.
But shortly:
M-5: oracle jdk in native mode - was successful week ago (but it is failing now - don't now
why, I'm using the same revision - with the same error as adopt jdk))
M-5: adoptJdk in native mode fails with `java.lang.ClassNotFoundException: org.apache.camel.quarkus.main.CamelMainRoutesCollector`
M-6-SNAPSHOT: oracle jdk in native mode works
M-6-SNAPSHOT: adoptjdk in native mode works

for both cases with M-5 there is a workaround to use  `<useModulePath>false</useModulePath>`

> Differences between Oracle JDK and AdoptOpenJDK caused by JPMS
> --------------------------------------------------------------
>                 Key: SUREFIRE-1809
>                 URL:
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Failsafe Plugin, Maven Surefire Plugin
>    Affects Versions: 3.0.0-M5
>            Reporter: Jiri Ondrusek
>            Assignee: Tibor Digana
>            Priority: Major
>             Fix For: 3.0.0-M6
> I was upgrading maven-surefire-plugin to 3.0.0-M5 in [camel-quarkus|[]]
project. Unfortunately there was a test which was failing on CI (using AdoptOpenJDK build
11.0.7+10) and there was no failure on my local machine (using Oracle "11.0.7" 2020-04-14
> Problem was caused by JPMS. On Orace JDK this was turned off by default. On AdoptOpenJDK
it was turned on by default. Solution was to turn this feature off by configuration (
> It would be nice if default behavior was the same for different Java vendors.
> Difference seems to be coming from this line -
> On AdoptOpenJDK both 3 clausules are true. On Oracle JDK the last one is false.

This message was sent by Atlassian Jira

View raw message