Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

eclipse maven - java build path variables

 
manu chaox
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using the m2eclipse plugin?
 
manu chaox
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My question is about what benefits carry using maven variables in libraries of a project ?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic