After installing Maven, a warning message appears every time it starts:
Eclipse is running in a JRE, but a JDK is required
Some Maven plugins may not work when importing projects or updating source folders.
Based on the online introduction, after making the following two settings, it is OK.
1. 1. Check if Eclipse is using JDK
. Here you need to use JDK.
2. Configure Eclipse.ini
找到Eclipse所在的目录,打开Eclipse.ini,在中间或者前面加入如下两句
-vm
C:\Program Files\Java\jdk1.5.0_16\bin\javaw.exe
Here's where I added
it After that, restarted Eclipse and the problem was solved.