From 1a67afad95173cb6bb78cd420f0d76398508e2ed Mon Sep 17 00:00:00 2001 From: nojava Date: Sun, 24 May 2026 22:34:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20maven-clean-plugin=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=20static=20=E7=9B=AE=E5=BD=95=E6=B8=85=E7=90=86=EF=BC=8C?= =?UTF-8?q?=E7=A1=AE=E4=BF=9D=E9=83=A8=E7=BD=B2=E6=97=B6=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E4=BA=A7=E7=89=A9=E5=AE=8C=E5=85=A8=E5=88=B7?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mvn clean 默认仅清理 target/,但 Vite 构建输出到 src/main/resources/static/(不在 target 下)。若旧产物残留, 部署后仍使用旧版前端文件。现在 mvn clean 会同步清空 static/, 确保每次部署都从干净的构建产物开始。 Co-Authored-By: Claude Sonnet 4.6 --- jog-admin/pom.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/jog-admin/pom.xml b/jog-admin/pom.xml index ae5256f..0ceab32 100644 --- a/jog-admin/pom.xml +++ b/jog-admin/pom.xml @@ -81,6 +81,22 @@ jog-admin + + org.apache.maven.plugins + maven-clean-plugin + 3.4.0 + + + + src/main/resources/static + + **/* + + false + + + + com.github.eirslett frontend-maven-plugin