修改了maven指令4

This commit is contained in:
bamanker
2025-12-24 17:25:16 +08:00
parent f393b89409
commit 1223dee1a2
2 changed files with 7 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ jobs:
run: echo $(pwd)
- name: Build with Maven
# 设置Maven执行权限使用maven绝对路径执行打包命令
run: mvn clean package
run: mvn clean package -DskipTests -Pprod
# 登录镜像仓库,方便后续上传镜像
- name: Login to Docker Registry

View File

@@ -28,6 +28,10 @@
</scm>
<properties>
<java.version>25</java.version>
<maven.compiler.source>25</maven.compiler.source>
<maven.compiler.target>25</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
@@ -60,6 +64,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>25</source>
<target>25</target>
<annotationProcessorPaths>