Why Maven uses JDK 1.6 but my java -version is 1.7

前端 未结 9 2086
一个人的身影
一个人的身影 2020-11-28 18:01

I\'m new to maven, and also to MacOS.

I have setup maven in my terminal, and when getting the version settings (using mvn -v) it seems it uses JDK 1.6,

9条回答
  •  渐次进展
    2020-11-28 18:24

    I am late to this question, but I think the best way to handle JDK versions on MacOS is by using the script described at: http://www.jayway.com/2014/01/15/how-to-switch-jdk-version-on-mac-os-x-maverick/

提交回复
热议问题