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}