File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes eclipse maven - java build path variables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "eclipse maven - java build path variables" Watch "eclipse maven - java build path variables" New topic
Author

eclipse maven - java build path variables

manu chaox
Ranch Hand

Joined: Apr 10, 2006
Posts: 110
Hi,

I have beginner question. I have a project in eclipse with enable maven. I have downloaded neccessary jars via maven and everything work properly.
There are no maven variables in java build path.

Could someone explain to me what are benefits of adding MVN_REPO into variables in java buld path ?






Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Are you using the m2eclipse plugin?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
manu chaox
Ranch Hand

Joined: Apr 10, 2006
Posts: 110
My question is about what benefits carry using maven variables in libraries of a project ?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

Is MVN_REPO a typo? Did you really mean M2_REPO? This variable indicates the repository path. I use it in Eclipse to add JARs in the Maven repository to projects in Eclipse. I use this only for projects that I did not create as a Maven project - all such projects use the repository location defined in the Maven settings.xml file. (This last point is why Martijn asked if you have m2eclipse.)


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: eclipse maven - java build path variables