|
@@ -200,9 +200,41 @@
|
200
|
200
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
201
|
201
|
<configuration>
|
202
|
202
|
<includeSystemScope>true</includeSystemScope>
|
|
203
|
+ <!-- 以下为减少依赖 -->
|
|
204
|
+ <layout>ZIP</layout>
|
|
205
|
+ <includes>
|
|
206
|
+ <include>
|
|
207
|
+ <groupId>com.njyunzhi</groupId>
|
|
208
|
+ <artifactId>pet_identity</artifactId>
|
|
209
|
+ </include>
|
|
210
|
+ </includes>
|
203
|
211
|
</configuration>
|
204
|
212
|
</plugin>
|
205
|
213
|
|
|
214
|
+ <!-- 拷贝依赖 -->
|
|
215
|
+ <plugin>
|
|
216
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
217
|
+ <artifactId>maven-dependency-plugin</artifactId>
|
|
218
|
+ <executions>
|
|
219
|
+ <execution>
|
|
220
|
+ <id>copy</id>
|
|
221
|
+ <phase>package</phase>
|
|
222
|
+ <goals>
|
|
223
|
+ <goal>copy-dependencies</goal>
|
|
224
|
+ </goals>
|
|
225
|
+ <configuration>
|
|
226
|
+ <excludeGroupIds>
|
|
227
|
+ com.njyunzhi
|
|
228
|
+ </excludeGroupIds>
|
|
229
|
+ <excludeArtifactIds>
|
|
230
|
+ pet_identity
|
|
231
|
+ </excludeArtifactIds>
|
|
232
|
+ <outputDirectory>${project.build.directory}/libs</outputDirectory>
|
|
233
|
+ </configuration>
|
|
234
|
+ </execution>
|
|
235
|
+ </executions>
|
|
236
|
+ </plugin>
|
|
237
|
+
|
206
|
238
|
<!-- 跳过测试 -->
|
207
|
239
|
<plugin>
|
208
|
240
|
<groupId>org.apache.maven.plugins</groupId>
|
|
@@ -230,71 +262,30 @@
|
230
|
262
|
<directory>src/main/resources</directory>
|
231
|
263
|
<filtering>true</filtering>
|
232
|
264
|
<includes>
|
233
|
|
- <include>**/*.p12</include>
|
234
|
|
- <include>**/*.pem</include>
|
235
|
|
- <include>**/*.xml</include>
|
|
265
|
+<!-- <include>**/*.p12</include>-->
|
|
266
|
+<!-- <include>**/*.pem</include>-->
|
|
267
|
+<!-- <include>**/*.xml</include>-->
|
236
|
268
|
<!-- <include>*.xlsx</include>-->
|
237
|
269
|
<include>application.yml</include>
|
238
|
270
|
<include>application-${profileActive}.yml</include>
|
239
|
271
|
</includes>
|
|
272
|
+ <targetPath>${project.build.directory}/config</targetPath>
|
|
273
|
+ </resource>
|
|
274
|
+ <resource>
|
|
275
|
+ <directory>src/main/resources</directory>
|
|
276
|
+ <filtering>true</filtering>
|
|
277
|
+ <includes>
|
|
278
|
+ <include>**/*.p12</include>
|
|
279
|
+ <include>**/*.pem</include>
|
|
280
|
+ <include>**/*.xml</include>
|
|
281
|
+ <!-- <include>*.xlsx</include>-->
|
|
282
|
+<!-- <include>application.yml</include>-->
|
|
283
|
+<!-- <include>application-${profileActive}.yml</include>-->
|
|
284
|
+ </includes>
|
240
|
285
|
</resource>
|
241
|
286
|
</resources>
|
242
|
287
|
</build>
|
243
|
288
|
</profile>
|
244
|
289
|
</profiles>
|
245
|
290
|
|
246
|
|
-
|
247
|
|
-<!-- <build>-->
|
248
|
|
-<!-- <plugins>-->
|
249
|
|
-<!-- <plugin>-->
|
250
|
|
-<!-- <groupId>org.springframework.boot</groupId>-->
|
251
|
|
-<!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
|
252
|
|
-<!-- <configuration>-->
|
253
|
|
-<!-- <excludes>-->
|
254
|
|
-<!-- <exclude>-->
|
255
|
|
-<!-- <groupId>org.projectlombok</groupId>-->
|
256
|
|
-<!-- <artifactId>lombok</artifactId>-->
|
257
|
|
-<!-- </exclude>-->
|
258
|
|
-<!-- </excludes>-->
|
259
|
|
-<!-- </configuration>-->
|
260
|
|
-<!-- </plugin>-->
|
261
|
|
-<!-- </plugins>-->
|
262
|
|
-<!-- </build>-->
|
263
|
|
-<!-- <repositories>-->
|
264
|
|
-<!-- <repository>-->
|
265
|
|
-<!-- <id>spring-milestones</id>-->
|
266
|
|
-<!-- <name>Spring Milestones</name>-->
|
267
|
|
-<!-- <url>https://repo.spring.io/milestone</url>-->
|
268
|
|
-<!-- <snapshots>-->
|
269
|
|
-<!-- <enabled>false</enabled>-->
|
270
|
|
-<!-- </snapshots>-->
|
271
|
|
-<!-- </repository>-->
|
272
|
|
-<!-- <repository>-->
|
273
|
|
-<!-- <id>spring-snapshots</id>-->
|
274
|
|
-<!-- <name>Spring Snapshots</name>-->
|
275
|
|
-<!-- <url>https://repo.spring.io/snapshot</url>-->
|
276
|
|
-<!-- <releases>-->
|
277
|
|
-<!-- <enabled>false</enabled>-->
|
278
|
|
-<!-- </releases>-->
|
279
|
|
-<!-- </repository>-->
|
280
|
|
-<!-- </repositories>-->
|
281
|
|
-<!-- <pluginRepositories>-->
|
282
|
|
-<!-- <pluginRepository>-->
|
283
|
|
-<!-- <id>spring-milestones</id>-->
|
284
|
|
-<!-- <name>Spring Milestones</name>-->
|
285
|
|
-<!-- <url>https://repo.spring.io/milestone</url>-->
|
286
|
|
-<!-- <snapshots>-->
|
287
|
|
-<!-- <enabled>false</enabled>-->
|
288
|
|
-<!-- </snapshots>-->
|
289
|
|
-<!-- </pluginRepository>-->
|
290
|
|
-<!-- <pluginRepository>-->
|
291
|
|
-<!-- <id>spring-snapshots</id>-->
|
292
|
|
-<!-- <name>Spring Snapshots</name>-->
|
293
|
|
-<!-- <url>https://repo.spring.io/snapshot</url>-->
|
294
|
|
-<!-- <releases>-->
|
295
|
|
-<!-- <enabled>false</enabled>-->
|
296
|
|
-<!-- </releases>-->
|
297
|
|
-<!-- </pluginRepository>-->
|
298
|
|
-<!-- </pluginRepositories>-->
|
299
|
|
-
|
300
|
291
|
</project>
|