[修改]探索如何设置maven镜像源
All checks were successful
CI / Docker-Build (push) Successful in 5m3s

This commit is contained in:
thesai 2024-06-11 20:40:34 +08:00
parent 212773e679
commit e23864fa72
3 changed files with 246 additions and 239 deletions

View File

@ -24,13 +24,6 @@ jobs:
uses: https://gitea.joylink.club/actions/local-setup-maven@v0.1.1
with:
maven-version: 3.8.8
mirrors: |
<mirror>
<id>aliyun</id>
<name>aliyun maven</name>
<url>https://maven.aliyun.com/repository/public</url>
<mirrorOf>central</mirrorOf>
</mirror>
- name: 构建
run: |
mvn -Dmaven.test.skip=true clean package

View File

@ -23,13 +23,6 @@ jobs:
uses: https://gitea.joylink.club/actions/local-setup-maven@v0.1.1
with:
maven-version: 3.8.8
mirrors: |
<mirror>
<id>aliyun</id>
<name>aliyun maven</name>
<url>https://maven.aliyun.com/repository/public</url>
<mirrorOf>central</mirrorOf>
</mirror>
- name: 构建
run: |
mvn -Dmaven.test.skip=true clean package

23
pom.xml
View File

@ -227,5 +227,26 @@
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>aliyun-central</id>
<url>https://maven.aliyun.com/repository/central</url>
</repository>
<repository>
<id>aliyun-snapshots</id>
<url>https://maven.aliyun.com/repository/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>aliyun-central</id>
<url>https://maven.aliyun.com/repository/central</url>
</pluginRepository>
</pluginRepositories>
</project>