提交 a7e7ec4f authored 作者: Matrix's avatar Matrix

12

上级 e491e33d
image: maven:3.8.1-jdk-8 image: maven:3.8.1-jdk-8
before_script:
- echo '<?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>/cache/.m2/repository</localRepository>
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
</mirrors>
</settings>' > $HOME/.m2/settings.xml
cache: cache:
paths: paths:
- /cache/.m2/repository - /cache/.m2/repository
...@@ -14,5 +32,5 @@ job1: ...@@ -14,5 +32,5 @@ job1:
tags: tags:
- docker - docker
script: script:
- mvn clean package - mvn clean package -s $HOME/.m2/settings.xml
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论