From 09dd9ac9594aa5c4ef19f1f7ab9bb900f3f41fa2 Mon Sep 17 00:00:00 2001 From: zhangli <123879394@qq.com> Date: Thu, 17 Jul 2025 21:14:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9E=84=E5=BB=BA=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- Jenkinsfile | 6 +++--- pom.xml | 2 +- ruoyi-common/pom.xml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index b8cf80e..f906ec6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM openjdk:8-jdk -COPY target/*.jar sczx_web.jar +COPY ruoyi-admin/target/*.jar sczx_web.jar ENTRYPOINT ["java", "-jar", \ "-Xms128m", \ diff --git a/Jenkinsfile b/Jenkinsfile index 7eb6345..3017638 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,13 +20,13 @@ pipeline { stage('Build with Maven') { steps { echo "🛠️ 正在使用 Maven 构建..." - sh 'mvn clean package -s settings.xml' + sh 'mvn clean package -s settings.xml --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.compiler/java.util=ALL-UNNAMED' } } stage('Check Jar File') { steps { - sh 'ls -la target/' // 确保 jar 文件存在 + sh 'ls -la ruoyi-admin/target/' // 确保 jar 文件存在 } } @@ -59,7 +59,7 @@ pipeline { --name \${CONTAINER_NAME} \ --network sczx-net \ -p 8098:8098 \ - -e JAVA_OPTS="-Xms256m -Xmx512m -Duser.timezone=Asia/Shanghai" \ + -e JAVA_OPTS="-Xms256m -Xmx512m -Duser.timezone=Asia/Shanghai --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.compiler/java.util=ALL-UNNAMED" \ --restart always \ \${DOCKER_IMAGE} """ diff --git a/pom.xml b/pom.xml index 01cb0ce..7d4d7c5 100644 --- a/pom.xml +++ b/pom.xml @@ -227,7 +227,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.1 + 3.8.1 ${java.version} ${java.version} diff --git a/ruoyi-common/pom.xml b/ruoyi-common/pom.xml index c4f7d4a..4ce05de 100644 --- a/ruoyi-common/pom.xml +++ b/ruoyi-common/pom.xml @@ -13,7 +13,7 @@ 1.7.7 - 1.18.4 + 1.18.24