When performing a "mvn clean install" on essentially any maven-based Open Daylight project, I get the following error:
org.apache.maven.enforcer.rule.api.EnforcerRuleException: Detected JDK Version: 1.6.0-65 is not in the allowed range 1.7.0.
Of course, the Enforcer plugin is responsible for making sure this version is enforced, so naturally, we also get this error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce (enforce-java) on project ovsdb_commons: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed.
As a result, the build fails. This is strange, considering that my JDK version is indeed 1.7:
~/C/ovsdb ??? java -version java version "1.7.0_55" Java(TM) SE Runtime Environment (build 1.7.0_55-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode) ~/C/ovsdb ??? ls -l /Library/Java/JavaVirtualMachines total 0 drwxr-xr-x 3 root wheel 102 May 9 13:08 jdk1.7.0_55.jdk ~/C/ovsdb ???
Why would the Java version mismatch in this way?