You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Christoph Läubrich (Jira)" <ji...@apache.org> on 2023/01/27 09:22:00 UTC
[jira] [Created] (MCOMPILER-524) Please use usefull defaults
Christoph Läubrich created MCOMPILER-524:
--------------------------------------------
Summary: Please use usefull defaults
Key: MCOMPILER-524
URL: https://issues.apache.org/jira/browse/MCOMPILER-524
Project: Maven Compiler Plugin
Issue Type: Improvement
Reporter: Christoph Läubrich
I have this absolute minimal pom:
{code:xml}
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
<artifactId>minimal</artifactId>
<version>0.0.1-SNAPSHOT</version>
</project>
{code}
executing this with maven fails with:
{code:java}
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Source option 5 is no longer supported. Use 7 or later.
[ERROR] Target option 5 is no longer supported. Use 7 or later.
{code}
As I have configured nothing, as a user I would expect that the defaults are something that at least can work and do not fail, or gives a strong indication that some kind of configuration is required but missing. In this case it would even be appropriate to instead have an error to issue a warning that level 7 is used instead.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)