File tree Expand file tree Collapse file tree 1 file changed +85
-0
lines changed Expand file tree Collapse file tree 1 file changed +85
-0
lines changed Original file line number Diff line number Diff line change
1
+ # install the package
2
+
3
+ firstly, you should add the following line to your ` ~/.m2/settings.xml ` file:
4
+
5
+ ``` xml
6
+ <activeProfiles >
7
+ <activeProfile >github</activeProfile >
8
+ </activeProfiles >
9
+ <profiles >
10
+ <profile >
11
+ <id >github</id >
12
+ <repositories >
13
+ <repository >
14
+ <id >central</id >
15
+ <url >https://repo1.maven.org/maven2</url >
16
+ </repository >
17
+ <repository >
18
+ <id >github</id >
19
+ <url >https://maven.pkg.github.com/Mryan2005/JavaPlusPlus</url >
20
+ <snapshots >
21
+ <enabled >true</enabled >
22
+ </snapshots >
23
+ </repository >
24
+ </repositories >
25
+ </profile >
26
+ </profiles >
27
+
28
+ <servers >
29
+ <server >
30
+ <id >github</id >
31
+ <username >Mryan2005</username >
32
+ <password >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</password >
33
+ </server >
34
+ </servers >
35
+ ```
36
+
37
+ And then you will see the following code in your ` ./m2/settings.xml ` file
38
+
39
+ ``` xml
40
+ <settings xmlns =" http://maven.apache.org/SETTINGS/1.0.0"
41
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
42
+ xsi : schemaLocation =" http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" >
43
+ // ...
44
+ <activeProfiles >
45
+ <activeProfile >github</activeProfile >
46
+ </activeProfiles >
47
+ <profiles >
48
+ <profile >
49
+ <id >github</id >
50
+ <repositories >
51
+ <repository >
52
+ <id >central</id >
53
+ <url >https://repo1.maven.org/maven2</url >
54
+ </repository >
55
+ <repository >
56
+ <id >github</id >
57
+ <url >https://maven.pkg.github.com/Mryan2005/JavaPlusPlus</url >
58
+ <snapshots >
59
+ <enabled >true</enabled >
60
+ </snapshots >
61
+ </repository >
62
+ </repositories >
63
+ </profile >
64
+ </profiles >
65
+
66
+ <servers >
67
+ <server >
68
+ <id >github</id >
69
+ <username >Mryan2005</username >
70
+ <password >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</password >
71
+ </server >
72
+ </servers >
73
+ // ...
74
+ </settings >
75
+ ```
76
+
77
+ Then you can add the following code to your ` pom.xml ` file:
78
+
79
+ ``` xml
80
+ <dependency >
81
+ <groupId >top.mryan2005.javaplusplus</groupId >
82
+ <artifactId >javaplusplus</artifactId >
83
+ <version >1.0-SNAPSHOT</version >
84
+ </dependency >
85
+ ```
You can’t perform that action at this time.
0 commit comments