I'm using org.apache.commons.lang3.BooleanUtils
in the commons-lang3
(version 3.1).
When I try to compile next line of code
BooleanUtils.xor(true, true);
using maven-compiler-plugin
(version 3.3), I'm getting a compilation failure message:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project exchange: Compilation failure
[ERROR] MyClass.java:[33,34] reference to xor is ambiguous, both method xor(boolean...) in org.apache.commons.lang3.BooleanUtils and method xor(java.lang.Boolean...) in org.apache.commons.lang3.BooleanUtils match
I use Java 1.7.0_55 to compile.
How can I solve this?