×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Massimo Zappino
Added: May 3, 2016 8:22 PM
Modified: Aug 27, 2017 3:33 PM
Views: 7
Tags: java mac maven osx
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project example: Fatal error compiling: invalid target release: 1.7 -> [Help 1]
  1. edit ~/.profile
  2. add this line
  3.  
  4. export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)