Skip to content

Commit

Permalink
README - fix formatting for github view
Browse files Browse the repository at this point in the history
  • Loading branch information
dazza-codes committed Jan 19, 2017
1 parent de270e8 commit a68ed1c
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,31 +64,30 @@ Once the Oracle sign-up/sign-in and licence agreement is accepted, add the sign-
credentials to maven settings. Follow maven instructions to encrypt the passwords, see
- https://maven.apache.org/guides/mini/guide-encryption.html
- encrypt a master password:

$ mvn --encrypt-master-password
Master password: TYPE_YOUR_PASSWD_HERE
{L+bX9REL8CAH/EkcFM4NPLUxjaEZ6nQ79feSk+xDxhE=}

- add this master password to `~/.m2/settings-security.xml` in a block like:

<settingsSecurity>
<master>{L+bX9REL8CAH/EkcFM4NPLUxjaEZ6nQ79feSk+xDxhE=}</master>
</settingsSecurity>

- encrypt server password:

$ mvn --encrypt-password
Password: TYPE_YOUR_PASSWD_HERE
{JhJfPXeAJm0HU9VwsWngQS5qGreK29EQ3fdm/7Q7A7c=}

- add this encrypted password to `~/.m2/settings.xml` using this template:

<servers>
<server>
<id>maven.oracle.com</id>
<username>your_oracle_username</username>
<password>{JhJfPXeAJm0HU9VwsWngQS5qGreK29EQ3fdm/7Q7A7c=}</password>

<configuration>
<basicAuthScope>
<host>ANY</host>
Expand All @@ -108,7 +107,7 @@ credentials to maven settings. Follow maven instructions to encrypt the passwor
</configuration>
</server>
</servers>

- For additional information about maven settings, see
- https://maven.apache.org/settings.html
- https://books.sonatype.com/nexus-book/reference/_adding_credentials_to_your_maven_settings.html
Expand Down

0 comments on commit a68ed1c

Please sign in to comment.