Skip to content

Commit fe59985

Browse files
authored
Update README.md
1 parent 3460275 commit fe59985

1 file changed

Lines changed: 45 additions & 1 deletion

File tree

README.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,47 @@
11
# Central
22

3-
Central repository for XDEV's GitHub packages
3+
Central repository for [XDEV's GitHub packages](https://github.com/orgs/xdev-software/packages?repo_name=central)
4+
5+
## How to use it?
6+
7+
https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry#authenticating-with-a-personal-access-token
8+
9+
``~/.m2/settings.xml``
10+
```xml
11+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
12+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
14+
http://maven.apache.org/xsd/settings-1.0.0.xsd">
15+
16+
<activeProfiles>
17+
<activeProfile>github-xdev</activeProfile>
18+
</activeProfiles>
19+
20+
<profiles>
21+
<profile>
22+
<id>github-xdev</id>
23+
<repositories>
24+
<repository>
25+
<id>central</id>
26+
<url>https://repo.maven.apache.org/maven2</url>
27+
</repository>
28+
<repository>
29+
<id>github</id>
30+
<url>https://maven.pkg.github.com/xdev-software/central</url>
31+
<snapshots>
32+
<enabled>true</enabled>
33+
</snapshots>
34+
</repository>
35+
</repositories>
36+
</profile>
37+
</profiles>
38+
39+
<servers>
40+
<server>
41+
<id>github-xdev</id>
42+
<username>USERNAME</username>
43+
<password>TOKEN</password>
44+
</server>
45+
</servers>
46+
</settings>
47+
```

0 commit comments

Comments
 (0)