Skip to content

Commit

Permalink
docs: aliyun maven
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkcup authored Sep 25, 2024
1 parent 11cd447 commit 2a3f210
Showing 1 changed file with 1 addition and 34 deletions.
35 changes: 1 addition & 34 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,35 +238,9 @@ vi ./settings.xml
mvn package -s settings.xml
```

https://docs.gitlab.cn/jh/user/packages/maven_repository/#%E8%AF%B7%E6%B1%82%E8%BD%AC%E5%8F%91%E5%88%B0-maven-central
建议同时加入两个 mirror,单独哪一家都会报错有些包不存在。

```xml
<settings>
<servers>
<server>
<id>central-proxy</id>
<configuration>
<httpHeaders>
<property>
<name>Job-Token</name>
<value>${CI_JOB_TOKEN}</value>
</property>
</httpHeaders>
</configuration>
</server>
</servers>
<mirrors>
<mirror>
<id>central-proxy</id>
<name>GitLab proxy of central repo</name>
<url>https://jihulab.com/api/v4/groups/14276/-/packages/maven</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
</settings>
```

```
<settings>
<mirrors>
<mirror>
Expand All @@ -275,13 +249,6 @@ https://docs.gitlab.cn/jh/user/packages/maven_repository/#%E8%AF%B7%E6%B1%82%E8%
<name>阿里云公共仓库</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
</mirrors>
</settings>
```

```xml
<settings>
<mirrors>
<mirror>
<id>tencent-maven</id>
<mirrorOf>*</mirrorOf>
Expand Down

0 comments on commit 2a3f210

Please sign in to comment.