Skip to content

Commit 298165b

Browse files
committed
修改自动打包配置
1 parent f487e20 commit 298165b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ jobs:
3737
with:
3838
node-version: '20.x' # Node.js版本 20系列的最新稳定版
3939

40-
- name: Compile backend
40+
- name: clean maven cache
41+
run: rm -rf ~/.m2/repository/io/github/git-commit-id
42+
43+
- name: Build Backend
4144
run: |
42-
mvn package
43-
mvn package -P war
45+
mvn clean package
4446
4547
- name: Compile frontend
4648
run: |

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@
450450
<plugin>
451451
<groupId>io.github.git-commit-id</groupId>
452452
<artifactId>git-commit-id-maven-plugin</artifactId>
453-
<version>9.0.1</version>
453+
<version>8.0.0</version>
454454
<executions>
455455
<execution>
456456
<id>get-the-git-infos</id>

0 commit comments

Comments
 (0)