You are on page 1of 6

signup

StackOverflowisacommunityof4.7
millionprogrammers,justlikeyou,
helpingeachother.

login

tour

help

JointheStackOverflowcommunityto:

Jointhemitonlytakesaminute:
Askprogramming
questions

Signup

Answerandhelp
yourpeers

Getrecognizedforyour
expertise

MaveninEclipse:stepbystepinstallation

IhavespentalldayontheMavensitereadingthe5and30minutetutorials,andtrialingMavenoutforthefirsttime.
IwanttoinstallaMavenpluginanduseittostartbuildingMavenprojectsfromEclipse.
Despiteanhonesteffort,IhavebeenunabletofindacomprehensivetutorialonanyMavenplugin.
hasnothingbutbroken(orrecursive)linksontheirsite.

M2E

,whichseemslikethedefactostandard,

Ican'ttellifIeveninstalledtheplugincorrectly,orhowtouseit.
Doesanyoneknowofagoodstepbystepguideto
solidexplanationofitsfeaturesandproperuses?

M2E

oranyotherplugin?Onethatcomeswithgoodinstallationdocumentation,alongwitha

Ican'tbetheonlydeveloperwhohaseverhadthisfrustration.EitherthatorIamlookinginallthewrongplaces...
eclipse maven eclipseplugin
editedApr10'14at11:58

askedDec23'11at19:59

RiponAlWasim
13.8k

14 I'minthesameboat!,gladyoupostedthisquestion..Iseethiswasafewdaysago..whereyouableto
getitworking?IalreadyinstalledmavenonmymachinebutIhaven'tbeenabletoinstallthepluginyet.
davidJan5'12at17:45
1 IfyouuseEclipseJunoJ2EEm2eisalreadyincluded.DeannaMay12'13at15:10

13Answers

MavenEclipseplugininstallationstepbystep:
1.OpenEclipseIDE
2.ClickHelp>InstallNewSoftware...
3.ClickAddbuttonattoprightcorner
4.Atpopup:fillupNameas"M2Eclipse"andLocationas
"http://download.eclipse.org/technology/m2e/releases "or
http://download.eclipse.org/technology/m2e/milestones/1.0
5.NowclickOK
Afterthatinstallationwouldbestarted.
AnotherwaytoinstallMavenpluginforEclipse:
1.OpenEclipse
2.GotoHelp>EclipseMarketplace
3.SearchbyMaven
4.Click"Install"buttonat"MavenIntegrationforEclipse"section
5.Followtheinstructionstepbystep
AftersuccessfulinstallationdothefollowingsinEclipse:

17

80

IAmYourFaja
105

5,097

77

260

512

1.GotoWindow>Preferences
2.Observe,Mavenisenlistedatleftpanel
Finally,
1.Clickonanexistingproject
2.SelectConfigure>ConverttoMavenProject
editedDec30'15at11:34

answeredNov30'12at6:26

Community

RiponAlWasim

13.8k

17

80

105

:*Loveyougreatjob anas Jul2'14at7:31

2 Ihavetiredthesestepsbutnotinstall,Igotsomeerrorwhichdetailbelow......Cannotcompletetheinstall
becauseoneormorerequireditemscouldnotbefound.Softwarebeinginstalled:m2eMavenIntegration
forEclipse(includesIncubatingcomponents)1.5.0.201406060033(org.eclipse.m2e.feature.feature.group
1.5.0.201406060033)KrunalPatelOct6'14at6:31
@KrunalPatel:haveyoutriedfromMarketplace? RiponAlWasim Oct13'14at6:21
IhavethesameCannotcompletetheinstallbecauseoneormorerequireditemscouldnotbefound.

Softwarebeinginstalled:m2eslf4joverlogbacklogging(Optional)1.5.0.201406060033
(org.eclipse.m2e.logback.feature.feature.group1.5.0.201406060033)didn'tseethemarketplaceoption
underhelp.DiegoOct21'14at0:44
3 Eclipsejunodoesntsupportmaven1.5..stilltheyhavenotaddedcapabilityof1.5sotry1.4or1.3
download.eclipse.org/technology/m2e/releases/1.3download.eclipse.org/technology/m2e/releases/1.4
AlvinMar3'15at6:47

