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

前端 未结 9 2084
一个人的身影
一个人的身影 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:47

    For Eclipse Users. If you have a Run Configuration that does clean package for example.

    In the Run Configuration panel there is a JRE tab where you can specify against which runtime it should run. Note that this configuration overrides whatever is in the pom.xml.

提交回复
热议问题