[
https://issues.apache.org/jira/browse/MNG-7587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17725705#comment-17725705
]
Christoph Läubrich commented on MNG-7587:
-----------------------------------------
I added an example that a more skilled person might easily transform into an
integration test I have generated it with the maven plugin archetype and
publish it under the Apache License 2 or any other that you like as it does not
really contain anything more than empty classes and generated code.
Run it with
* mvn clean verify -Drunning-java-release-version=1.8 -->
{color:#57d9a3}*BUILD SUCCESS*{color}
* mvn clean verify -Drunning-java-release-version=11 --> {color:#FF0000}*BUILD
FAILURE*{color} No implementation for sample.plugin.MyService was bound
* mvn clean verify -Drunning-java-release-version=17 --> {color:#de350b}*BUILD
FAILURE*{color} Unsupported class file major version 61
[~cstamas] I hope this illustrates why JSR330 is currently not really an
option for any plugin wanting to use Java > 8 ...
> Update Sisu to a version supporting at least Java 17
> ----------------------------------------------------
>
> Key: MNG-7587
> URL: https://issues.apache.org/jira/browse/MNG-7587
> Project: Maven
> Issue Type: Improvement
> Components: Core
> Reporter: Konrad Windszus
> Priority: Major
> Fix For: 3.9.x-candidate, 4.0.x-candidate
>
> Attachments: hello-maven-plugin.zip
>
>
> Version 0.3.5 (inherited from
> https://github.com/apache/maven-parent/blob/aff1eef5409009ca7f9d5f196233b2a575aba775/pom.xml#L934)
> in both Maven 4 and 3.9 of {{sisu.inject}} ships with ASM 5.0.2 (relaxed in
> https://github.com/eclipse/sisu.inject/commit/5e34add4790384dc764f77c9e31761cbc6e479aa
> to support up to Java 14).
> Given that Java 19 is the most recent one today Maven needs a newer version
> of {{sisu.inject}} to fully support newer Java bytecode than for Java 14.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)