打开maven的settings.xml配置文件,添加以下代码,将私服IP地址换成实际地址即可
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<profile>
<id>
public
<
/
id
>
<repositories>
<repository>
<id>
public
-
nexus
<
/
id
>
<url>
http
:
//私服IP地址:9081/nexus/content/groups/public/</url>
<releases>
<enabled>
true
<
/
enabled
>
<
/
releases
>
<snapshots>
<enabled>
true
<
/
enabled
>
<
/
snapshots
>
<
/
repository
>
<
/
repositories
>
<
/
profile
>
<
/
profiles
>
<activeProfiles>
<activeProfile>
public
<
/
activeProfile
>
<
/
activeProfiles
>
|