美文网首页
九、Maven: ~/.m2/settings.xml 之ser

九、Maven: ~/.m2/settings.xml 之ser

作者: yust5273 | 来源:发表于2019-05-30 08:39 被阅读0次

    当你的私服需要登录的时候,这里可以配置账号密码

    <!-- servers
       | This is a list of authentication profiles, keyed by the server-id used within the system.
       | Authentication profiles can be used whenever maven must make a connection to a remote server.
       |-->
      <servers>
        <!-- server
         | Specifies the authentication information to use when connecting to a particular server, identified by
         | a unique name within the system (referred to by the 'id' attribute below).
         |
         | NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are
         |       used together.
         |
        <server>
          <id>deploymentRepo</id>
          <username>repouser</username>
          <password>repopwd</password>
        </server>
        -->
    
        <!-- Another sample, using keys to authenticate.
        <server>
          <id>siteServer</id>
          <privateKey>/path/to/private/key</privateKey>
          <passphrase>optional; leave empty if not used.</passphrase>
        </server>
        -->
      </servers>
    

    相关文章

      网友评论

          本文标题:九、Maven: ~/.m2/settings.xml 之ser

          本文链接:https://www.haomeiwen.com/subject/ungptctx.html