maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Schaft (JIRA)" <>
Subject [jira] [Created] (MCOMPILER-254) Do not ignore toolchains to set -source and -target
Date Fri, 20 Nov 2015 18:58:11 GMT
Robert Schaft created MCOMPILER-254:

             Summary: Do not ignore toolchains to set -source and -target
                 Key: MCOMPILER-254
             Project: Maven Compiler Plugin
          Issue Type: Improvement
    Affects Versions: 3.3, 3.2, 3.1
         Environment: Maven 3.3
            Reporter: Robert Schaft

Maven 3.3 enhanced the support for toolchains (by allowing toolchains.xml in the ${M2}/conf/
directory). The compiler plugin already uses the toolchains to determine the jdk home.

Unfortunately, it still requires setting -source and -target. So I still have 3 places to
set the jdk version of my source code.

The following pom.xml snippet currently sets the jdk home to 1.8, but uses 1.5 flags for source
and target.

I simply request that the snippet sets source and target to 1.8 (or doesn't set them at all
when a toolchain is used).

This message was sent by Atlassian JIRA

View raw message