Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » obtaining jar files from dependancies defined in maven pom.xml file(maven integration)
icon5.gif  obtaining jar files from dependancies defined in maven pom.xml file [message #798941] Wed, 15 February 2012 08:52 Go to next message
Dave Young is currently offline Dave YoungFriend
Messages: 1
Registered: February 2012
Junior Member
I am new to eclipse. I am also new to maven! And also pretty new to spring!! I've installed the egit plugin successfully. I hope that somebody out there may be able to answer this query easily;

My maven commands execute nicely.

When I use maven (right click on the pom.xml file and use the "run as m2 build" command) it compiles my java source code, including resolving imports from the spring framework nicely. Very good.

However, within the Eclipse IDE itself, these references are underlined in red and show as being unresolved.

Does anybody know whether when maven dependancies are defined, that the relevant jar files are downloaded into the project such that eclipse can resolve them? Do they get added to the project classpath? Or is that purely restricted to "mavenland" and it is neccessary to also manually download and install those jar files and modify the project build classpath explicitly?

I feel like perhaps I am missing a vital step somewhere.

regards,

Dave Young

Re: obtaining jar files from dependancies defined in maven pom.xml file [message #799120 is a reply to message #798941] Wed, 15 February 2012 13:17 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2012.02.15 1:52, Dave Young wrote:
> I am new to eclipse. I am also new to maven! And also pretty new to
> spring!! I've installed the egit plugin successfully. I hope that
> somebody out there may be able to answer this query easily;
>
> My maven commands execute nicely.
>
> When I use maven (right click on the pom.xml file and use the "run as m2
> build" command) it compiles my java source code, including resolving
> imports from the spring framework nicely. Very good.
>
> However, within the Eclipse IDE itself, these references are underlined
> in red and show as being unresolved.
>
> Does anybody know whether when maven dependancies are defined, that the
> relevant jar files are downloaded into the project such that eclipse can
> resolve them? Do they get added to the project classpath? Or is that
> purely restricted to "mavenland" and it is neccessary to also manually
> download and install those jar files and modify the project build
> classpath explicitly?
>
> I feel like perhaps I am missing a vital step somewhere.
>
> regards,
>
> Dave Young

If you don't get a clear answer on this here, you might try the Eclipse
M2e forum which is home to Eclipse Maven questions. There is also an
Eclipse forum for EGit questions.

In the meantime, you're not obliged to use Maven with Eclipse if you
don't wish to. You can download and tie JARs to the Eclipse Build Path
without it if that's what you want to do. However, you should not have
to and the other forum will surely help you with this problem if no one
does here. (There are lots of Maven guys in this forum, but obviously in
the eclipse.m2e forum, everyone is a Maven guy.)
Previous Topic:JDK in Eclipse
Next Topic:Changing System Editor(s)
Goto Forum:
  


Current Time: Tue Apr 16 10:33:24 GMT 2024

Powered by FUDForum. Page generated in 0.14765 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top