0
点赞
收藏
分享

微信扫一扫

Security and Deployment Settings


Repositories to deploy to are defined in a project in the distributionManagement

In addition, some repositories may require authorisation to download from, so the corresponding settings can be specified in a server element in the same way.

Which settings are required will depend on the type of repository you are deploying to. As of the first release, only SCP deployments and file deployments are supported by default, so only the following SCP configuration is needed:



<settings>
  .
  .
  <servers>
    <server>
      <id>repo1</id>
      <username>repouser</username>
      <!-- other optional elements:
        <password>my_login_password</password>
        <privateKey>/path/to/identity</privateKey> (default is ~/.ssh/id_dsa)
        <passphrase>my_key_passphrase</passphrase>
      -->
    </server>
  </servers>
  .
  .
</settings>



To encrypt passwords in these sections, refer to Encryption Settings.

Note: The settings descriptor documentation can be found on the Maven Local Settings Model Website.


举报

相关推荐

0 条评论