By"useinstallaMavenpluginanduseit"IamsureyouarelookingforaEclipsepluginthatwill
performMavenfunctionswithintheIDE.Ifso,M2Eisagoodchoice.Youwillfindalotofhelp
withintheEclipseinstallationonceyouinstallM2E.
ThatsaidconsideringthatyouarestartingoffusingMavenitwouldgoalongwaytohavea
goodunderstandingofthebasicconcepts.UsingM2Ecouldhidesomeofthedetailswhichcould
leadtoincompleteorincorrectinterpretationofMaven'sbehaviorandthereforeproblems
downstream.
SomegoodMavenonlinereferencesare:
Maven'sowndocumentationwhichyouhavefound.Besuretoseethedocsoftheplugins
thatyouuse
Sonatype'sMavenbook
answeredDec24'11at12:04

SriSankaran
5,129

22

3 ButhowdoyouinstallM2Eoneclipse?(IactuallyneedtoinstallittoMuleStudio..o.O)davidJan5'12
at17:46
IamnotfamiliarwithMuleStudio.IfitisapluginforEclipse3.7(a.k.a.Indigo)youshouldbeabletoinstall

M2EfromtheEclipseMarketplace(Help>EclipseMarketplace...:Searchfor"m2e"andselect"Maven
IntegrationforEclipse").AlternativelyyoucandownloaditfromtheM2Ewebsite(eclipse.org/m2e)
SriSankaranJan5'12at21:46
ihaveinstalledthepluginanditrytoaddsomesources(artifactorsomethingithink)andtheplugincan't

findwhereisinstalled,netheiritrytodownloadfromthepluginandcan'tfindhowdoit...
EnriqueSanMartnMay15'13at12:09
"YouwillfindalotofhelpwithintheEclipseinstallationonceyouinstallM2E."butwhere?There'snothing

intheinstalledhelp(Help>HelpContents).MartinSchrderFeb27'15at14:01
@MartinSchrderIwrotethatover3yearsagoanditwasvalidthen.IamsorrybutIhaven'tkeptupwith

Eclipsesincethen.SriSankaranFeb27'15at21:05

IFyouwanttoinstallMaveninEclipse(JavaEE)IndigoThenfollowtheseSteps:
1.Eclipse>Help>InstallNewSoftware.
2.Type"http://download.eclipse.org/releases/indigo/"&HitEnter.

36

3.Expand"Collaboration"tag.
4.SelectMavenpluginfromthere.
5.Clickonnext.
6.Accepttheagreement&clickfinish.
AfterinstallingthemavenitwillaskforrestartingtheEclipse,Sorestarttheeclipseagaintosee
thechanges.
answeredDec25'14at19:04

MukeshKumar
101

Thanksalot..Ihadtriedalltheoptiongvenabovebutnoneworkedforme.EverytimeIwasgetting"cannot

installduetodependencyfailure"errror.Yoursolutionworked.MyselfASHMay5'15at13:25
Workedforme.ThanksalotMukesh. KushalJayswal Nov19'15at12:21

FirstinstallmaveninyoursystemandsetMavenenvironmentvariables
1.M2_HOME:....\apachemaven3.0.5\maveninstalledpath
2.M2_Repo:D:\maven_repo\Ifchangemavenrepolocation
3.M2:%M2_HOME%\bin
StepstoConfiguresmavenonEclipseIDE:
SelectWindow>PreferencesNote:IfMavenoptionisnotpresent,thenaddmaven3to
eclipseorinstallit.
AddtheMavenlocationofyoursystem
Tocheckmavenisconfiguredproperly:
OpenEclipseandclickonWindows>Preferences
ChooseMavenfromleftpanel,andselectinstallations.
ClickonMaven>"UserSettings"optionformleftpanel,tochecklocalrepositorylocation.
editedMay6'14at7:28

answeredMay6'14at6:38

AnilSatija
164

CheckThis
insteadtoavoidthiserror:
Cannotcompletetheinstallbecauseoneormorerequireditemscouldnotbefound.Software
beinginstalled:m2eslf4joverlogbacklogging(Optional)1.6.1.201506252338
(org.eclipse.m2e.logback.feature.feature.group1.6.1.201506252338)Missingrequirement:
MavenIntegrationforEclipse1.6.0.201505262032(org.eclipse.m2e.core1.6.0.20150526
2032)requires'bundlecom.google.guava[14.0.1,16.0.0)'butitcouldnotbefoundMissing
requirement:MavenIntegrationforEclipse1.6.1.201506252338(org.eclipse.m2e.core
1.6.1.201506252338)requires'bundleorg.eclipse.osgi3.10.0'butitcouldnotbefound
Cannotsatisfydependency:From:MavenIntegrationforEclipse1.6.0.201505262032
(org.eclipse.m2e.core.ui1.6.0.201505262032)To:bundleorg.eclipse.m2e.core[1.6.0,1.7.0)
Cannotsatisfydependency:From:MavenIntegrationforEclipse1.6.1.201506252338
(org.eclipse.m2e.core.ui1.6.1.201506252338)To:bundleorg.eclipse.m2e.core[1.6.0,1.7.0)
Cannotsatisfydependency:From:m2elogbackappender1.6.1.201506252338
(org.eclipse.m2e.logback.appender1.6.1.201506252338)To:bundleorg.eclipse.m2e.core.ui
[1.6.0,1.7.0)Cannotsatisfydependency:From:m2eslf4joverlogbacklogging(Optional)
1.6.1.201506252338(org.eclipse.m2e.logback.feature.feature.group1.6.1.201506252338)
To:org.eclipse.m2e.logback.appender[1.6.1.201506252338]
source
editedJul27'15at11:49

UmairM
785

answeredJul27'15at11:08

HojatModaresi
18

41

1 Thanks!Thissolution(download.eclipse.org/technology/m2e/releases/1.3)worksonKelper!KenPega
Nov5'15at6:01

AlsoworksonIBMRational8.0.3.VulpoJan15at8:29

IwashavingproblemsbecauseIwaslookingtoinstalltheMavenpluginonMuleStudio
notEclipse..
[forMuleStudio1.2orbelowdosteps(1)and(2)otherwisejumptostep(2)]
InstructionsforMuleStudio(ONLYversions1.2andbelow):(1)Help>installnew
software...
HeliosUpdateSitehttp://download.eclipse.org/releases/helios/

InstructionsforMuleStudio(1.3)OREclipse:(2)Help>installnewsoftware...
MavenURL:http://download.eclipse.org/technology/m2e/releases
editedJul2'12at18:19

answeredJan5'12at21:07

david
304

19

Ihavealsocomeacrossthesameissueandfiguredouttheissuehereisthesolution.
LotofpeopleassumesEclipseandmavenintergrationistoughbutitsveryeassy.
1)downloadthemavenandunzipitintoyourfavoritedirectory.
Ex:C:\satyam\DEV_TOOLS\apachemaven3.1.1
2)SettheenvironmentvariableforMaven(Hopeeveryoneknowswheretogotosetthis)
Inthesystemvariable:Variable_name=M2_HOMEVariable_Value
=C:\satyam\DEV_TOOLS\apachemaven3.1.1
NextinthesameSystemVariableyouwillfindthevariablenamecalledPath:justeditthepath
variableandaddM2_HOMEdetailslikewiththeexistingvalues.
%M2_HOME%/bin;

