Skip to content

Commit

Permalink
fix(ci): github 下载依赖错误
Browse files Browse the repository at this point in the history
  • Loading branch information
T1940-林浩捷 committed May 6, 2021
1 parent ff580f6 commit be799f9
Showing 2 changed files with 8 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/auto-order.yml
Original file line number Diff line number Diff line change
@@ -17,6 +17,11 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: 设置缓存
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
- name: 执行点餐
env:
MEI_CAN_USERNAME: ${{ secrets.USER_NAME }}
15 changes: 3 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -40,7 +40,6 @@
<version>4.0.11</version>
</dependency>


<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
@@ -88,17 +87,9 @@
</build>
<repositories>
<repository>
<!-- Maven 自带的中央仓库使用的Id为central 如果其他的仓库声明也是用该Id
就会覆盖中央仓库的配置 --> <id>mvnrepository</id>
<name>mvnrepository</name>
<url>http://www.mvnrepository.com/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>aliyun</id>
<name>ali yun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</repository>
</repositories>
</project>

0 comments on commit be799f9

Please sign in to comment.