How to force Eclipse m2e plugin to use jdk for a project

▼魔方 西西 提交于 2019-11-30 10:03:34

In Eclipse, open Window | Preferences | Java | Installed JREs, make sure there's a JDK (and not just a JRE) for Java 1.7, then go to the submenu Execution Environments and mark this JDK as compatible with JavaSE-1.7.

After that, Maven | Update Project should work as desired.

First MVN_HOME has to be setup and then the JDK as to browsed instead of JRE

Window--> Preferences--> Java-->Installed JREs

and select JDK (e.g. : jdk1.7 or jdk1.8)

the do mvn install it will work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!