MyEclipse 6.5 Installing the MAVEN plugin

Source: Internet
Author: User
Tags sonatype

First, uninstall the original Maven plugin

MyEclipse 6.5 has become a MAVEN plugin, but there are a lot of bugs, used to M2eclipse, do not want to waste time on this. To install M2eclipse, you need to uninstall the self-brought Maven plugin, and uninstall the following steps:
1. Delete the/eclipse/features/com.genuitec.myeclipse.maven_6.5.1.zmyeclipse650200806 directory
2. Go to the Plugins directory and delete the following directories and JAR packages

1 com.genuitec.myeclipse.maven_6.5.1.zmyeclipse650200806
2 org.maven.ide.components.archetype_common_2.0.0.20080331-1600
3 org.maven.ide.components.maven_embedder_2.1.0.20080410-2200
4 org.maven.ide.components.maven_model_edit_1.0.0.20080331-1600
5 org.maven.ide.components.maven_scm_1.0.0.20080410-2200
6 org.maven.ide.components.nexus_indexer_1.0.0.20080331-1600
7 org.maven.ide.components.qname_1.0.0.20080331-1600
8 Com.genuitec.eclipse.maven_6.5.1.zmyeclipse650200806.jar
9 Org.maven.ide.eclipse.central_0.9.1.zmyeclipse650200806.jar
Ten Org.maven.ide.eclipse.scm_0.9.2.zmyeclipse650200806.jar
Org.maven.ide.eclipse_0.9.3.zmyeclipse650200806.jar

Second, online installation m2eclipse

1.Help, Find and Install->search for new features to Install->new Remote Site

1 name:m2eclipse
2 Url:http://m2eclipse.sonatype.org/sites/m2e/0.10.0.20100209-0800/


2. Click Finish to start the automatic search. This link before is good, but today again download always prompt error, direct access also hint content can not find, it seems to move the place. Finally find this post on the official website where did http://m2eclipse.sonatype.org/sites/m2e go? The latest address is found as prompted Http://repository.sonatype.org/content /sites/forge-sites/m2e/
Post Content

As of June, that site had been shut down because M2eclipse were moved to the Eclipse Foundation years ago.

You can access the archived M2eclipse sites (including 0.12) here:

https://repository.sonatype.org/content/sites/forge-sites/m2e/

For more information about to access the current M2E releases, see http://eclipse.org/m2e/download/.

So the address above turns into this.

1 name:m2eclipse
2 Url:http://repository.sonatype.org/content/sites/forge-sites/m2e/0.10.0/s/20100209-0800/

The installation will be no problem.

3. Set up Maven

Window->preferences, select local maven profile in search Maven,user Settings, Update Settings->apply->ok

Iii. issues

After restarting MyEclipse, jump out of the exception

1 Eclipse is running in a JRE, but a JDK is required
2 Some Maven plugins may isn't work when importing projects or updating source folders.


Specific solutions see this link http://www.blogjava.net/itvincent/archive/2010/07/25/327101.html

After installing MAVEN, you are prompted not to find the JDK error. The Maven integration requires that Eclipse is running in a JDK

M2eclipse (Maven plugin) installed in eclipse

After installation, the following warning appears:

The MAVEN integration requires that Eclipse is running in a JDK, because a number of Maven core plugins is using jars fro M the JDK.

Sure THE-VM option in Eclipse.ini was pointing to a JDK and verify that installed JRE's is also using JDK ins talls.

Solve:

(1) Set the system-installed JDK directory 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 is on the list of installed JREs and click ' OK '.

(2) Add JDK path to Eclipse.ini file 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'll be (jdk1.6.0_17 on Windows):- Vm
D:\\java\jdk1.6.0_13\jre\bin\javaw
There can be no spaces, otherwise you should use the to instead, such as: ' Program Files ' are ' progra~1′. Notice 1: Do not use paths with spaces! Replace all dir names with spaces to their shortcuts. For example: ' Program Files ' are ' progra~1′.
To be divided into 2 lines of writing. Notice 2: '-VM ' is on the first line, path was in the second line

Your ' 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
256m
-vm
D:\Java\jdk1.6.0_13\jre\bin\javaw
-vmargs
-xms40m
-xmx256m
-VM to be in front of-vmargs. Notice: '-VM ' must be '-vmargs ' above

Restart Eclipse. Restart Eclipse and everything should be fine.

MyEclipse 6.5 Installing the MAVEN plugin

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.