`
wbj0110
  • 浏览: 1549533 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论
阅读更多

Repositories to deploy to are defined in a project in the distributionManagement section. However, you cannot put your username, password, or other security settings in that project. For that reason, you should add a server definition to your own settings with an id that matches that of the deployment repository in the project.

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.

come from http://maven.apache.org/guides/mini/guide-deployment-security-settings.html

分享到:
评论

相关推荐

    Microsoft SQL Server 2012 Integration Services

    Discover how to: Use SSIS to extract, transform, and load data from multiple data sources Apply best practices to optimize package and project configuration and deployment Manage security settings in...

    Microsoft SharePoint 2010 and Windows PowerShell 2.0

    Authoring, debugging, and executing script accessing farm settings with PowerGUI and PowerShell ISE 10 Accessing advanced SharePoint 2010 functionality with external libraries 17 Creating a custom ...

    Microsoft Press-Programming Microsoft Outlook And Exchange 2003 (2 of 2)

    Form Region Locations, Properties, and Registry Settings 140 Form Region Walkthrough 141 Summary 145 Chapter 6: COM Addins 147 Managed or Unmanaged Code? 147 IDTExtensibility2 and Trusted ...

    《Windows 7 资源大全》 [PDF]

    In addition, Direct from the Source sidebars offer deep insights and troubleshooting tips from the Windows 7 team.Get expert guidance on how to: Use Microsoft Deployment Toolkit best practices and ...

    Microsoft Press-Programming Microsoft Outlook And Exchange 2003 (1 of 2)

    Form Region Locations, Properties, and Registry Settings 140 Form Region Walkthrough 141 Summary 145 Chapter 6: COM Addins 147 Managed or Unmanaged Code? 147 IDTExtensibility2 and Trusted ...

    Two Scoops of Django 1.11: Best Practices for the Django Web Framework.pdf

    Chapter 5: Settings and Requirements Files Chapter 6: Model Best Practices Chapter 7: Queries and the Database Layer Chapter 8: Function- and Class-Based Views Chapter 9: Best Practices for Function-...

    Two Scoops of Django 1.11

    Chapter 5: Settings and Requirements Files Chapter 6: Model Best Practices Chapter 7: Queries and the Database Layer Chapter 8: Function- and Class-Based Views Chapter 9: Best Practices for Function-...

    Microsoft SharePoint 2010 Developer Reference

    Deployment, Security, and Versioning 233 Deployment and Versioning . 233 SafeControls and Cross-Site-Scripting SafeGuard . 236 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....

    Mastering.Spring.Cloud

    Connection settings and timeouts Secure headers Management endpoints Providing Hystrix fallback Zuul filters Predefined filters Custom implementations Using Spring Cloud Gateway Enable Spring Cloud ...

    spring-boot-reference.pdf

    20.4. Global Settings 20.5. Remote Applications 20.5.1. Running the Remote Client Application 20.5.2. Remote Update 21. Packaging Your Application for Production 22. What to Read Next IV. Spring Boot ...

    Developing Flex Applications 910p dda_doc88_cracker.zip

    The relationship between MXML and ActionScript classes. . . . . . . . . . . . . . . . . . 37 How MXML relates to standards. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43...

Global site tag (gtag.js) - Google Analytics