|
@@ -305,7 +305,17 @@
|
|
|
<groupId>org.springframework</groupId>
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-test</artifactId>
|
|
<artifactId>spring-test</artifactId>
|
|
|
</dependency>
|
|
</dependency>
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
+ <artifactId>maven-resources-plugin</artifactId>
|
|
|
|
|
+ <version>2.4.3</version>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
+ <artifactId>maven-jar-plugin</artifactId>
|
|
|
|
|
+ <version>3.1.0</version>
|
|
|
|
|
+ </dependency>
|
|
|
</dependencies>
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
<build>
|
|
@@ -366,6 +376,7 @@
|
|
|
</plugins>
|
|
</plugins>
|
|
|
</pluginManagement>
|
|
</pluginManagement>
|
|
|
<plugins>
|
|
<plugins>
|
|
|
|
|
+ <!--设置 SpringBoot 打包插件不包含任何 Jar 依赖包-->
|
|
|
<plugin>
|
|
<plugin>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
@@ -382,26 +393,6 @@
|
|
|
</compilerArgs>
|
|
</compilerArgs>
|
|
|
</configuration>
|
|
</configuration>
|
|
|
</plugin>
|
|
</plugin>
|
|
|
- <plugin>
|
|
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
- <artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
|
- <executions>
|
|
|
|
|
- <execution>
|
|
|
|
|
- <id>copy-dependencies</id>
|
|
|
|
|
- <phase>package</phase>
|
|
|
|
|
- <goals>
|
|
|
|
|
- <goal>copy-dependencies</goal>
|
|
|
|
|
- </goals>
|
|
|
|
|
- <configuration>
|
|
|
|
|
- <!--target/lib是依赖jar包的输出目录,根据自己喜好配置-->
|
|
|
|
|
- <outputDirectory>target/lib</outputDirectory>
|
|
|
|
|
- <excludeTransitive>false</excludeTransitive>
|
|
|
|
|
- <stripVersion>false</stripVersion>
|
|
|
|
|
- <includeScope>runtime</includeScope>
|
|
|
|
|
- </configuration>
|
|
|
|
|
- </execution>
|
|
|
|
|
- </executions>
|
|
|
|
|
- </plugin>
|
|
|
|
|
</plugins>
|
|
</plugins>
|
|
|
</build>
|
|
</build>
|
|
|
|
|
|