You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mincong Huang (JIRA)" <ji...@apache.org> on 2018/05/15 10:29:00 UTC

[jira] [Comment Edited] (MCOMPILER-342) Unsupported class file major version 55

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

Mincong Huang edited comment on MCOMPILER-342 at 5/15/18 10:28 AM:
-------------------------------------------------------------------

Full trace log is uploaded, see {{log.txt}}. This is done via command lines:

{noformat}
$ java -version
java version "11-ea" 2018-09-25
Java(TM) SE Runtime Environment 18.9 (build 11-ea+13)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11-ea+13, mixed mode)
$ git clone https://github.com/mincong-h/MCOMPILER-342.git
$ cd MCOMPILER-342
$ mvn clean compile -Dmaven.compiler.source=11 -Dmaven.compiler.target=11 -X
{noformat}


was (Author: mincong):
Full trace log is uploaded, see {{log.txt}}. This is done via command lines:

{noformat}
$ git clone https://github.com/mincong-h/MCOMPILER-342.git
$ cd MCOMPILER-342
$ mvn clean compile -Dmaven.compiler.source=11 -Dmaven.compiler.target=11 -X
{noformat}

> Unsupported class file major version 55
> ---------------------------------------
>
>                 Key: MCOMPILER-342
>                 URL: https://issues.apache.org/jira/browse/MCOMPILER-342
>             Project: Maven Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 3.7.0
>            Reporter: Mincong Huang
>            Priority: Blocker
>         Attachments: log.txt
>
>
> Maven compiler plugin does not support classes created by JDK 11 (major version 55). If you have classes created by JDK 11 in your classpath when using Maven Compiler, you've the following errors:
> {quote}
> Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project java-examples-dev-core: Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile failed: Unsupported class file major version 55 -> [Help 1]
> {quote}
> See https://github.com/mincong-h/MCOMPILER-342 for reproduction



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)