加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pom.xml 17.53 KB
一键复制 编辑 原始数据 按行查看 历史
ujcms 提交于 2022-01-10 00:15 . v1.0.0 发布
<?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.ujcms</groupId>
<artifactId>ujcms</artifactId>
<version>1.0.0</version>
<packaging>war</packaging>
<name>UJCMS</name>
<description>UJCMS是基于Java的CMS网站内容系统。使用spring-boot、mybatis、freemarker、vue、element-plus等技术开发。</description>
<url>http://www.ujcms.com/</url>
<inceptionYear>2021-2022</inceptionYear>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.2</version>
</parent>
<properties>
<!-- mybatis-spring-boot-starter 2.0 以上版本 会引用 MyBatis 3.5 以上版本,导致OffsetDateTime出错。该问题与MySQL驱动有关,MySQL8.0.23驱动已解决这个问题。-->
<!-- 相关参考资料:https://blog.csdn.net/zjcsuct/article/details/107754870 -->
<mybatis-spring-boot-starter.version>2.2.0</mybatis-spring-boot-starter.version>
<pagehelper-spring-boot-starter.version>1.4.1</pagehelper-spring-boot-starter.version>
<!--<mybatis-dynamic-sql.version>1.3.0</mybatis-dynamic-sql.version>-->
<spring-boot-starter-mobile.version>1.5.22.RELEASE</spring-boot-starter-mobile.version>
<ik-analyzer.version>8.4.0</ik-analyzer.version>
<lucene.version>8.9.0</lucene.version>
<!--<elasticsearch.version>7.15.2</elasticsearch.version>-->
<!-- freemarker java8 日期组件 -->
<freemarker-java8.version>2.0.0</freemarker-java8.version>
<!-- Apache公共基础组件 -->
<commons-collections4.version>4.4</commons-collections4.version>
<commons-io.version>2.8.0</commons-io.version>
<!-- Apache公共网络组件 -->
<commons-net.version>3.8.0</commons-net.version>
<!-- HTML解析组件 -->
<jsoup.version>1.14.2</jsoup.version>
<!-- HTML不安全代码过滤组件 -->
<owasp-java-html-sanitizer.version>20200713.1</owasp-java-html-sanitizer.version>
<!-- 安全框架 -->
<shiro.version>1.8.0</shiro.version>
<java-jwt.version>3.14.0</java-jwt.version>
<!--<pac4j-core.version>4.0.1</pac4j-core.version>-->
<!--<buji-pac4j.version>5.0.1</buji-pac4j.version>-->
<!-- 验证码组件 -->
<jcaptcha.version>2.0.0</jcaptcha.version>
<!-- 纯 java 图片处理库 -->
<thumbnailator.version>0.4.13</thumbnailator.version>
<!-- GraphicsMagick 原生图片处理库调用组件 -->
<im4java.version>1.4.0</im4java.version>
<!-- IP定位组件 -->
<ip2region.version>1.7.2</ip2region.version>
<!-- 用户代理解析组件。分析用户浏览器类型、操作系统等信息 -->
<UserAgentUtils.version>1.21</UserAgentUtils.version>
<!-- Markdown解析组件 -->
<commonmark.version>0.17.1</commonmark.version>
<!-- 阿里云短信组件 -->
<aliyun-java-sdk-core.version>4.5.30</aliyun-java-sdk-core.version>
<aliyun-java-sdk-dysmsapi.version>2.1.0</aliyun-java-sdk-dysmsapi.version>
<!-- 微信组件 -->
<weixin4j.version>1.10.0</weixin4j.version>
<!-- MinIO对象存储 -->
<minio.version>8.3.0</minio.version>
<!-- 腾讯云对象存储 -->
<cos_api.version>5.6.63</cos_api.version>
<!-- 阿里云对象存储 -->
<aliyun-sdk-oss.version>3.13.2</aliyun-sdk-oss.version>
<!-- 七牛云对象存储 -->
<qiniu-java-sdk.version>7.9.1</qiniu-java-sdk.version>
<!-- swagger2 API文档工具 -->
<!--<springfox-boot-starter.version>3.0.0</springfox-boot-starter.version>-->
<!-- 此项设置可以让IntelliJ IDEA自动识别Spring Boot工程,可以直接点击右上角运行按钮启动程序 -->
<start-class>com.ujcms.Application</start-class>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<!-- JDBC驱动 -->
<jdbc.driver.groupId>mysql</jdbc.driver.groupId>
<jdbc.driver.artifactId>mysql-connector-java</jdbc.driver.artifactId>
<!-- 8.0 驱动可以支持 MySQL5.7,但MySQL 5.6的支持情况还不清楚。但为了支持MySQL8,必须使用8.0的驱动 -->
<jdbc.driver.version>8.0.23</jdbc.driver.version>
<jdbc.driverClassName>com.mysql.cj.jdbc.Driver</jdbc.driverClassName>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- 打包成war需要设置scope为provided -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
</dependency>
<!-- mybatis -->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>${mybatis-spring-boot-starter.version}</version>
</dependency>
<!-- mybatis 分页 -->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>${pagehelper-spring-boot-starter.version}</version>
</dependency>
<!--<dependency>-->
<!-- <groupId>org.mybatis.dynamic-sql</groupId>-->
<!-- <artifactId>mybatis-dynamic-sql</artifactId>-->
<!-- <version>${mybatis-dynamic-sql.version}</version>-->
<!--</dependency>-->
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
</dependency>
<!-- springboot freemarker 依赖 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>
<dependency>
<groupId>no.api.freemarker</groupId>
<artifactId>freemarker-java8</artifactId>
<version>${freemarker-java8.version}</version>
</dependency>
<!-- spring boot mail -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>
<!-- spring boot mobile -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mobile</artifactId>
<version>${spring-boot-starter-mobile.version}</version>
</dependency>
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring-boot-web-starter</artifactId>
<version>${shiro.version}</version>
</dependency>
<dependency>
<groupId>com.github.magese</groupId>
<artifactId>ik-analyzer</artifactId>
<version>${ik-analyzer.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-queryparser</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-analyzers-common</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<version>${commons-collections4.version}</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${commons-io.version}</version>
</dependency>
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>${commons-net.version}</version>
</dependency>
<!-- 解析 html 和过滤危险html代码 -->
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>${jsoup.version}</version>
</dependency>
<dependency>
<groupId>com.googlecode.owasp-java-html-sanitizer</groupId>
<artifactId>owasp-java-html-sanitizer</artifactId>
<version>${owasp-java-html-sanitizer.version}</version>
</dependency>
<!-- JWT 组件 -->
<dependency>
<groupId>com.auth0</groupId>
<artifactId>java-jwt</artifactId>
<version>${java-jwt.version}</version>
</dependency>
<!--<dependency>-->
<!-- <groupId>io.buji</groupId>-->
<!-- <artifactId>buji-pac4j</artifactId>-->
<!-- <version>${buji-pac4j.version}</version>-->
<!--</dependency>-->
<!--&lt;!&ndash; shiro cas 整合 &ndash;&gt;-->
<!--<dependency>-->
<!-- <groupId>org.pac4j</groupId>-->
<!-- <artifactId>pac4j-cas</artifactId>-->
<!-- <version>${pac4j-core.version}</version>-->
<!--</dependency>-->
<!-- 验证码组件 -->
<dependency>
<groupId>io.leopard.thirdparty</groupId>
<artifactId>jcaptcha-core</artifactId>
<version>${jcaptcha.version}</version>
</dependency>
<!-- 纯 java 图片压缩组件 -->
<dependency>
<groupId>net.coobird</groupId>
<artifactId>thumbnailator</artifactId>
<version>${thumbnailator.version}</version>
</dependency>
<!-- 调用 gmagick 处理图片的接口库 -->
<dependency>
<groupId>org.im4java</groupId>
<artifactId>im4java</artifactId>
<version>${im4java.version}</version>
</dependency>
<!-- IP 地址库 -->
<dependency>
<groupId>org.lionsoul</groupId>
<artifactId>ip2region</artifactId>
<version>${ip2region.version}</version>
</dependency>
<!-- 浏览器UserAgent识别组件 -->
<dependency>
<groupId>eu.bitwalker</groupId>
<artifactId>UserAgentUtils</artifactId>
<version>${UserAgentUtils.version}</version>
</dependency>
<dependency>
<groupId>org.commonmark</groupId>
<artifactId>commonmark</artifactId>
<version>${commonmark.version}</version>
</dependency>
<!-- 阿里云短信组件 -->
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-core</artifactId>
<version>${aliyun-java-sdk-core.version}</version>
</dependency>
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-dysmsapi</artifactId>
<version>${aliyun-java-sdk-dysmsapi.version}</version>
</dependency>
<!-- 微信组件 -->
<!--<dependency>-->
<!-- <groupId>com.foxinmy</groupId>-->
<!-- <artifactId>weixin4j-mp</artifactId>-->
<!-- <version>${weixin4j.version}</version>-->
<!--</dependency>-->
<!-- MinIO 对象存储 -->
<dependency>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
<version>${minio.version}</version>
</dependency>
<!-- 腾讯云对象存储 -->
<!--<dependency>-->
<!-- <groupId>com.qcloud</groupId>-->
<!-- <artifactId>cos_api</artifactId>-->
<!-- <version>${cos_api.version}</version>-->
<!-- <exclusions>-->
<!-- <exclusion>-->
<!-- <groupId>org.slf4j</groupId>-->
<!-- <artifactId>slf4j-log4j12</artifactId>-->
<!-- </exclusion>-->
<!-- <exclusion>-->
<!-- <groupId>log4j</groupId>-->
<!-- <artifactId>log4j</artifactId>-->
<!-- </exclusion>-->
<!-- </exclusions>-->
<!--</dependency>-->
<!-- 七牛云对象存储 -->
<!--<dependency>-->
<!-- <groupId>com.qiniu</groupId>-->
<!-- <artifactId>qiniu-java-sdk</artifactId>-->
<!-- <version>${qiniu-java-sdk.version}</version>-->
<!--</dependency>-->
<!-- 阿里云对象存储 -->
<!--<dependency>-->
<!-- <groupId>com.aliyun.oss</groupId>-->
<!-- <artifactId>aliyun-sdk-oss</artifactId>-->
<!-- <version>${aliyun-sdk-oss.version}</version>-->
<!--</dependency>-->
<!-- swagger2 API文档工具。spring boot 2.6 会报错 -->
<!--<dependency>-->
<!-- <groupId>io.springfox</groupId>-->
<!-- <artifactId>springfox-boot-starter</artifactId>-->
<!-- <version>${springfox-boot-starter.version}</version>-->
<!--</dependency>-->
<!-- 防止出现找不到javax.annotation.meta.When的类文件的问题 -->
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>annotations</artifactId>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>${jdbc.driver.groupId}</groupId>
<artifactId>${jdbc.driver.artifactId}</artifactId>
<version>${jdbc.driver.version}</version>
<scope>runtime</scope>
</dependency>
<!---->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- 使用 @ConfigurationProperties 注解时,可以生成配置文件,让开发工具识别配置项 -->
<!-- https://docs.spring.io/spring-boot/docs/2.4.3/reference/htmlsingle/#configuration-metadata-annotation-processor -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<!-- 开发模式工具。开发模式下自动取消模板缓存、修改class后自动重启等功能 -->
<!-- https://docs.spring.io/spring-boot/docs/2.4.3/reference/htmlsingle/#using-boot-devtools -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.4.0</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.4.0</version>
<configuration>
<!-- 将MyBatis代码生成配置文件放到test目录下,以免作为正式文件发布 -->
<!-- 默认值:${basedir}/src/main/resources/generatorConfig.xml -->
<configurationFile>${basedir}/src/test/resources/generatorConfig.xml</configurationFile>
</configuration>
<dependencies>
<dependency>
<groupId>${jdbc.driver.groupId}</groupId>
<artifactId>${jdbc.driver.artifactId}</artifactId>
<version>${jdbc.driver.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>aliyun-repos</id>
<url>https://maven.aliyun.com/repository/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>aliyun-repos</id>
<url>https://maven.aliyun.com/repository/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</project>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化