<?xml version="1.0" encoding="UTF-8"?>
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
<parent>
|
<artifactId>car-manager</artifactId>
|
<groupId>com.zbkj</groupId>
|
<version>0.0.1-SNAPSHOT</version>
|
</parent>
|
<modelVersion>4.0.0</modelVersion>
|
|
<artifactId>car-admin</artifactId>
|
<packaging>jar</packaging>
|
|
<properties>
|
<car-service>0.0.1-SNAPSHOT</car-service>
|
</properties>
|
|
<dependencies>
|
<dependency>
|
<groupId>com.zbkj</groupId>
|
<artifactId>car-service</artifactId>
|
<version>${car-service}</version>
|
</dependency>
|
</dependencies>
|
|
<build>
|
<!--打包配置-->
|
<finalName>Car-backend</finalName>
|
<plugins>
|
<plugin>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
<version>2.3.0.RELEASE</version>
|
<executions>
|
<execution>
|
<goals>
|
<goal>repackage</goal><!--可以把依赖的包都打包到生成的Jar包中-->
|
</goals>
|
</execution>
|
</executions>
|
</plugin>
|
</plugins>
|
|
<resources>
|
<resource>
|
<directory>src/main/resources</directory>
|
<filtering>true</filtering>
|
</resource>
|
<!--这个元素描述了项目相关的所有资源路径列表,例如和项目相关的属性文件,这些资源被包含在最终的打包文件里。-->
|
<resource>
|
<!-- 描述存放资源的目录,该路径相对POM路径-->
|
<directory>src/main/java</directory>
|
<includes>
|
<include>**/*.xml</include>
|
</includes>
|
</resource>
|
</resources>
|
</build>
|
|
</project>
|