[ 
https://issues.apache.org/jira/browse/SLING-11147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17506104#comment-17506104
 ] 

Robert Munteanu commented on SLING-11147:
-----------------------------------------

Thanks, [~olli]! It looks like right now we need to have all JDKs installed due 
to the toolchains settings, right? I am running Java 11 and the build fails for 
me with

{noformat}[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-toolchains-plugin:3.0.0:toolchain (default) on 
project org.apache.sling.commons.threads: Cannot find matching toolchain 
definitions for the following toolchain types:
[ERROR] jdk [ version='17' ]
[ERROR] Please make sure you define the required toolchains in your 
~/.m2/toolchains.xml file.{noformat}

I do have Java 8, 11, and 17 installed, but I guess they are not picked up for 
some reason.

> Configure Maven Failsafe Plugin to run build successfully on Java 17 (JPMS)
> ---------------------------------------------------------------------------
>
>                 Key: SLING-11147
>                 URL: https://issues.apache.org/jira/browse/SLING-11147
>             Project: Sling
>          Issue Type: Task
>          Components: Commons
>            Reporter: Oliver Lietz
>            Assignee: Oliver Lietz
>            Priority: Major
>             Fix For: Commons Threads 3.3.0
>
>
> * building with JDK 11 and 17 (JDK 8 does not support JPMS)
>  * opening java.base/java.lang to Commons Threads ({*}Surefire{*} NOT 
> Failsafe, keeping issue title to match commit)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to