Install m2eclipse (Maven plug-in) in eclipse)
After installation, the following warning is displayed:
The Maven integration requires that eclipse be running in a JDK, because a number of Maven core plugins are using jars from the JDK.
Please make sure the-VM option in eclipse. INI is pointing to a JDK and verify that installed JRE's are also using JDK instils.
Solution:
(1)Set your JDK as a default Java environment in eclipse (default installed JRE)
Open eclipse. Click on 'window'-> 'preferences '-> 'java'-> 'installed jres '.
If you can't find any JDK on the list-> click 'add'-> 'standard VM '-> set all paths and click 'finish '.
After that-check this JDK on the list of installed jres and Click 'OK '.
(2)Add path to your SDK in eclipse. ini
Open 'eclipse. ini 'and add there:-VM path_to_javaw_on_your_machine, so in my example it will be (jdk1.6.0 _ 17 on Windows ):
-VM
C:/progra ~ 1/Java/jdk1.6.0 _ 17/JRE/bin/javaw
Notice 1:Do not use paths with spaces!Replace all dir names with spaces to their shortcuts. For example: 'program files 'is 'progra ~ 1 ′.
Notice 2:'-VM' is in the first line, path is in the second line
My full 'eclipse. ini 'looks like this:
-Startup
Plugins/org. Eclipse. Equinox. launcher_1.0.201.r35x_v20090715.jar
-- Launcher. Library
Plugins/org. Eclipse. Equinox. launcher. win32.win32. x86_1.0.200.v20090519
-Showsplash
Org. Eclipse. Platform
-- Launcher. xxmaxpermsize
256 m
-VM
C:/progra ~ 1/Java/jdk1.6.0 _ 17/JRE/bin/javaw
-Vmargs
-Xms40m
-Xmx256m
Restart eclipse and everything shoshould be fine.