Specify javac source and target via maven.compiler.* properties

Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/a681d5e7
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/a681d5e7
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/a681d5e7

Branch: refs/heads/master
Commit: a681d5e7501c1dfa65dade5db9322e30a62a9361
Parents: bd1df5e
Author: Ville Skyttä <[email protected]>
Authored: Mon Dec 21 22:54:28 2015 +0200
Committer: Clebert Suconic <[email protected]>
Committed: Mon Dec 21 21:47:15 2015 -0500

----------------------------------------------------------------------
 pom.xml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/a681d5e7/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index bbe5034..35d90eb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -99,6 +99,9 @@
       <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
       
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
 
+      <maven.compiler.source>1.7</maven.compiler.source>
+      <maven.compiler.target>1.7</maven.compiler.target>
+
      <!--
 
        note for idea users:
@@ -783,8 +786,6 @@
                <!-- Enable Google's Error-Prone 
https://github.com/google/error-prone -->
                <configuration>
                  <showWarnings>true</showWarnings>
-                 <source>1.7</source>
-                 <target>1.7</target>
                  <forceJavacCompilerUse>true</forceJavacCompilerUse>
                  <compilerId>${javac-compiler-id}</compilerId>
                  <compilerArgs>

Reply via email to