SpringBoot构建父子工程

时间:2024-10-29 07:08:15
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <!--定义打包类型--> <packaging>pom</packaging> <groupId>com.xxx</groupId> <artifactId>parent-spring-boot-project</artifactId> <version>0.0.1-SNAPSHOT</version> <!--列出子模块--> <modules> <module>son-admin-common</module> <module>son-admin-server</module> <module>...</module> </modules> <properties> <java.version>11</java.version> <spring-boot.version>2.6.13</spring-boot.version> </properties> <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependencies</artifactId> <version>${spring-boot.version}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>${spring-boot.version}</version> </plugin> </plugins> </build> </project>