maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nils Christian Ehmke (JIRA)" <>
Subject [jira] [Created] (MCOMPILER-314) Release-Property can not be used with OpenJDK
Date Sat, 28 Oct 2017 07:53:00 GMT
Nils Christian Ehmke created MCOMPILER-314:

             Summary: Release-Property can not be used with OpenJDK
                 Key: MCOMPILER-314
             Project: Maven Compiler Plugin
          Issue Type: Bug
    Affects Versions: 3.7.0
         Environment: Linux (Ubuntu), OpenJDK 9
            Reporter: Nils Christian Ehmke


First of all: Thank you for providing us with the maven compiler plugin.

Now about my issue. I have a project in which I use the release-flag of the maven compiler
plugin. My pom contains something like the following in the parent pom:


Especially the release-flag seems to be necessary so that Eclipse uses the JDK9 libs. Under
windows (with an Oracle JDK), this works just fine. However, our build server (under Linux)
cannot work with this. It fails with

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
(default-compile) on project ...
Fatal error compiling: invalid flag: --release -> [Help 1]

It seems that the release-flag under Linux/OpenJDK has to be called with a single hyphen and
not with two. Is there anything you can do about this? Any workaround maybe?

Thank you and best regards


This message was sent by Atlassian JIRA

View raw message