mirror of
https://github.com/201206030/novel-plus.git
synced 2025-04-26 17:20:52 +00:00
336 lines
13 KiB
Java
336 lines
13 KiB
Java
<?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.java2nb</groupId>
|
||
<artifactId>novel-admin</artifactId>
|
||
<version>5.0.0-SNAPSHOT</version>
|
||
<packaging>jar</packaging>
|
||
|
||
<name>novel-admin</name>
|
||
<description>小说精品屋后台管理</description>
|
||
|
||
<parent>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-parent</artifactId>
|
||
<version>2.7.18</version>
|
||
<relativePath/>
|
||
</parent>
|
||
|
||
<properties>
|
||
<java.version>17</java.version>
|
||
<velocity.version>1.7</velocity.version>
|
||
<shardingsphere-jdbc.version>5.5.1</shardingsphere-jdbc.version>
|
||
</properties>
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-test</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-aop</artifactId>
|
||
</dependency>
|
||
<!--web -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-web</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
||
</dependency>
|
||
<!-- NekoHTML 是一个简单地HTML扫描器和标签补偿器(tag balancer) ,使得程序能解析HTML文档并用标准的XML接口来访问其中的信息。
|
||
这个解析器能投扫描HTML文件并“修正”许多作者(人或机器)在编写HTML文档过程中常犯的错误。
|
||
NekoHTML 能增补缺失的父元素、自动用结束标签关闭相应的元素,以及不匹配的内嵌元素标签。
|
||
NekoHTML 的开发使用了Xerces Native Interface (XNI),后者是Xerces2的实现基础。-->
|
||
<dependency>
|
||
<groupId>net.sourceforge.nekohtml</groupId>
|
||
<artifactId>nekohtml</artifactId>
|
||
</dependency>
|
||
<!-- 请求参数校验相关 -->
|
||
<dependency>
|
||
<groupId>org.hibernate.validator</groupId>
|
||
<artifactId>hibernate-validator</artifactId>
|
||
</dependency>
|
||
<!--mybatis -->
|
||
<dependency>
|
||
<groupId>mysql</groupId>
|
||
<artifactId>mysql-connector-java</artifactId>
|
||
<version>8.0.29</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.mybatis.spring.boot</groupId>
|
||
<artifactId>mybatis-spring-boot-starter</artifactId>
|
||
<version>1.1.1</version>
|
||
</dependency>
|
||
<!--commons -->
|
||
<dependency>
|
||
<groupId>commons-configuration</groupId>
|
||
<artifactId>commons-configuration</artifactId>
|
||
<version>1.10</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>commons-io</groupId>
|
||
<artifactId>commons-io</artifactId>
|
||
<version>2.9.0</version>
|
||
</dependency>
|
||
<!--shiro -->
|
||
<dependency>
|
||
<groupId>org.apache.shiro</groupId>
|
||
<artifactId>shiro-core</artifactId>
|
||
<version>1.11.0</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.shiro</groupId>
|
||
<artifactId>shiro-spring</artifactId>
|
||
<version>1.11.0</version>
|
||
</dependency>
|
||
<!-- shiro ehcache -->
|
||
<dependency>
|
||
<groupId>org.apache.shiro</groupId>
|
||
<artifactId>shiro-ehcache</artifactId>
|
||
<exclusions>
|
||
<exclusion>
|
||
<groupId>net.sf.ehcache</groupId>
|
||
<artifactId>ehcache-core</artifactId>
|
||
</exclusion>
|
||
</exclusions>
|
||
<version>1.11.0</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.github.theborakompanioni</groupId>
|
||
<artifactId>thymeleaf-extras-shiro</artifactId>
|
||
<version>2.0.0</version>
|
||
</dependency>
|
||
<!-- utils -->
|
||
<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>fastjson</artifactId>
|
||
<version>1.2.83</version>
|
||
</dependency>
|
||
<!--velocity代码生成使用模板 -->
|
||
<dependency>
|
||
<groupId>org.apache.velocity</groupId>
|
||
<artifactId>velocity</artifactId>
|
||
<version>1.7</version>
|
||
<exclusions>
|
||
<exclusion>
|
||
<artifactId>commons-lang</artifactId>
|
||
<groupId>commons-lang</groupId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
<!--<dependency>-->
|
||
<!--<groupId>org.springframework.boot</groupId>-->
|
||
<!--<artifactId>spring-boot-starter-data-redis</artifactId>-->
|
||
<!--</dependency>-->
|
||
<!-- quartz -->
|
||
<!--<dependency>-->
|
||
<!--<groupId>org.springframework.boot</groupId>-->
|
||
<!--<artifactId>spring-boot-starter-cache</artifactId>-->
|
||
<!--</dependency>-->
|
||
|
||
<!--<dependency>-->
|
||
<!--<groupId>net.sf.ehcache</groupId>-->
|
||
<!--<artifactId>ehcache</artifactId>-->
|
||
<!--</dependency>-->
|
||
|
||
|
||
<!--<dependency>-->
|
||
<!--<groupId>org.springframework.boot</groupId>-->
|
||
<!--<artifactId>spring-boot-devtools</artifactId>-->
|
||
<!--<optional>true</optional>-->
|
||
<!--</dependency>-->
|
||
|
||
<!--swagger2-->
|
||
<dependency>
|
||
<groupId>io.springfox</groupId>
|
||
<artifactId>springfox-swagger2</artifactId>
|
||
<version>2.6.1</version>
|
||
<exclusions>
|
||
<exclusion>
|
||
<artifactId>guava</artifactId>
|
||
<groupId>com.google.guava</groupId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>io.springfox</groupId>
|
||
<artifactId>springfox-swagger-ui</artifactId>
|
||
<version>2.6.1</version>
|
||
</dependency>
|
||
|
||
<!-- 添加redis支持-->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>redis.clients</groupId>
|
||
<artifactId>jedis</artifactId>
|
||
<version>2.9.0</version>
|
||
</dependency>
|
||
|
||
|
||
<dependency>
|
||
<groupId>org.projectlombok</groupId>
|
||
<artifactId>lombok</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.apache.commons</groupId>
|
||
<artifactId>commons-text</artifactId>
|
||
<version>1.4</version>
|
||
<exclusions>
|
||
<exclusion>
|
||
<artifactId>commons-lang3</artifactId>
|
||
<groupId>org.apache.commons</groupId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
|
||
<!-- ShardingSphere-JDBC -->
|
||
<dependency>
|
||
<groupId>org.apache.shardingsphere</groupId>
|
||
<artifactId>shardingsphere-jdbc</artifactId>
|
||
<version>${shardingsphere-jdbc.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.yaml</groupId>
|
||
<artifactId>snakeyaml</artifactId>
|
||
<version>2.2</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.h2database</groupId>
|
||
<artifactId>h2</artifactId>
|
||
<scope>runtime</scope>
|
||
</dependency>
|
||
|
||
<!--war包部署需要-->
|
||
<!--<dependency>-->
|
||
<!--<groupId>org.springframework.boot</groupId>-->
|
||
<!--<artifactId>spring-boot-starter-web</artifactId>-->
|
||
<!--<!– 移除嵌入式tomcat插件 –>-->
|
||
<!--<exclusions>-->
|
||
<!--<exclusion>-->
|
||
<!--<groupId>org.springframework.boot</groupId>-->
|
||
<!--<artifactId>spring-boot-starter-tomcat</artifactId>-->
|
||
<!--</exclusion>-->
|
||
<!--</exclusions>-->
|
||
<!--</dependency>-->
|
||
<!--<dependency>-->
|
||
<!--<groupId>javax.servlet</groupId>-->
|
||
<!--<artifactId>javax.servlet-api</artifactId>-->
|
||
<!--<version>3.1.0</version>-->
|
||
<!--<scope>provided</scope>-->
|
||
<!--</dependency>-->
|
||
</dependencies>
|
||
<!-- <build>
|
||
<plugins>
|
||
<!–<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
<configuration>
|
||
<executable>true</executable>
|
||
</configuration>
|
||
</plugin>–>
|
||
<!–SpringBoot项目默认使用spring-boot-maven-plugin,要打成被其他项目引用的jar包,需要更换此插件–>
|
||
<!– <plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-compiler-plugin</artifactId>
|
||
<configuration>
|
||
<source>1.8</source>
|
||
<target>1.8</target>
|
||
<encoding>UTF-8</encoding>
|
||
</configuration>
|
||
</plugin>–>
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
</plugin>
|
||
</plugins>
|
||
</build>-->
|
||
<build>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
</plugin>
|
||
<plugin>
|
||
<artifactId>maven-antrun-plugin</artifactId>
|
||
<version>1.8</version>
|
||
<executions>
|
||
<execution>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>run</goal>
|
||
</goals>
|
||
<configuration>
|
||
<tasks>
|
||
<!-- 文件夹 -->
|
||
<copy todir="${project.build.directory}/build/config" overwrite="true">
|
||
<fileset dir="${basedir}/src/main/build/config">
|
||
<include name="*.*"/>
|
||
</fileset>
|
||
</copy>
|
||
<copy file="${project.build.directory}/${project.artifactId}-${project.version}.jar"
|
||
tofile="${project.build.directory}/build/${project.artifactId}.jar"/>
|
||
|
||
<fixcrlf srcdir="${basedir}/src/main/build/scripts" eol="unix"/>
|
||
<copy todir="${project.build.directory}/build/bin">
|
||
<fileset dir="${basedir}/src/main/build/scripts">
|
||
<include name="*.sh"/>
|
||
<include name="*.txt"/>
|
||
<include name="*.bat"/>
|
||
</fileset>
|
||
</copy>
|
||
<zip destfile='${project.build.directory}/build/${project.artifactId}.zip'>
|
||
<zipfileset filemode="755" dir='${project.build.directory}/build/'/>
|
||
</zip>
|
||
|
||
<copy file="${basedir}/src/main/build/docker/Dockerfile"
|
||
tofile="${project.build.directory}/build/Dockerfile"/>
|
||
</tasks>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
<repositories>
|
||
<repository>
|
||
<id>ali</id>
|
||
<url>https://maven.aliyun.com/repository/public</url>
|
||
<releases>
|
||
<enabled>true</enabled>
|
||
</releases>
|
||
<snapshots>
|
||
<enabled>false</enabled>
|
||
</snapshots>
|
||
</repository>
|
||
</repositories>
|
||
<pluginRepositories>
|
||
<pluginRepository>
|
||
<id>ali-plugin</id>
|
||
<url>https://maven.aliyun.com/repository/public</url>
|
||
<releases>
|
||
<enabled>true</enabled>
|
||
</releases>
|
||
<snapshots>
|
||
<enabled>false</enabled>
|
||
</snapshots>
|
||
</pluginRepository>
|
||
</pluginRepositories>
|
||
</project>
|