From c06cbd992563666ddab651303d06e147db1a0397 Mon Sep 17 00:00:00 2001 From: liliang Date: Wed, 30 Apr 2025 21:59:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=93=E5=8C=85=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- book-api/pom.xml | 41 +++++++++++---------- pom.xml | 96 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 118 insertions(+), 19 deletions(-) diff --git a/book-api/pom.xml b/book-api/pom.xml index 1b24625..76f9a50 100644 --- a/book-api/pom.xml +++ b/book-api/pom.xml @@ -58,27 +58,30 @@ ${project.artifactId} - - - src/main/resources - - application.yml - application-dev.yml - application-prod.yml - application.properties - bootstrap.yml - - - - - org.springframework.boot - spring-boot-maven-plugin - - + org.apache.maven.plugins + maven-resources-plugin + + + org.apache.maven.plugins + maven-dependency-plugin + + + org.apache.maven.plugins + maven-jar-plugin + + + + com.imooc.Application + + + + + + org.springframework.boot + spring-boot-maven-plugin + - - \ No newline at end of file diff --git a/pom.xml b/pom.xml index 5ebd41a..e615cd2 100644 --- a/pom.xml +++ b/pom.xml @@ -174,6 +174,102 @@ + + + + + org.apache.maven.plugins + maven-resources-plugin + + + copy-resources + package + + copy-resources + + + + + src/main/resources + true + + + ${project.build.directory}/release/config + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + copy-dependencies + package + + copy-dependencies + + + ${project.build.directory}/release/lib + false + false + runtime + + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + /static/** + /templates/** + /slider/** + *.** + + + + true + lib/ + false + + + + ./config/ + + + ${project.build.directory}/release + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + ${project.groupId} + ${project.artifactId} + + + ZIP + true + ${project.build.directory}/release + + + + + repackage + + + + + + + ${project.artifactId}