188 lines
7.8 KiB
XML
188 lines
7.8 KiB
XML
<?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>
|
||
<!--
|
||
下方 parent 为 ContiNew Starter(Continue New Starter),
|
||
是一种特殊类型的 Spring Boot Starter,其作用与常规的 Starter 类似,它可以帮助开发人员快速集成常用的第三方库或工具到 Spring 应用程序中。
|
||
ContiNew Starter 包含了一系列经过优化和配置的依赖包(如 MyBatis-Plus、SaToken),
|
||
可轻松集成到应用中,从而避免开发人员手动引入依赖的麻烦,为 Spring Boot 项目的灵活快速构建提供支持。
|
||
-->
|
||
<parent>
|
||
<groupId>top.charles7c.continew</groupId>
|
||
<artifactId>continew-starter</artifactId>
|
||
<version>1.2.1-SNAPSHOT</version>
|
||
</parent>
|
||
|
||
<groupId>top.charles7c.continew</groupId>
|
||
<artifactId>continew-admin</artifactId>
|
||
<version>${revision}</version>
|
||
<packaging>pom</packaging>
|
||
<description>ContiNew Admin(Continue New Admin)持续迭代优化的前后端分离中后台管理系统框架,开箱即用,持续提供舒适的开发体验。</description>
|
||
<url>https://github.com/Charles7c/continew-admin</url>
|
||
|
||
<modules>
|
||
<module>continew-admin-webapi</module>
|
||
<module>continew-admin-monitor</module>
|
||
<module>continew-admin-system</module>
|
||
<module>continew-admin-tool</module>
|
||
<module>continew-admin-common</module>
|
||
</modules>
|
||
|
||
<properties>
|
||
<!-- 项目版本号 -->
|
||
<revision>2.4.0-SNAPSHOT</revision>
|
||
</properties>
|
||
|
||
<!-- 全局依赖版本管理 -->
|
||
<dependencyManagement>
|
||
<dependencies>
|
||
<!-- API 模块(存放 Controller 层代码,打包部署的模块) -->
|
||
<dependency>
|
||
<groupId>top.charles7c.continew</groupId>
|
||
<artifactId>continew-admin-webapi</artifactId>
|
||
<version>${revision}</version>
|
||
</dependency>
|
||
|
||
<!-- 系统监控模块(存放系统监控模块相关功能,例如:日志管理、服务监控等) -->
|
||
<dependency>
|
||
<groupId>top.charles7c.continew</groupId>
|
||
<artifactId>continew-admin-monitor</artifactId>
|
||
<version>${revision}</version>
|
||
</dependency>
|
||
|
||
<!-- 系统管理模块(存放系统管理模块相关功能,例如:部门管理、角色管理、用户管理等) -->
|
||
<dependency>
|
||
<groupId>top.charles7c.continew</groupId>
|
||
<artifactId>continew-admin-system</artifactId>
|
||
<version>${revision}</version>
|
||
</dependency>
|
||
|
||
<!-- 系统工具模块(存放系统工具模块相关功能,例如:代码生成、文件管理等) -->
|
||
<dependency>
|
||
<groupId>top.charles7c.continew</groupId>
|
||
<artifactId>continew-admin-tool</artifactId>
|
||
<version>${revision}</version>
|
||
</dependency>
|
||
|
||
<!-- 公共模块(存放公共工具类,公共配置等) -->
|
||
<dependency>
|
||
<groupId>top.charles7c.continew</groupId>
|
||
<artifactId>continew-admin-common</artifactId>
|
||
<version>${revision}</version>
|
||
</dependency>
|
||
</dependencies>
|
||
</dependencyManagement>
|
||
|
||
<dependencies>
|
||
<!-- Hutool(小而全的 Java 工具类库,通过静态方法封装,降低相关 API 的学习成本,提高工作效率,使 Java 拥有函数式语言般的优雅,让 Java 语言也可以“甜甜的”) -->
|
||
<dependency>
|
||
<groupId>cn.hutool</groupId>
|
||
<artifactId>hutool-all</artifactId>
|
||
</dependency>
|
||
|
||
<!-- Lombok(在 Java 开发过程中用注解的方式,简化了 JavaBean 的编写,避免了冗余和样板式代码,让编写的类更加简洁) -->
|
||
<dependency>
|
||
<groupId>org.projectlombok</groupId>
|
||
<artifactId>lombok</artifactId>
|
||
<optional>true</optional> <!-- 表示依赖不会被传递 -->
|
||
</dependency>
|
||
</dependencies>
|
||
|
||
<build>
|
||
<plugins>
|
||
<!-- 编译插件 -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-compiler-plugin</artifactId>
|
||
<configuration>
|
||
<compilerArgument>-parameters</compilerArgument>
|
||
</configuration>
|
||
</plugin>
|
||
<!-- 单元测试相关插件 -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-surefire-plugin</artifactId>
|
||
<configuration>
|
||
<!-- 跳过单元测试 -->
|
||
<skip>true</skip>
|
||
</configuration>
|
||
</plugin>
|
||
<!-- 代码格式化插件 -->
|
||
<plugin>
|
||
<groupId>com.diffplug.spotless</groupId>
|
||
<artifactId>spotless-maven-plugin</artifactId>
|
||
<executions>
|
||
<execution>
|
||
<phase>compile</phase>
|
||
<goals>
|
||
<goal>apply</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
<configuration>
|
||
<java>
|
||
<removeUnusedImports/>
|
||
<eclipse>
|
||
<file>.style/p3c-codestyle.xml</file>
|
||
</eclipse>
|
||
<licenseHeader>
|
||
<file>.style/license-header</file>
|
||
</licenseHeader>
|
||
</java>
|
||
</configuration>
|
||
</plugin>
|
||
<!-- 统一版本号插件 -->
|
||
<plugin>
|
||
<groupId>org.codehaus.mojo</groupId>
|
||
<artifactId>flatten-maven-plugin</artifactId>
|
||
<configuration>
|
||
<updatePomFile>true</updatePomFile>
|
||
<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>
|
||
</plugins>
|
||
</build>
|
||
|
||
<!-- 远程仓库配置:华为云、阿里云 Maven 镜像源仓库 -->
|
||
<repositories>
|
||
<repository>
|
||
<id>huawei-mirror</id>
|
||
<name>HuaweiCloud Mirror</name>
|
||
<url>https://mirrors.huaweicloud.com/repository/maven/</url>
|
||
</repository>
|
||
<repository>
|
||
<id>ali-mirror</id>
|
||
<name>AliYun Mirror</name>
|
||
<url>https://maven.aliyun.com/repository/public/</url>
|
||
</repository>
|
||
<!-- 快照仓库(仅在 ContiNew Admin 开发版使用,稳定版发布时会移除) -->
|
||
<repository>
|
||
<id>sonatype-nexus-snapshots</id>
|
||
<name>Sonatype Nexus Snapshots</name>
|
||
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
|
||
<snapshots>
|
||
<updatePolicy>always</updatePolicy>
|
||
<enabled>true</enabled>
|
||
</snapshots>
|
||
</repository>
|
||
</repositories>
|
||
</project>
|