feat(xtools-parent): 初始化父POM项目并配置统一依赖管理
- 创建xtools-parent项目结构 - 配置基本包依赖包括JUnit、Lombok、FastJSON2等 - 添加常用工具类库如Commons系列、加密解密、系统信息获取等功能模块 - 集成Web开发相关依赖包括Servlet API、MapStruct等 - 设置办公文档处理工具如PDFBox、Excel处理等 - 配置图片处理、验证码、爬虫等扩展功能组件 - 完善Maven构建配置和打包命令说明
This commit is contained in:
20
README.md
20
README.md
@@ -1,3 +1,21 @@
|
|||||||
# xtools-parent
|
# xtools-parent
|
||||||
|
|
||||||
低调大师工具箱,父pom文件,适配JDK25
|
低调大师工具箱,父pom文件,适配JDK25
|
||||||
|
> 为所有的xtools工具提供第三方包版本统一管理
|
||||||
|
|
||||||
|
## 更新记录
|
||||||
|
|
||||||
|
* 2026-01-01 创建项目
|
||||||
|
|
||||||
|
## Maven 打包命令
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# 清理并打包
|
||||||
|
mvn clean package -DskipTests=true
|
||||||
|
|
||||||
|
# 清理,打包并安装到本地Maven仓库
|
||||||
|
mvn clean package install -DskipTests=true
|
||||||
|
|
||||||
|
# 清理,打包,安装到本地Maven仓库并发布到远程私有Maven仓库
|
||||||
|
mvn clean package install deploy -DskipTests=true
|
||||||
|
```
|
||||||
238
pom.xml
Normal file
238
pom.xml
Normal file
@@ -0,0 +1,238 @@
|
|||||||
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
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>
|
||||||
|
<groupId>org.xujun</groupId>
|
||||||
|
<artifactId>xtools-parent</artifactId>
|
||||||
|
<version>5.0.0</version>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
<name>xtools-parent</name>
|
||||||
|
<description>低调大师工具箱,父pom文件,适配JDK25</description>
|
||||||
|
|
||||||
|
<!-- 组织信息 -->
|
||||||
|
<organization>
|
||||||
|
<name>org.xujun</name>
|
||||||
|
<url>https://www.xujun.org</url>
|
||||||
|
</organization>
|
||||||
|
|
||||||
|
<!-- 属性配置 -->
|
||||||
|
<properties>
|
||||||
|
<!-- 版本号 begin -->
|
||||||
|
<!-- 基本包 -->
|
||||||
|
<junit-jupiter.version>6.0.3</junit-jupiter.version>
|
||||||
|
<lombok.version>1.18.44</lombok.version>
|
||||||
|
<fastjson2.version>2.0.60</fastjson2.version>
|
||||||
|
|
||||||
|
<!-- 通用 Jar -->
|
||||||
|
<commons-io.version>2.21.0</commons-io.version>
|
||||||
|
<commons-lang3.version>3.20.0</commons-lang3.version>
|
||||||
|
<commons-text.version>1.15.0</commons-text.version>
|
||||||
|
|
||||||
|
<!-- 扩展工具 -->
|
||||||
|
<bcprov.version>1.84</bcprov.version>
|
||||||
|
<UserAgentUtils.version>1.21</UserAgentUtils.version>
|
||||||
|
<oshi-core.version>6.11.1</oshi-core.version>
|
||||||
|
<ip2region.version>3.3.7</ip2region.version>
|
||||||
|
<java-jwt.version>4.5.1</java-jwt.version>
|
||||||
|
<pinyin4j.version>2.5.1</pinyin4j.version>
|
||||||
|
<thumbnailator.version>0.4.21</thumbnailator.version>
|
||||||
|
<mmseg4j-core.version>1.10.0</mmseg4j-core.version>
|
||||||
|
<zxing.version>3.5.4</zxing.version>
|
||||||
|
<s3.version>2.42.34</s3.version>
|
||||||
|
<caffeine.version>3.2.3</caffeine.version>
|
||||||
|
|
||||||
|
<!-- 办公工具 -->
|
||||||
|
<fesod-sheet.version>2.0.1-incubating</fesod-sheet.version>
|
||||||
|
<pdfbox.version>3.0.7</pdfbox.version>
|
||||||
|
|
||||||
|
<!-- Web 工具 -->
|
||||||
|
<jakarta.servlet-api.version>6.1.0</jakarta.servlet-api.version>
|
||||||
|
<!-- 版本号 end -->
|
||||||
|
|
||||||
|
<!-- other begin -->
|
||||||
|
<mapstruct.version>1.6.3</mapstruct.version>
|
||||||
|
<velocity.version>2.4.1</velocity.version>
|
||||||
|
<easy-captcha.version>1.6.2</easy-captcha.version>
|
||||||
|
<jsoup.version>1.22.1</jsoup.version>
|
||||||
|
<!-- other end -->
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<!-- 自定义依赖 -->
|
||||||
|
<dependencyManagement>
|
||||||
|
<dependencies>
|
||||||
|
<!-- 基本包 begin -->
|
||||||
|
<!-- Junit(单元测试) -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.junit.jupiter</groupId>
|
||||||
|
<artifactId>junit-jupiter</artifactId>
|
||||||
|
<version>${junit-jupiter.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- lombok -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
<version>${lombok.version}</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- fastjson2 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.alibaba.fastjson2</groupId>
|
||||||
|
<artifactId>fastjson2</artifactId>
|
||||||
|
<version>${fastjson2.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- 基本包 end -->
|
||||||
|
|
||||||
|
<!-- commons begin -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>commons-io</groupId>
|
||||||
|
<artifactId>commons-io</artifactId>
|
||||||
|
<version>${commons-io.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.commons</groupId>
|
||||||
|
<artifactId>commons-lang3</artifactId>
|
||||||
|
<version>${commons-lang3.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.commons</groupId>
|
||||||
|
<artifactId>commons-text</artifactId>
|
||||||
|
<version>${commons-text.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- commons end -->
|
||||||
|
|
||||||
|
<!-- 扩展工具 begin -->
|
||||||
|
<!-- bcprov 加密库 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.bouncycastle</groupId>
|
||||||
|
<artifactId>bcprov-jdk18on</artifactId>
|
||||||
|
<version>${bcprov.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- 浏览器标识工具 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>eu.bitwalker</groupId>
|
||||||
|
<artifactId>UserAgentUtils</artifactId>
|
||||||
|
<version>${UserAgentUtils.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- 获取系统信息工具 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.oshi</groupId>
|
||||||
|
<artifactId>oshi-core</artifactId>
|
||||||
|
<version>${oshi-core.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- ip2region(本地IP查询工具) -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.lionsoul</groupId>
|
||||||
|
<artifactId>ip2region</artifactId>
|
||||||
|
<version>${ip2region.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- JSON WEB令牌 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.auth0</groupId>
|
||||||
|
<artifactId>java-jwt</artifactId>
|
||||||
|
<version>${java-jwt.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- 拼音转换 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.belerweb</groupId>
|
||||||
|
<artifactId>pinyin4j</artifactId>
|
||||||
|
<version>${pinyin4j.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- 图片压缩 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>net.coobird</groupId>
|
||||||
|
<artifactId>thumbnailator</artifactId>
|
||||||
|
<version>${thumbnailator.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- 中文分词工具 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.chenlb.mmseg4j</groupId>
|
||||||
|
<artifactId>mmseg4j-core</artifactId>
|
||||||
|
<version>${mmseg4j-core.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- 码(二维码,条形码) -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.google.zxing</groupId>
|
||||||
|
<artifactId>javase</artifactId>
|
||||||
|
<version>${zxing.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- excel 表格工具 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.fesod</groupId>
|
||||||
|
<artifactId>fesod-sheet</artifactId>
|
||||||
|
<version>${fesod-sheet.version}</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
<!-- PDF 工具 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.pdfbox</groupId>
|
||||||
|
<artifactId>pdfbox</artifactId>
|
||||||
|
<version>${pdfbox.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- 存储工具s3客户端 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>software.amazon.awssdk</groupId>
|
||||||
|
<artifactId>s3</artifactId>
|
||||||
|
<version>${s3.version}</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
<!-- 本地缓存 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.ben-manes.caffeine</groupId>
|
||||||
|
<artifactId>caffeine</artifactId>
|
||||||
|
<version>${caffeine.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- 扩展工具 end -->
|
||||||
|
|
||||||
|
<!-- Web工具 begin -->
|
||||||
|
<!-- servlet-api -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>jakarta.servlet</groupId>
|
||||||
|
<artifactId>jakarta.servlet-api</artifactId>
|
||||||
|
<version>${jakarta.servlet-api.version}</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
<!-- Web工具 end -->
|
||||||
|
|
||||||
|
<!-- Other begin -->
|
||||||
|
<!-- MapStruct begin -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.mapstruct</groupId>
|
||||||
|
<artifactId>mapstruct</artifactId>
|
||||||
|
<version>${mapstruct.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.mapstruct</groupId>
|
||||||
|
<artifactId>mapstruct-processor</artifactId>
|
||||||
|
<version>${mapstruct.version}</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
<!-- MapStruct end -->
|
||||||
|
|
||||||
|
<!-- velocity -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.velocity</groupId>
|
||||||
|
<artifactId>velocity-engine-core</artifactId>
|
||||||
|
<version>${velocity.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- 验证码 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.whvcse</groupId>
|
||||||
|
<artifactId>easy-captcha</artifactId>
|
||||||
|
<version>${easy-captcha.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- 爬虫工具 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jsoup</groupId>
|
||||||
|
<artifactId>jsoup</artifactId>
|
||||||
|
<version>${jsoup.version}</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
<!-- Other end -->
|
||||||
|
</dependencies>
|
||||||
|
</dependencyManagement>
|
||||||
|
|
||||||
|
</project>
|
||||||
Reference in New Issue
Block a user