You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2023/01/28 11:16:00 UTC

[jira] [Closed] (MCOMPILER-524) Please use useful defaults

     [ https://issues.apache.org/jira/browse/MCOMPILER-524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed MCOMPILER-524.
------------------------------------
    Resolution: Not A Problem

See: https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#source

> Please use useful defaults
> --------------------------
>
>                 Key: MCOMPILER-524
>                 URL: https://issues.apache.org/jira/browse/MCOMPILER-524
>             Project: Maven Compiler Plugin
>          Issue Type: Improvement
>            Reporter: Christoph Läubrich
>            Priority: Major
>
> 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)