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 2018/06/15 21:23:00 UTC
[jira] [Created] (MNG-6426) IT for MNG-6127 fails on Java 9+
Michael Osipov created MNG-6426:
-----------------------------------
Summary: IT for MNG-6127 fails on Java 9+
Key: MNG-6426
URL: https://issues.apache.org/jira/browse/MNG-6426
Project: Maven
Issue Type: Bug
Components: Integration Tests
Reporter: Michael Osipov
Assignee: Michael Osipov
Failure on Java 10 in Windows:
{noformat}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project mng-6127-plugin: Compilation failure
[ERROR] /D:/Entwicklung/Projekte/maven-integration-testing/core-it-suite/target/test-classes/mng-6127-plugin-execution-configuration-interference/plugin/src/main/java/org/apache/maven/its/mng6127/plugin/TestMojo.java:[67,13] try-with-resources is not supported in -source 6
[ERROR] (use -source 7 or higher to enable try-with-resources)
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project mng-6127-plugin: Compilation failure
{noformat}
The compiled plugin uses Java 7, but the code introduced in ee3cae93ce70f9ff1898b5c10f3cce59898923af autoresets everything to 1.6.
Drop all occurencies of {{maven.compiler.*}} and remove the try-with-resources statement.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)