Secured repositories

Maven repositories can be protected for legitimate access. If a given repository is protected with HTTP Basic authentication, the corresponding credentials should be defined, as shown in the following configuration, under the server element of MAVEN_HOME/conf/settings.xml. The value of the id element should match the value of the repository id element:

<server>
  <id>central</id>
  <username>my_username</username>
  <password>my_password</password>
</server>

Note

If a given repository uses HTTP Basic authentication-based security, make sure that you talk to the server over Transport Layer Security (TLS). Plain HTTP will carry your credentials in cleartext. Read more about TLS from http://en.wikipedia.org/wiki/Transport_Layer_Security.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.30.19