sointhesecondstepnowyouaredonesettingtheMavenstufftoyoursystem.youneedto
crosscheckitwhetheryoursettingiscorrectornot,gotocommandpromptandtypemvn
versionitshoulddisplythepathofyourMaven
3)OpentheeclipseandgotoInstallnewsoftwareandtypeM2EPlugininstallandrestartthe
Eclipse
withtheabove3stepsyouaredonewithMavenandMavenPluginwitheclipse
4)Mavenisused.m2foldertodownloadallthejars,itwillfindinEx:C:\Users\tempsakat.m2
underthisfolderonesettings.xmlfileandonerepositoryfolderwillbethere
5)gotoWindwopreferencesofyourEclipseandtypeMaventhenselectUserSettingsfromleft
menuthengivethepathofthesettings.xmlhere.
nowyouaredone...
answeredJun17'14at15:04

user3749024
16

ThelatestversionofEclipse(Luna)andSpringToolSuite(STS)comeprepackagedwith
supportforMaven,GITandJava8.
answeredJul11'14at21:46

A.Rick
51

Whilethislinkmayanswerthequestion,itisbettertoincludetheessentialpartsoftheanswerhereand

providethelinkforreference.Linkonlyanswerscanbecomeinvalidifthelinkedpagechanges.Stedy Sep
18'14at16:56

