Skip to content

Commit

Permalink
Updated README.md to include the GitHub Package Registry server conf…
Browse files Browse the repository at this point in the history
…iguration for Maven settings.
  • Loading branch information
backwind1233 authored and edburns committed May 1, 2024
1 parent dec5bad commit 409b51f
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,30 @@ Please follow these steps:
- Click Generate token and make sure to copy the token.

2. Configure Maven Settings
- Locate or create the settings.xml file in your .m2 directory.
- Locate or create the settings.xml file in your .m2 directory(~/.m2/settings.xml).
- Add the GitHub Package Registry server configuration with your username and the PAT you just created. It should look something like this:
```xml
<settings>
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0
https://maven.apache.org/xsd/settings-1.2.0.xsd">

<!-- other settings
...
-->

<servers>
<server>
<id>github</id>
<username>YOUR_GITHUB_USERNAME</username>
<password>YOUR_PERSONAL_ACCESS_TOKEN</password>
</server>
</servers>

<!-- other settings
...
-->

</settings>
```

Expand Down

0 comments on commit 409b51f

Please sign in to comment.