Eclipse Maven Plugin plug-in installation and configuration (2)
As the previous article said, toss a will finally install, finally relieved, and behold, once again opened Eclipse error message, found on the Internet, find a more detailed article, the original address:
Http://www.sunchis.com/html/hsware/software/2011/1102/371.html
Install the M2eclipse (Maven plugin) in Eclipse, restart eclipse after installation, and the following warning appears: Sure THE-VM option in Eclipse.ini
Install the M2eclipse (Maven plugin) in Eclipse, restart eclipse after installation, and the following warning appears:
- The Maven integration requires that Eclipse is running in a JDK,
- Because a number of Maven core plugins is using the jars from the JDK.
- Sure THE-VM option in Eclipse.ini are pointing to a JDK
- and verify that installed JRE ' s is also using JDK installs.
So, here's the solution:
[1] setting up a system-installed JDK directory
Open Eclipse, click ' Windows ', ' Preferences ', ' Java ', ' installed JREs ';
If the installed JDK does not appear in the list, add it by clicking the ' Add ' button next to it.
[2] adding-VM parameters to the Eclipse.ini configuration file and increasing the JDK path
When you start to configure the following steps remember to back up the original ecipse.ini to prevent unexpected situations, into eclipse, I met this situation, the next article will be described in detail.
There are three minor issues to note in this step:
The ①-VM parameter and the JDK path are written in two lines, and-VM to precede the JDK path.
②JDK path can contain spaces, the path is what to write what, do not according to other authors said to use to replace, I test,
That is, you do not have to change the C:\Program FILES\JAVA\JDK1.6.0_27\JRE\BIN\JAVAW, or you will be prompted not to find the JAVAW execution path.
③ In addition, in any case, the-VM parameter must precede-vmargs.
Here is the Eclipse.ini configuration file on my machine, I put it out, I need to pay attention to three places, I use three kinds of background to mark out
- -STARTUP 
- plugins/org.eclipse.equinox.launcher_1.1.1.r36x_ v20101122_1400.jar
- --LAUNCHER.LIBRARY 
- plugins/ org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.r36x_v20101222
- -product
- org.eclipse.epp.package.jee.product
- --LAUNCHER.DEFAULTACTION 
- openfile
- --launcher. xxmaxpermsize
- 256m
- -SHOWSPLASH 
- Org.eclipse.platform
- --launcher. xxmaxpermsize
- 256m
- --LAUNCHER.DEFAULTACTION 
- OpenFile
- -VM 
- C:\Program files\java\jdk1.6.0_27\jre\bin\javaw
- -VMARGS 
- -dosgi.requiredjavaversion=1.5
- -XMS40M 
- - xmx512m
Now restart your eclipse to see if there are any warnings. No, it should be.
Eclipse Maven Plugin plug-in installation and configuration (2)