Skip to content

Commit 81350a3

Browse files
committed
Updating reference in documentation for resolving from github packages
1 parent 61b57cf commit 81350a3

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,55 @@ Put this in your POM.xml.
4141
</dependency>
4242
```
4343

44+
You need to tell Maven how to access GitHub packages. So you need to edit your `settings.xml`.
45+
46+
Typically you can do this by looking in `~/.m2/settings.xml`. You will need a GitHub Personal Access Token, which
47+
you can do here (once you're logged in): https://github.com/settings/tokens
48+
49+
An example configuration (`settings.xml`) would be:
50+
51+
```
52+
<settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
53+
xmlns="http://maven.apache.org/SETTINGS/1.0.0"
54+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
55+
http://maven.apache.org/xsd/settings-1.0.0.xsd">
56+
57+
<activeProfiles>
58+
<activeProfile>github</activeProfile>
59+
</activeProfiles>
60+
61+
<profiles>
62+
<profile>
63+
<id>github</id>
64+
<repositories>
65+
<repository>
66+
<id>central</id>
67+
<url>https://repo1.maven.org/maven2</url>
68+
<releases>
69+
<enabled>true</enabled>
70+
</releases>
71+
<snapshots>
72+
<enabled>false</enabled>
73+
</snapshots>
74+
</repository>
75+
<repository>
76+
<id>github</id>
77+
<name>GitHub OWNER Apache Maven Packages</name>
78+
<url>https://maven.pkg.github.com/digital-delivery-academy/selenium-pom-framework</url>
79+
</repository>
80+
</repositories>
81+
</profile>
82+
</profiles>
83+
<servers>
84+
<server>
85+
<id>github</id>
86+
<username>GITHUB_USERNAME</username>
87+
<password>GITHUB_PERSONAL_ACCESS_TOKEN_FOR_PACKAGES</password>
88+
</server>
89+
</servers>
90+
</settings>
91+
```
92+
4493
See the Documentation in the Wiki to see how to write a test.
4594

4695
## Documentation

0 commit comments

Comments
 (0)