修改maven的镜像库

This commit is contained in:
moweilin 2024-01-22 15:55:26 +08:00
commit 77516bb5f2
2 changed files with 15 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM git.qtoa.cn/docker/maven:3.9.6-eclipse-temurin-17
RUN sed -i '/<\/settings>/i \
<mirrors>\n \
<mirror>\n \
<id>aliyun</id>\n \
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>\n \
<mirrorOf>*</mirrorOf>\n \
</mirror>\n \
</mirrors>\n \
' /usr/share/maven/ref/settings-docker.xml

4
README.md Normal file
View File

@ -0,0 +1,4 @@
```
docker build -t git.qtoa.cn/actions/maven:3.9.6-eclipse-temurin-17 .
docker push git.qtoa.cn/actions/maven:3.9.6-eclipse-temurin-17
```