Facing issues installing m2e maven plugin for Eclipse Juno - java

I installed JUNO Eclipse and then wanted to get the maven plugin for eclipse. After some searching I got to know that I can install the plugin using eclipse market place. So I searched the plugin and installed it successfully but when I restarted eclipse, I cannot see Maven option when I right click on any project. When I click on WINDOWS--> PREFERENCES , I can see the Maven option there. It means, maven got installed but not sure if completely.
I reinstalled it again but still no luck. Can anyone help?
FYI, I am using maven 3.0.4

If your project is still a standard Java project, then you have to enable Maven for this project. You can do this by right-clicking on the project, then choose Configure -> Convert to Maven project. Then you have to type group id, artifact id etc. and the pom.xml is created for you.

You need to make sure you have installed the Java JDK and add it to the Preferences -> Java -> Installed JREs.

Related

No option for creating a maven project in eclipse ide

This is screenshot from a list of available projects. You can follow: File/New/Other. But there is no option for choosing Maven Project.
I have Eclipse IDE for Java EE developers and Ubuntu 16.04
screenshot of eclipse ide
How to create a new maven project?
You need to install Maven Integration for Eclipse from the Marketplace.
Help->Eclipse Marketplace.
type 'maven' in the search box and install Maven Integration for Eclipse.
Install m2eclipse plugin first, go to Window -> Preferences. Check "Maven" is enlisted at the left panel list.
or use the latest version of eclipse

Install maven plugin in eclipse juno

I am trying to install maven 1.5 in eclipse unfortunately I am getting errors like:
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.5.0.20140606-0033 (org.eclipse.m2e.feature.feature.group 1.5.0.20140606-0033)
Missing requirement: Maven Integration for Eclipse 1.5.0.20140606-0033 (org.eclipse.m2e.core 1.5.0.20140606-0033) requires 'bundle com.google.guava [14.0.1,16.0.0)' but it could not be found
Cannot satisfy dependency:
From: m2e - Maven Integration for Eclipse (includes Incubating components) 1.5.0.20140606-0033 (org.eclipse.m2e.feature.feature.group 1.5.0.20140606-0033)
To: org.eclipse.m2e.core [1.5.0.20140606-0033]
EClipse juno doesnt support maven 1.5..still they have not added capability of 1.5
so try 1.4 or 1.3
http://download.eclipse.org/technology/m2e/releases/1.3
http://download.eclipse.org/technology/m2e/releases/1.4
MAVEN INSTALLATION
OPTION 1 :
Open Eclipse IDE
Click Help -> Install New Software...
Click Add button at top right corner
At pop up: fill up Name as "M2Eclipse" and Location as http://download.eclipse.org/technology/m2e/releases/1.4
Now click OK
After that installation would be started.
OPTION 2 :-
Open Eclipse
Go to Help -> Eclipse Marketplace
Search by Maven
Click "Install" button at "Maven Integration for Eclipse" section
Follow the instruction step by step
After successful installation do the followings in Eclipse:
Go to Window --> Preferences
Observe, Maven is enlisted at left panel
Finally,
Click on an existing project
Select Configure -> Convert to Maven Project
This is because maven 1.5 is not compatible with eclipse juno.
So we need to use maven 1.4 or 1.3
Steps to install maven 1.4 is below
Click Help in eclipse
Install New Software
Url for the location of site is "http://download.eclipse.org/technology/m2e/releases"
Uncheck the checkbox "Show only the latest versions of available software"
if do not uncheck the checkbox it will only latest version and do not show maven 1.4.
Select m2e and slf4j of 1.4 version and click next.
Note: maven v 1.3 is compatible, correct url for juno: download.eclipse.org/technology/m2e/releases/1.3
If all the above options don't work, then first install the WST plugin in your eclipse.
In order to do that, in Eclipse Juno, go to Install New Software > Add, under Name place Juno and under Location URL insert http://download.eclipse.org/releases/juno.
Then, select WST Server Adapters under Web, XML, Java, ... (last option of the list).
Accept licensing agreement and restart Eclipse.
Then resume the usual procedure to install Maven.
Choose menu Help \ Install New Software..., then add this repository link:
http://download.eclipse.org/technology/m2e/releases/1.2/1.2.0.20120903-1050/
Then install for Eclipse WTP (Web Tool Platform) Juno 4.2.
Uncheck the option "Select only the latest version of this software", so that versions of the plugin compatible to your eclipse will be displayed, you can select one of them.
download.eclipse.org/technology/m2e/releases/1.3 has worked for
Eclipse Java EE IDE for Web Developers.
Version: Indigo Service Release 2
Build id: 20120216-1857
Thanks

