Eclipse Maven Plugin plug-in installation and configuration (2)

Source: Internet
Author: User

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:

 
    1. The Maven integration requires that Eclipse is running in a JDK,
    2. Because a number of Maven core plugins is using the jars from the JDK.
    3. Sure THE-VM option in Eclipse.ini are pointing to a JDK
    4. 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

    1. -STARTUP 
    2. plugins/org.eclipse.equinox.launcher_1.1.1.r36x_ v20101122_1400.jar 
    3. --LAUNCHER.LIBRARY 
    4. plugins/ org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.r36x_v20101222 
    5. -product 
    6. org.eclipse.epp.package.jee.product 
    7. --LAUNCHER.DEFAULTACTION 
    8. openfile 
    9. --launcher. xxmaxpermsize 
    10. 256m 
    11. -SHOWSPLASH 
    12. Org.eclipse.platform  
    13. --launcher. xxmaxpermsize 
    14. 256m 
    15. --LAUNCHER.DEFAULTACTION 
    16. OpenFile  
    17. -VM 
    18. C:\Program files\java\jdk1.6.0_27\jre\bin\javaw 
    19. -VMARGS 
    20. -dosgi.requiredjavaversion=1.5 
    21. -XMS40M 
    22. - 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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.