Authentication Configuration remote Maven repository [the] Maven

     Most remote repository can be accessed without authentication, but sometimes due to security reasons, we need to provide authentication information to access some of the remote repository.
     Authentication information must be configured in settings.xml file:
<servers>
    <server>
        <id>my-proj</id>
        <username>repo-user</username>
        <password>repo-pwd</password>
    </server>
</servers>

  The user authentication warehouse called repo-user, authentication password for the repo-pwd. The key here is the id element, settings.xml the id server elements must be fully consistent with the id of the repository requires authentication element in the POM.

Guess you like

Origin www.cnblogs.com/756623607-zhang/p/12182362.html