Post

Nexus Repository 추가

1. hosted Repository Add

img001

img002

2. Artifact Upload

img003

img004

1) From POM

img005

img006

img007

img008

img009

img010

2) GAV Parameters

img011

img012

3. 새로 생성된 Repository에 추가된 Index 확인

img013

4. Public Repositories에 추가

img014

5. Public Repositories에 추가된 Index 확인

img015

6. 적용

  • pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<repositories>
    <repository>
        <id>central</id>
        <url>http://서버주소:8081/nexus/content/groups/public</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
 
    <repository>
        <id>egovframe</id>
        <!-- <url>http://maven.egovframe.kr:8080/maven/</url> -->
        <url>http://서버주소:8081/nexus/content/groups/public</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
 
    <repository>
        <id>egovframe2</id>
        <!-- <url>http://www.egovframe.go.kr/maven/</url> -->
        <url>http://서버주소:8081/nexus/content/groups/public</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
 
</repositories>
 
<pluginRepositories>
    <pluginRepository>
        <id>central</id>
        <url>http://서버주소:8081/nexus/content/groups/public</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </pluginRepository>
</pluginRepositories>

[출처 및 참고]

This post is licensed under CC BY 4.0 by the author.