Skip to content

Instantly share code, notes, and snippets.

@shark8me
Last active September 15, 2021 15:21
Show Gist options
  • Select an option

  • Save shark8me/5165a4090a175492b23a2b0feb5ed0ea to your computer and use it in GitHub Desktop.

Select an option

Save shark8me/5165a4090a175492b23a2b0feb5ed0ea to your computer and use it in GitHub Desktop.
Maven settings.xml entry to allow for download of jars from Github registry
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>
<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
</repository>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/github_username/*</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
<servers>
<server>
<id>github</id>
<username>user</username>
<password>Github Personal access token</password>
</server>
</servers>
</settings>
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment