Skip to content

Commit 4fcf7ad

Browse files
authored
Merge pull request #1670 from timothystone/maven
Issue 1669: Update GitHub Maven docs Super POM and context
2 parents 75d5262 + 5c9a66e commit 4fcf7ad

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

content/packages/guides/configuring-apache-maven-for-use-with-github-packages.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ If your instance has subdomain isolation enabled:
5757
<repository>
5858
<id>central</id>
5959
<url>https://repo1.maven.org/maven2</url>
60-
<releases><enabled>true</enabled></releases>
61-
<snapshots><enabled>true</enabled></snapshots>
6260
</repository>
6361
<repository>
6462
<id>github</id>
65-
<name>GitHub OWNER Apache Maven Packages</name>
66-
<url>https://{% if currentVersion == "free-pro-team@latest" %}maven.pkg.github.com{% else %}maven.HOSTNAME{% endif %}/OWNER/REPOSITORY</url>
63+
<url>https://{% if currentVersion == "free-pro-team@latest" %}maven.pkg.github.com{% else %}maven.HOSTNAME{% endif %}/OWNER/*</url>
64+
<snapshots>
65+
<enabled>true</enabled>
66+
</snapshots>
6767
</repository>
6868
</repositories>
6969
</profile>
@@ -99,13 +99,13 @@ If your instance has subdomain isolation disabled:
9999
<repository>
100100
<id>central</id>
101101
<url>https://repo1.maven.org/maven2</url>
102-
<releases><enabled>true</enabled></releases>
103-
<snapshots><enabled>true</enabled></snapshots>
104102
</repository>
105103
<repository>
106104
<id>github</id>
107-
<name>GitHub OWNER Apache Maven Packages</name>
108-
<url>https://HOSTNAME/_registry/maven/OWNER/REPOSITORY</url>
105+
<url>https://maven.pkg.github.com/OWNER/*</url>
106+
<snapshots>
107+
<enabled>true</enabled>
108+
</snapshots>
109109
</repository>
110110
</repositories>
111111
</profile>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{% data variables.product.prodname_registry %} supports `SNAPSHOT` versions of Apache Maven. To use a repository for downloading this type of artifact, you must enable SNAPSHOTS in your *~/.m2/settings.xml* file.
1+
{% data variables.product.prodname_registry %} supports `SNAPSHOT` versions of Apache Maven. To use the {% data variables.product.prodname_registry %} repository for downloading `SNAPSHOT` artifacts, enable SNAPSHOTS in the POM of the consuming project or your *~/.m2/settings.xml* file.

0 commit comments

Comments
 (0)