Skip to content

Commit 84105f7

Browse files
committed
Migrated maven repo to a self-hosted server
1 parent a87d356 commit 84105f7

File tree

2 files changed

+6
-37
lines changed

2 files changed

+6
-37
lines changed

README.MD

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,13 @@ See https://github.com/JimmyCushnie/SUCC for the official documentation. See the
33

44
# How to add as a dependency
55
## Maven
6-
First, you need to create an access token with the read:packages permission.
7-
<details><summary>Click this for a tutorial on how to get a token</summary>
8-
<p>
9-
Click on your profile -> Settings -> Developer settings -> Personal access tokens
10-
-> Generate new token.
11-
</p>
12-
<p>
13-
Under Note enter the name for your token (can be anything),
14-
then you need to tick the read:packages entry, so that you can download github packages.
15-
</p>
16-
<p>
17-
After that, click on Generate token, then copy the token code that the site generates,
18-
and save it somewhere, because it won't be shown again.
19-
</p>
20-
</details>
21-
22-
After you have your token, open or create the file under the path `~/.m2/settings.xml` or `C:\Users\YOUR_USERNAME\.m2\settings.xml`
23-
and add the following text:
24-
```xml
25-
<settings>
26-
<servers>
27-
<server>
28-
<id>Succ4J-mvn-repo</id>
29-
<username>USERNAME</username>
30-
<password>TOKEN</password>
31-
</server>
32-
</servers>
33-
</settings>
34-
```
35-
Replace USERNAME with your github username, and TOKEN with the token key you just created. Save and close the file.
36-
This allows maven to access github-hosted repositories.
376

387
Add the following repository into your project's pom.xml:
398
```xml
409
<repositories>
4110
<repository>
42-
<id>Succ4J-mvn-repo</id>
43-
<url>https://maven.pkg.github.com/FalsePattern/Succ4J/</url>
11+
<id>FalsePattern-maven-repo</id>
12+
<url>https://falsepattern.ddns.net/maven2/</url>
4413
</repository>
4514
</repositories>
4615
```
@@ -57,7 +26,7 @@ and then include Succ4J as a dependency:
5726
Replace VERSION with the version you want to use
5827

5928
## Downloading as a standalone jar
60-
Head to the packages tab, select the latest version, and there you can download it as a separate .jar
29+
Go to the [succ4j repository](https://falsepattern.ddns.net/maven2/com/github/falsepattern/succ4j/), choose your version, download succ4j-VERSION.jar and add it as a dependency to your project.
6130

6231
# Changelog:
6332
1.2.0: Added annotation @GenericID, which can be used in generic classes to specify which generic type is used by a field based on an index (see ComplexChild.java in the tests for example)

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@
6868
</dependencies>
6969
<distributionManagement>
7070
<repository>
71-
<id>github</id>
72-
<name>GitHub FalsePattern Apache Maven Packages</name>
73-
<url>https://maven.pkg.github.com/FalsePattern/Succ4J</url>
71+
<id>FalsePattern-maven-repo</id>
72+
<name>FalsePattern Maven Packages</name>
73+
<url>https://falsepattern.ddns.net/maven2/</url>
7474
</repository>
7575
</distributionManagement>
7676

0 commit comments

Comments
 (0)