Steps to enable the Maven integration with eclipse

I have installed maven and eclipse juno, on CentOS. Can anyone guide me how to integrate Eclipse with maven. I am going to use this configuration for Mahout.
You need to install a plugin for eclipse so that it knows what to do about maven projects (such as m2eclipse).
Once you have that installed, you can configure it (Windows -> Preferences -> Maven) to point to your existing maven installation, and can then create maven projects via the New -> Maven Project wizard.
You can also convert existing project to maven projects via a right click -> Configure -> Convert to Maven Project.
You can download maven from from eclipse market place
Simply go to help -> eclipse market place, then search maven.
(Though i have always got it already integrated in eclipse).
After you can make various customizations to suite your needs by selecting, window -> preferences, then type in maven in the search bar ontop, you can configure the location of your settings.xml file, maven installation to use and other things you may want.
Hope this helps.

Add a Mavenproject in eclipse

Hi evevryone,
I am trying to add a maven project with Eclipse.
I have just installed eclipse Java EE Kepler.
I have also inlcuded the SVN and Maven Plug In for eclipse.
When I try to add an existing Maven project I cannot select the SVN repository. Does anyone know why?
Bottom right, hit m2e Marketplace and install the connector you need ;)

Problems integrating Maven with Eclipse Kepler

I am totally new to working with Maven in Eclipse. I am using the latest verion of Eclipse (Kepler). According other posts, as well as Eclipse's help page http://help.eclipse.org/kepler/index.jsp?topic=//org.eclipse.platform.doc.user/tasks/tasks-127.htm , I am supposed to try to install new software within Eclipse IDE.
However, when I try to Add Eclipse's recommended m2e release, Eclipse gives me an error:
Unable to read repository at http://download.eclipse.org/technology/m2e/releases.
download.eclipse[...]releases is not a valid repository location.
Essentially I run into the same problem no matter which approach I take outlined on the Eclipse help page. Is there some other/better way to integrate Maven with Eclipse? Are there steps I should have taken before this? All I have done so far is install Eclipse. How can I successfully get Maven running?
EDIT: Now I am using Java EE and still run into problems when making a Maven project. I get a "Could not resolve archetype error" could this be because I'm behind a proxy?
Most convenient option:
The reason you're getting that error is because that repo is deprecated, and it has been moved. Example of how the new repo looks:
http://download.eclipse.org/technology/m2e/releases/1.0/1.0.0.20110607-2117
Copy that in the Install New Software view, and you will see that it works.
Other options:
Install the Maven Integration from Eclipse Marketplace (Help -> Eclipse Marketplace)
Download the EE version of Kepler (comes with m2e)
Choose your own release (bottom of the page) and use the Install New Software view.
I had the same issue here and the above answer didnt work for me. Although Maven is installed I cane update my dependencies on my folder the way I used to be able to do on Juno. What I did was used the pom.xml from my current project and pasted it into the pom of my new project I created specifically in Eclipse using new project->Maven.
This was eclipse knows its a Maven project and allows my all the benefits of being one.
To install maven properly for eclipse you should set the correct repos as follow:
Help=>install=>
then work with
http://download.eclipse.org/releases/
example of eclipse version : mars or kepler ..

Categories

Resources