yogesh meghnani
yogesh meghnani

Reputation: 739

Could not read setting.xml file for maven

I had downloaded my maven plugin from Eclipse Market Place and now I need to set setting.xml file in window-preference-maven-user settings block, but I am unable to find setting.xml file. I had also looked in .m2 directory but only repository directory is there. Please tell where should I look to get setting.xml. Please also tell me what is the term proxy in setting.xml file. I am new to maven so I don't know much about this.

Upvotes: 0

Views: 13062

Answers (2)

parlad
parlad

Reputation: 1163

There are two locations where a settings.xml file may live:

  1. The Maven install: ${maven.home}/conf/settings.xml
  2. A user’s install: ${user.home}/.m2/settings.xml

See, this for detail overview.

Also , maven use maven use proxy setting to download artifacts in corporate environment. Like if you are running maven behind firewall in corporate, Maven need to be configured with proxy settings, See here for detail.

Upvotes: 2

Shailesh Pratapwar
Shailesh Pratapwar

Reputation: 4224

Download the maven installation from here. Extract the zip and there will be settings.xml.

Proxy are used so that maven use that information to download artifacts in corporate environments.

Upvotes: 2

Related Questions