File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why is Eclipse/Maven project not picking up the values from settings.xml?

 
Rajkumar Masanaiyan
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have saved the configuration at the bottom in c:\users\<username>\.m2\settings.xml but pom.xml created as part of Maven Project in Eclipse is not picking up the values. The effective POM still has



And what should be the http://ebr.springsource.com/respository equivalent of



settings.xml
--------------
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) If you run mvn from the command line, is settings.xml being included correctly?

2) In Eclipse, what is shown in Windows | Preferences | Maven | User Settings? (Also, try clicking Update Settings in the same dialog.)
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to point Eclipse at your settings file as Peter has indicated in point 2 above.
 
Rajkumar Masanaiyan
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter Johnson wrote:1) If you run mvn from the command line, is settings.xml being included correctly?

2) In Eclipse, what is shown in Windows | Preferences | Maven | User Settings? (Also, try clicking Update Settings in the same dialog.)


Thank you James & Peter. The settings are being picked up but I think the tags are wrong.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What "tags"?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic