]> source.dussan.org Git - jgit.git/commit
Use eclipse compiler in Maven build 00/121700/5
authorMatthias Sohn <matthias.sohn@sap.com>
Wed, 25 Apr 2018 01:09:05 +0000 (03:09 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 25 Apr 2018 09:18:08 +0000 (11:18 +0200)
commite8e456b519708aca430b998bf69ff3f214628c31
tree0b445c011decb1fe0a9038ea2885b51eb5df42b3
parent9edf9bf2d6fd248daf2157bc8245142e5d51f7c2
Use eclipse compiler in Maven build

Found instructions for configuring maven-compiler-plugin with ecj in
[1]. Verified that ecj run in this way raises build errors when executed
on commit d3ef5213.

Define profiles "ecj" for using Eclipse compiler and "javac" for using
javac including errorprone. By default ecj will be used.

use ecj:
$ mvn -Pecj clean install

use javac:
$ mvn -Pjavac clean install

TODO: find out how to run ecj with errorprone from Maven.

[1] https://stackoverflow.com/questions/33164976/using-eclipse-java-compiler-ecj-in-maven-builds

Change-Id: I716b603b57612b953e603387c82fd01eb1b5ca97
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
pom.xml