|
@@ -6,57 +6,33 @@
|
|
|
<groupId>org.eco.vip</groupId>
|
|
|
<artifactId>eco-boot</artifactId>
|
|
|
<version>${revision}</version>
|
|
|
- <name>eco-boot</name>
|
|
|
+ <name>${project.artifactId}</name>
|
|
|
<description>eco-boot</description>
|
|
|
+ <packaging>pom</packaging>
|
|
|
|
|
|
+ <!-- 项目模块 -->
|
|
|
<modules>
|
|
|
<module>eco-start</module>
|
|
|
<module>eco-common</module>
|
|
|
+ <module>eco-bom</module>
|
|
|
+ <module>eco-auth</module>
|
|
|
</modules>
|
|
|
- <packaging>pom</packaging>
|
|
|
<!-- 版本 -->
|
|
|
<properties>
|
|
|
<!-- 系统版本 -->
|
|
|
<revision>1.0.0</revision>
|
|
|
<java.version>21</java.version>
|
|
|
- <spring-boot.version>3.4.3</spring-boot.version>
|
|
|
- <!-- 插件版本 -->
|
|
|
- <maven-jar-plugin.version>3.4.0</maven-jar-plugin.version>
|
|
|
- <maven-war-plugin.version>3.4.0</maven-war-plugin.version>
|
|
|
<lombok.version>1.18.36</lombok.version>
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
</properties>
|
|
|
|
|
|
<!-- 依赖管理 -->
|
|
|
<dependencyManagement>
|
|
|
<dependencies>
|
|
|
- <!-- SpringBoot的依赖配置-->
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-dependencies</artifactId>
|
|
|
- <version>${spring-boot.version}</version>
|
|
|
- <type>pom</type>
|
|
|
- <scope>import</scope>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <!--测试框架-->
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-test</artifactId>
|
|
|
- <version>${spring-boot.version}</version>
|
|
|
- <scope>test</scope>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <!-- lombok-->
|
|
|
- <dependency>
|
|
|
- <groupId>org.projectlombok</groupId>
|
|
|
- <artifactId>lombok</artifactId>
|
|
|
- <version>${lombok.version}</version>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <!-- common 的依赖配置-->
|
|
|
+ <!-- 全局的依赖配置-->
|
|
|
<dependency>
|
|
|
<groupId>org.eco.vip</groupId>
|
|
|
- <artifactId>com-bom</artifactId>
|
|
|
+ <artifactId>eco-bom</artifactId>
|
|
|
<version>${revision}</version>
|
|
|
<type>pom</type>
|
|
|
<scope>import</scope>
|
|
@@ -89,11 +65,11 @@
|
|
|
</pluginRepository>
|
|
|
</pluginRepositories>
|
|
|
|
|
|
+ <!-- 环境标识,需要与配置文件的名称相对应 -->
|
|
|
<profiles>
|
|
|
<profile>
|
|
|
<id>local</id>
|
|
|
<properties>
|
|
|
- <!-- 环境标识,需要与配置文件的名称相对应 -->
|
|
|
<profiles.active>local</profiles.active>
|
|
|
<logging.level>info</logging.level>
|
|
|
</properties>
|
|
@@ -119,4 +95,78 @@
|
|
|
</profile>
|
|
|
</profiles>
|
|
|
|
|
|
+ <build>
|
|
|
+ <pluginManagement>
|
|
|
+ <plugins>
|
|
|
+ <!-- maven-surefire-plugin 插件,用于运行单元测试。 -->
|
|
|
+ <!-- 注意,需要使用 3.0.X+,因为要支持 Junit 5 版本 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-surefire-plugin</artifactId>
|
|
|
+ </plugin>
|
|
|
+ <!-- maven-compiler-plugin 插件,解决 spring-boot-configuration-processor + Lombok + MapStruct 组合 -->
|
|
|
+ <!-- https://stackoverflow.com/questions/33483697/re-run-spring-boot-configuration-annotation-processor-to-update-generated-metada -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <annotationProcessorPaths>
|
|
|
+ <path>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-configuration-processor</artifactId>
|
|
|
+ </path>
|
|
|
+ <path>
|
|
|
+ <groupId>org.projectlombok</groupId>
|
|
|
+ <artifactId>lombok</artifactId>
|
|
|
+ <!-- 这里必须要指定lombok的版本;否则lombok注解会失效-->
|
|
|
+ <version>${lombok.version}</version>
|
|
|
+ </path>
|
|
|
+ <path>
|
|
|
+ <groupId>org.mapstruct</groupId>
|
|
|
+ <artifactId>mapstruct-processor</artifactId>
|
|
|
+ </path>
|
|
|
+ </annotationProcessorPaths>
|
|
|
+ <!-- 编译参数写在 arg 内,解决 Spring Boot 3.2 的 Parameter Name Discovery 问题 -->
|
|
|
+ <debug>false</debug>
|
|
|
+ <compilerArgs>
|
|
|
+ <arg>-parameters</arg>
|
|
|
+ </compilerArgs>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
+ <artifactId>flatten-maven-plugin</artifactId>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </pluginManagement>
|
|
|
+
|
|
|
+ <plugins>
|
|
|
+ <!-- 统一 revision 版本 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
+ <artifactId>flatten-maven-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <flattenMode>oss</flattenMode>
|
|
|
+ <updatePomFile>true</updatePomFile>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>flatten</goal>
|
|
|
+ </goals>
|
|
|
+ <id>flatten</id>
|
|
|
+ <phase>process-resources</phase>
|
|
|
+ </execution>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>clean</goal>
|
|
|
+ </goals>
|
|
|
+ <id>flatten.clean</id>
|
|
|
+ <phase>clean</phase>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+
|
|
|
</project>
|