maven settings.xml

Posted by koocyton on 2024-11-30
Estimated Reading Time 4 Minutes
Words 675 In Total
Viewed Times

Maven settings.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120

<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">

<localRepository>/Users/henry/.m2/repository</localRepository>
<interactiveMode>false</interactiveMode>

<server>
<id>sonatype-snapshots</id>
<username>xxx</username>
<password>xxxxxxxxx</password>
</server>

<server>
<id>sonatype-release</id>
<username>xxx</username>
<password>xxxxxxx</password>
</server>

<mirrors>
<mirror>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>

<!-- 阿里云镜像仓库 -->
<mirror>
<id>aliyun</id>
<url>https://maven.aliyun.com/repository/public</url>
<mirrorOf>central</mirrorOf>
</mirror>

<!-- 华为云镜像仓库 -->
<mirror>
<id>huaweicloud</id>
<url>https://mirrors.huaweicloud.com/repository/maven/</url>
<mirrorOf>central</mirrorOf>
</mirror>

<!-- 网易云镜像仓库 -->
<mirror>
<id>netease</id>
<url>https://maven.163.com/repository/maven-public/</url>
<mirrorOf>central</mirrorOf>
</mirror>

<!-- 清华大学镜像仓库 -->
<mirror>
<id>tsinghua</id>
<url>https://mirrors.tuna.tsinghua.edu.cn/maven/</url>
<mirrorOf>central</mirrorOf>
</mirror>

<!-- 华中科技大学镜像仓库 -->
<mirror>
<id>huazhi</id>
<url>https://mirrors.huaweicloud.com/repository/maven-public/</url>
<mirrorOf>central</mirrorOf>
</mirror>

<!-- 中国科学技术大学镜像仓库 -->
<mirror>
<id>ustc</id>
<url>http://mirrors.ustc.edu.cn/maven/maven2/</url>
<mirrorOf>central</mirrorOf>
</mirror>

<!-- 百度镜像仓库 -->
<mirror>
<id>baidu</id>
<url>https://maven-bd-local-1.services.baidu.com/repository/maven-public/</url>
<mirrorOf>central</mirrorOf>
</mirror>

</mirrors>

<pluginRepositories>
<pluginRepository>
<id>aliyun</id>
<name>Plugin Repositories</name>
<url>https://maven.aliyun.com/repository/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>

<profiles>

<profile>
<id>default-jdk</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>

<profile>
<id>gpg</id>
<properties>
<gpg.executable>gpg2</gpg.executable>
<gpg.passphrase>xxxxxxxx</gpg.passphrase>
</properties>
</profile>

</profiles>
</settings>


如果您喜欢此博客或发现它对您有用,则欢迎对此发表评论。 也欢迎您共享此博客,以便更多人可以参与。 如果博客中使用的图像侵犯了您的版权,请与作者联系以将其删除。 谢谢 !