123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- <?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/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>com.hosea.cloud.user</groupId>
- <artifactId>service-user</artifactId>
- <version>${revision}</version>
- <packaging>pom</packaging>
- <name>Service User ${version}</name>
- <description>用户服务</description>
- <properties>
- <revision>1.0.0</revision>
- <hosea-cloud.version>1.0.1</hosea-cloud.version>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <flatten-maven-plugin.version>1.7.2</flatten-maven-plugin.version>
- <maven-surefire-plugin.version>3.5.3</maven-surefire-plugin.version>
- <spring-boot.version>3.2.12</spring-boot.version>
- <mysql.version>8.0.32</mysql.version>
- </properties>
- <modules>
- <module>service-user-client</module>
- <module>service-user-adapter</module>
- <module>service-user-app</module>
- <module>service-user-domain</module>
- <module>service-user-infrastructure</module>
- <module>start</module>
- </modules>
- <dependencies>
- <!--region 微服务脚手架-->
- <dependency>
- <groupId>com.hosea.cloud</groupId>
- <artifactId>hosea-cloud</artifactId>
- <version>${hosea-cloud.version}</version>
- <type>pom</type>
- </dependency>
- <!--endregion-->
- </dependencies>
- <dependencyManagement>
- <dependencies>
- <!--region 项目模块-->
- <dependency>
- <groupId>com.hosea.cloud.user</groupId>
- <artifactId>service-user-client</artifactId>
- <version>${revision}</version>
- </dependency>
- <dependency>
- <groupId>com.hosea.cloud.user</groupId>
- <artifactId>service-user-adapter</artifactId>
- <version>${revision}</version>
- </dependency>
- <dependency>
- <groupId>com.hosea.cloud.user</groupId>
- <artifactId>service-user-app</artifactId>
- <version>${revision}</version>
- </dependency>
- <dependency>
- <groupId>com.hosea.cloud.user</groupId>
- <artifactId>service-user-domain</artifactId>
- <version>${revision}</version>
- </dependency>
- <dependency>
- <groupId>com.hosea.cloud.user</groupId>
- <artifactId>service-user-infrastructure</artifactId>
- <version>${revision}</version>
- </dependency>
- <!--endregion-->
- <!--region 微服务脚手架-->
- <dependency>
- <groupId>com.hosea.cloud</groupId>
- <artifactId>hosea-cloud</artifactId>
- <version>${hosea-cloud.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <!--endregion-->
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>${mysql.version}</version>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <build>
- <pluginManagement>
- <plugins>
- <!--region JDK版本-->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>17</source>
- <target>17</target>
- <encoding>${project.build.sourceEncoding}</encoding>
- </configuration>
- </plugin>
- <!--endregion-->
- <!--region Spring Boot 可执行包-->
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <version>${spring-boot.version}</version>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!--endregion-->
- <!--region 动态版本号-->
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>flatten-maven-plugin</artifactId>
- <version>${flatten-maven-plugin.version}</version>
- <configuration>
- <!-- 配置扁平化后的 POM 文件的名称 -->
- <flattenedPomFilename>pom-xml-flattened</flattenedPomFilename>
- <!-- 是否更新原始 POM 文件 -->
- <updatePomFile>true</updatePomFile>
- <!-- 指定扁平化模式,resolveCiFriendliesOnly 表示仅解析 CI 友好的占位符 -->
- <flattenMode>resolveCiFriendliesOnly</flattenMode>
- </configuration>
- <executions>
- <!-- 定义插件的执行配置 -->
- <execution>
- <!-- 执行的唯一标识 -->
- <id>flatten</id>
- <!-- 指定插件绑定的生命周期阶段 -->
- <phase>process-resources</phase>
- <!-- 定义执行的目标 -->
- <goals>
- <!-- 执行扁平化操作 -->
- <goal>flatten</goal>
- </goals>
- </execution>
- <!-- 定义清理阶段的执行配置 -->
- <execution>
- <!-- 清理阶段的唯一标识 -->
- <id>flatten.clean</id>
- <!-- 指定清理阶段绑定的生命周期阶段 -->
- <phase>clean</phase>
- <!-- 定义清理阶段执行的目标 -->
- <goals>
- <!-- 执行清理操作 -->
- <goal>clean</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!--endregion-->
- <!--region 让Maven test能正常执行-->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>${maven-surefire-plugin.version}</version>
- <configuration>
- <includes>
- <!--只需执行这一个类,由于Junit只能做到方法的顺序执行,不能做类的顺序执行,所以这个类做了手动排序-->
- <include>**/AllTest.java</include>
- </includes>
- <forkCount>1</forkCount>
- <reuseForks>false</reuseForks>
- </configuration>
- </plugin>
- <!--endregion-->
- </plugins>
- </pluginManagement>
- <plugins>
- <!--region 动态版本号-->
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>flatten-maven-plugin</artifactId>
- </plugin>
- <!--endregion-->
- <!--region 让Maven test能正常执行-->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- </plugin>
- <!--endregion-->
- </plugins>
- </build>
- </project>
|