Skip to content

Instantly share code, notes, and snippets.

@ixiaohei
Created January 11, 2019 07:17
Show Gist options
  • Save ixiaohei/365e4c7b167ee542c529d21983147cb9 to your computer and use it in GitHub Desktop.
Save ixiaohei/365e4c7b167ee542c529d21983147cb9 to your computer and use it in GitHub Desktop.

maven tips

encrypt master password

mvn --encrypt-master-password

settings-security.xml

<settingsSecurity>
	<master>{xxxxx}</master>
</settingsSecurity>

encrpt password

mvn --encrypt-password

setting server

<servers>
    <server>
        <id>server</id>
        <username>username</username>
        <password>{xxxx}</password>
    </server>
</servers>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment