This commit is contained in:
oneao committed 2025-06-24 17:31:16 +08:00
1 parent 60c02402b9
commit 330c4d09fa
22 files changed
+485 -1

No files matched your search

+123
View File
@@ -0,0 +1,123 @@
<?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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.crane</groupId>
<artifactId>crane-api</artifactId>
<version>1.0.0</version>
<!-- 项目打包方式 -->
<packaging>pom</packaging>
<!-- 子模块 -->
<modules>
<module>crane-common</module>
<module>crane-boot</module>
</modules>
<!-- 版本信息 -->
<properties>
<crane.version>1.0.0</crane.version>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring.boot.version>3.2.6</spring.boot.version>
<spring.framework.version>6.1.8</spring.framework.version>
</properties>
<!-- 依赖管理 -->
<dependencyManagement>
<dependencies>
<!-- Spring Boot Dependencies:当使用该依赖时,Maven就会自动使用该pom中定义的依赖版本 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring.boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- SpringFramework的依赖配置
作用:在maven的pom.xml中无需指定具体的类库版本,直接使用,即默认使用bom中指定的版本。
查询方式:https://docs.spring.io/spring-boot/docs/3.0.2/reference/html/getting-started.html#getting
查询时切换版本号即可
所有SpringBoot版本号:https://docs.spring.io/spring-boot/docs/
-->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-framework-bom</artifactId>
<version>${spring.framework.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.crane</groupId>
<artifactId>crane-boot</artifactId>
<version>${crane.version}</version>
</dependency>
<dependency>
<groupId>com.crane</groupId>
<artifactId>crane-common</artifactId>
<version>${crane.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<!-- 构建插件 -->
<build>
<!-- 统一插件管理 -->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<!-- 排除lombok依赖,该依赖只作用于编译阶段。 -->
<configuration>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>com.ly.smart-doc</groupId>
<artifactId>smart-doc-maven-plugin</artifactId>
<version>3.0.5</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<repositories>
<repository>
<id>public</id>
<name>aliyun nexus</name>
<url>https://maven.aliyun.com/repository/public</url>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>public</id>
<name>aliyun nexus</name>
<url>https://maven.aliyun.com/repository/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</project>