Error while installing the maven in eclipse - java

I am new to Eclipse. I was installing Maven plugin in Eclipse Helios and I have gone through all the answers from stack but still I was not able to solve it. I used
http://download.eclipse.org/technology/m2e/releases/1.3
this link in the Eclipse -> Help > Install New software. Still I am getting bellow error. Can any one help me ?
Cannot complete the install because one or more required items could not be found.
Software being installed: m2e connector for the Maven Dependency Plugin 0.0.4.201410161303 (com.ianbrandt.tools.m2e.mdp.feature.feature.group 0.0.4.201410161303)
Missing requirement: m2e connector for Maven Dependency Plugin 0.0.4.201410161303 (com.ianbrandt.tools.m2e.mdp.core 0.0.4.201410161303) requires 'bundle org.eclipse.m2e.jdt 1.4.0' but it could not be found
Cannot satisfy dependency:
From: m2e connector for the Maven Dependency Plugin 0.0.4.201410161303 (com.ianbrandt.tools.m2e.mdp.feature.feature.group 0.0.4.201410161303)
To: com.ianbrandt.tools.m2e.mdp.core [0.0.4.201410161303]

Like Sudha Velan said, you try the eclipse marketplace(Help -> Eclipse Marketplace).
I prefer downloading the binary files from the maven homepage.

Related

How can I install the M2E - Maven Integration in Eclipse?

I am attempting to install the plugin via the repository install in Eclipse ( Help -> Install New Software -> Work With: http://download.eclipse.org/technology/m2e/releases/ -> Next) and am getting a big error:
Cannot complete the install because one or more required items could not be found.
Software being installed: m2e - Maven Integration for Eclipse (includes Incubating components) 1.6.2.20150902-0002 (org.eclipse.m2e.feature.feature.group 1.6.2.20150902-0002)
Missing requirement: Maven Integration for Eclipse 1.6.0.20150526-2032 (org.eclipse.m2e.core 1.6.0.20150526-2032) requires 'bundle org.eclipse.core.resources 3.9.0' but it could not be found
Missing requirement: Maven Integration for Eclipse 1.6.1.20150625-2338 (org.eclipse.m2e.core 1.6.1.20150625-2338) requires 'bundle com.google.guava [14.0.1,16.0.0)' but it could not be found
Missing requirement: Maven Integration for Eclipse 1.6.2.20150902-0002 (org.eclipse.m2e.core 1.6.2.20150902-0002) requires 'bundle com.google.guava [14.0.1,16.0.0)' but it could not be found
Cannot satisfy dependency:
From: m2e Marketplace 1.6.2.20150902-0002 (org.eclipse.m2e.discovery 1.6.2.20150902-0002)
To: bundle org.eclipse.m2e.core [1.6.0,1.7.0)
Cannot satisfy dependency:
From: m2e - Maven Integration for Eclipse (includes Incubating components) 1.6.2.20150902-0002 (org.eclipse.m2e.feature.feature.group 1.6.2.20150902-0002)
To: org.eclipse.m2e.discovery [1.6.2.20150902-0002]
I tried finding information on the guava bundle but am not able to search for this in the Eclipse marketplace or find any repo out there I can install from either.
I am using Eclipse Juno SR2. I've read that certain version of Eclipse can't install guava bundle but didn't read that Juno was one of them.
Juno only supports 1.3 version. So download it from here.
download.eclipse.org/technology/m2e/releases/1.3
You're trying to install the latest version of m2e into a very old version of Eclipse; the two are not compatible. You have 2 options:
Install a new version of Eclipse. The Java and Java EE packages both include m2e so you won't have to do anything to install it into them. Plus you get the benefit of having the latest features and bug fixes in both Eclipse and m2e.
Install the version of m2e that's compatible with your Juno Eclipse release. To do so with the Install New Software... wizard, select the Juno repository to work with (not the m2e repository), and search for m2e in the list of options.

Do i need to use embedded maven for m2e workspace resolution to work?

In my previous pc I was working with linux, eclipse Indigo, m2e (I suppose v1.2 or v1.3) and maven 2.
I had configured m2e to use my external maven 2 installation, had projectA depend on projectB and without the need to install any of the projects to the maven local repository I could execute an Eclipse Maven Build (e.g: compile or dependency:tree) configured to use the external maven installation and to Resolve artifacts in workspace. That worked.
Now, I 'm using win7, eclipse kepler, m2e 1.4.1 and maven 3. I configured all in the same fashion (use external maven installation), create the same projects, use the same eclipse Maven build (run configuration) with workspace artifact resolution enabled and it don't work.
Right now it only works if i configure the maven build to use the internal eclipse embedded maven installation.
I 'd really like to always use my external instalation, does anyone knows if this feature was removed from m2e or should this scenario work as I expected and maybe it's a bug thats happening in my specific environment?
It's worth checking that the settings.xml for your external maven makes sense, and eclipse is configured to use it.
I 've tested in other similar environments obtaining same results but, when
upgraded to Eclipse Luna problem was solved.
If you 're facing similar problem, then upgrade to Eclipse Luna.

Installing Maven Plugins

I have an instruction manual with just the following picture.
I figured it required the following plugin after searching which is a maven plugin. I have already installed maven
http://maven.apache.org/plugins/maven-ear-plugin/
SO i think I will get the above EAR/WAT settings in my Eclipse->pfreferences after i install this maven plugin. But how do i install a plugin for maven? The above website does not say how to install that plugin. Most searches are leading me to maven eclipse plugin installation instead of this particular installation.
I am installing it for the first time and have not worked with maven before.

M2E Maven Plugin: Importing Maven project is throwing error in Eclipse JUNO

I have an existing project in maven which is working fine in other remote env which i
dont have any access, I dont know what is the issue in my env, the same project is working
in other remote env.
My Env Details are:-
Java1.7
Tomcat7.x
Eclipse Juno,Build id: 20120614-1722
Plugin Details: M2E - Maven Integration for Eclipse
The below error is coming while importing the project and after selecting pom.xml.
No marketplace entries found to handle maven-compiler-plugin:2.0.2:compile in Eclipse
Go to Window > Preferences > Maven Installations and then deactivate the Embedded and add your own installation.
I would check:
That Eclipse Maven build settings are using a JDK and not a JRE
Check the actual compiler settings in the POM. Maybe the source and target should be explicitly set to 1.7.
It's also worth checking if this runs properly with mvn from the command line to rule out whether it is truly a Maven or IDE issue.

How to fix m2eclipse plugin?

I have java maven project in Eclipse that depends from other projects and for near 1000 library jar.
But I cannot use m2eclipse at all.
For create Eclipse project is use eclipse maven plugin like:
mvn eclipse:eclipse -Dwtpversion=1.5
It works well. But when I go to Eclipse and click on m2eclipe - update dependencies - all library jars disappear!
So for work I have disabled java projects as maven in Eclipse. I suppose that there is some problem with eclipse internal variables. Does it correct? What have I check? Does exist some log? Or this is common bug of m2eclipse plugin?
Thanks.
maven eclipse plugin (i.e. mvn eclipse:eclipse) no longer works with m2eclipse or its current version, m2e.
Assuming you have the latest Eclipse (Indigo, which comes with m2e), you should have better success opening the maven project directly (Import as Maven project).

Categories

Resources