IhavejustincludeMavenintegrationpluginatEclipse:

Justfollowthebellowsteps:
Ineclipse,fromuppermenuitemselect"Help">clickon"InstallNewSoftware..">then
clickon"Add"button.
setthe"MavenAPI"atnametextboxand
"http://download.eclipse.org/technology/m2e/releases "atlocationtextbox.
pressOkandselecttheMavenprojectandinstallbyclickingnextnext.
answeredFeb17'15at17:52

SyefulIslam
1,692

Ihavejustinclude

Maven

integrationpluginwith

Eclipse

Justfollowthebellowsteps:
In eclipse ,fromuppermenuitemselect
on Add button.
setthe MavenAPI atnametextboxand
locationtextbox.
press

OK

andselectthe

Maven

Help

>clickon

InstallNewSoftware..

>thenclick

http://download.eclipse.org/technology/m2e/releases

projectandinstallbyclicking

next

editedApr11'15at13:05

answeredApr11'15at12:30

RyanK
2,200

at

JenisKasundra
4

14

24

11

Triedeverystuffbutthisoneworked..1.Eclipse>Help>InstallNewSoftware.2.Type"
http://download.eclipse.org/releases/indigo/"&HitEnter.3.Expand"Collaboration"tag.4.
SelectMavenpluginfromthere.5.Clickonnext.6.Accepttheagreement&clickfinish.After
installingthemavenitwillaskforrestartingtheEclipse,Sorestarttheeclipseagaintoseethe
changes.
ThanksMukeshforGuiding.
answeredDec4'15at7:28

user1452911
1

YouhavetofollowthefollowingstepsintheEclipseIDE
1.GotoHelp>InstallNewSoftware
2.Clickaddbuttonattoprightcorner
3.Inthepopupcoming,typeinnameas"Maven"andlocationas
"http://download.eclipse.org/technology/m2e/releases "
4.ClickonOK.
Mavenintegrationforeclipsewillbedowloadedandinstalled.Restarttheworkspace.
Inthe.m2folder(usuallyunderC:\user\directory)addsettings.xml.Giveproperproxyand
profiles.NowcreateanewMavenprojectineclipse.
answeredMar7at8:44

sunitha
146

Mavenisabuildtool.Mavenandmavenpluginsaidinbuildingprojects.Itisnotaprogramming
tool.Itdoesnotgeneratecodeforyou(exceptperhapsquickstartdummyclasses).Youdonot
simplyusemavenpluginsyouusethemasneeded,basedonyourrequirement.
Youmaywanttofirstgetcomfortablewithmavenstandaloneandthengetintousingitfrom
Eclipse.Eclipsemavensupportusingism2eisfairlypopularanditisnotevidentwhereyour
challengeis(especiallyconsideringyouareanewbie).
answeredDec24'11at5:39

Raghuram
33.9k

61

88

23 Thequestionis:Maveninstallationineclipse.Raghuram'sanswerisnotpreciseaccordingtoposter's
questionRiponAlWasimNov30'12at6:17