[
https://issues.apache.org/jira/browse/MCOMPILER-524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov updated MCOMPILER-524:
-------------------------------------
Summary: Please use useful defaults (was: Please use usefull defaults)
> 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)