java - Error when running mvn jetty:run on OSX - Stack Overflow
Okay I got it working. It seemed that Maven was using Java 1.6 instead of 1.7 as it should. I opened terminal and did:
cd /usr/local/Cellar/maven/3.1.1/libexec/bin/ Then edited mvn file :
open -e mvn And added this at the beginning :
export JAVA_HOME=$(/usr/libexec/java_home) which is default Java directory in OSX. After that it worked just fine.
I didn't see Andrey Chaschev answer, but it seems to be pointing out at the same issue, so I will accept this answer. Thanks, Andrey!
Read full article from java - Error when running mvn jetty:run on OSX - Stack Overflow
No comments:
Post a Comment