forked from ParkingOS/parkingos_cloud_vue_server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
maven配置说明.txt
41 lines (41 loc) · 1.31 KB
/
maven配置说明.txt
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
maven 环境配置:
1、修改本地maven环境中的setting.xml文件,把下载地址改为
<mirror>
<id>local_mirror</id>
<mirrorOf>*</mirrorOf>
<name>local_mirror</name>
<url>http://106.75.7.55:8081/nexus/content/groups/public/</url>
</mirror>
<profiles>
<!-- 在setting中设置私服可以让本机的所有Maven项目都使用Maven私服 -->
<profile>
<id>nexus</id>
<repositories>
<repository>
<id>nexus_public</id>
<url>http://106.75.7.55:8081/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<!-- 插件仓库 -->
<pluginRepositories>
<pluginRepository>
<id>nexus_public</id>
<url>http://106.75.7.55:8081/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
2、在setting.xml文件中配置本地仓库目录:<localRepository>D:\user\mavenrepo</localRepository>
3、项目中的maven环境指向本地的setting.xml文件