|
@@ -107,45 +107,88 @@
|
|
|
|
|
|
<build>
|
|
<build>
|
|
<plugins>
|
|
<plugins>
|
|
- <!--设置应用 Main 参数启动依赖查找的地址指向外部 lib 文件夹-->
|
|
|
|
|
|
+<!-- <!–设置应用 Main 参数启动依赖查找的地址指向外部 lib 文件夹–>-->
|
|
|
|
+<!-- <plugin>-->
|
|
|
|
+<!-- <groupId>org.apache.maven.plugins</groupId>-->
|
|
|
|
+<!-- <artifactId>maven-jar-plugin</artifactId>-->
|
|
|
|
+<!-- <configuration>-->
|
|
|
|
+<!-- <archive>-->
|
|
|
|
+<!-- <manifest>-->
|
|
|
|
+<!-- <addClasspath>true</addClasspath>-->
|
|
|
|
+<!-- <classpathPrefix>lib/</classpathPrefix>-->
|
|
|
|
+<!-- </manifest>-->
|
|
|
|
+<!-- </archive>-->
|
|
|
|
+<!-- </configuration>-->
|
|
|
|
+<!-- </plugin>-->
|
|
|
|
+<!-- <!–设置 SpringBoot 打包插件不包含任何 Jar 依赖包–>-->
|
|
|
|
+<!-- <plugin>-->
|
|
|
|
+<!-- <groupId>org.springframework.boot</groupId>-->
|
|
|
|
+<!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
|
|
|
|
+<!-- <configuration>-->
|
|
|
|
+<!-- <includes>-->
|
|
|
|
+<!-- <include>-->
|
|
|
|
+<!-- <groupId>nothing</groupId>-->
|
|
|
|
+<!-- <artifactId>nothing</artifactId>-->
|
|
|
|
+<!-- </include>-->
|
|
|
|
+<!-- </includes>-->
|
|
|
|
+<!-- </configuration>-->
|
|
|
|
+<!-- </plugin>-->
|
|
|
|
+<!-- <!–设置将 lib 拷贝到应用 Jar 外面–>-->
|
|
|
|
+<!-- <plugin>-->
|
|
|
|
+<!-- <groupId>org.apache.maven.plugins</groupId>-->
|
|
|
|
+<!-- <artifactId>maven-dependency-plugin</artifactId>-->
|
|
|
|
+<!-- <executions>-->
|
|
|
|
+<!-- <execution>-->
|
|
|
|
+<!-- <id>copy-dependencies</id>-->
|
|
|
|
+<!-- <phase>prepare-package</phase>-->
|
|
|
|
+<!-- <goals>-->
|
|
|
|
+<!-- <goal>copy-dependencies</goal>-->
|
|
|
|
+<!-- </goals>-->
|
|
|
|
+<!-- <configuration>-->
|
|
|
|
+<!-- <outputDirectory>${project.build.directory}/lib</outputDirectory>-->
|
|
|
|
+<!-- </configuration>-->
|
|
|
|
+<!-- </execution>-->
|
|
|
|
+<!-- </executions>-->
|
|
|
|
+<!-- </plugin>-->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
+ </plugin>
|
|
|
|
+
|
|
<plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
- <configuration>
|
|
|
|
- <archive>
|
|
|
|
- <manifest>
|
|
|
|
- <addClasspath>true</addClasspath>
|
|
|
|
- <classpathPrefix>lib/</classpathPrefix>
|
|
|
|
- </manifest>
|
|
|
|
- </archive>
|
|
|
|
- </configuration>
|
|
|
|
</plugin>
|
|
</plugin>
|
|
- <!--设置 SpringBoot 打包插件不包含任何 Jar 依赖包-->
|
|
|
|
<plugin>
|
|
<plugin>
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
|
- <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
- <configuration>
|
|
|
|
- <includes>
|
|
|
|
- <include>
|
|
|
|
- <groupId>nothing</groupId>
|
|
|
|
- <artifactId>nothing</artifactId>
|
|
|
|
- </include>
|
|
|
|
- </includes>
|
|
|
|
- </configuration>
|
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-dependency-plugin</artifactId>
|
|
</plugin>
|
|
</plugin>
|
|
- <!--设置将 lib 拷贝到应用 Jar 外面-->
|
|
|
|
<plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
- <artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
|
|
+ <artifactId>maven-resources-plugin</artifactId>
|
|
<executions>
|
|
<executions>
|
|
<execution>
|
|
<execution>
|
|
- <id>copy-dependencies</id>
|
|
|
|
- <phase>prepare-package</phase>
|
|
|
|
|
|
+ <id>default-resources</id>
|
|
|
|
+ <phase>validate</phase>
|
|
<goals>
|
|
<goals>
|
|
- <goal>copy-dependencies</goal>
|
|
|
|
|
|
+ <goal>copy-resources</goal>
|
|
</goals>
|
|
</goals>
|
|
<configuration>
|
|
<configuration>
|
|
- <outputDirectory>${project.build.directory}/lib</outputDirectory>
|
|
|
|
|
|
+ <outputDirectory>target/classes</outputDirectory>
|
|
|
|
+ <useDefaultDelimiters>false</useDefaultDelimiters>
|
|
|
|
+ <delimiters>
|
|
|
|
+ <delimiter>@</delimiter>
|
|
|
|
+ </delimiters>
|
|
|
|
+ <resources>
|
|
|
|
+ <resource>
|
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
|
+ <filtering>true</filtering>
|
|
|
|
+ <includes>
|
|
|
|
+ <include>**</include>
|
|
|
|
+ </includes>
|
|
|
|
+ </resource>
|
|
|
|
+
|
|
|
|
+ </resources>
|
|
</configuration>
|
|
</configuration>
|
|
</execution>
|
|
</execution>
|
|
</executions>
|
|
</executions>
|