|
|
<?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">
|
|
|
|
|
|
<!--项目的名称, Maven产生的文档用 -->
|
|
|
<name>opsli-boot-parent</name>
|
|
|
<!--项目主页的URL, Maven产生的文档用 -->
|
|
|
<url>https://www.opsli.com</url>
|
|
|
<!-- 描述 -->
|
|
|
<description>一个基于springboot、vue、ant design、集成代码生成器的Java开源快速开发框架,微服务平台。</description>
|
|
|
<!--项目开发者列表 -->
|
|
|
<developers>
|
|
|
<!--项目开发者的信息 -->
|
|
|
<developer>
|
|
|
<!--SCM里项目开发者的唯一标识符 -->
|
|
|
<id>parker</id>
|
|
|
<!--项目开发者的全名 -->
|
|
|
<name>Parker Chou</name>
|
|
|
<!--项目开发者的email -->
|
|
|
<email>meet.parker@foxmail.com</email>
|
|
|
<!--项目开发者的主页的URL -->
|
|
|
<url>https://www.opsli.com</url>
|
|
|
<!--项目开发者在项目中扮演的角色,角色元素描述了各种角色 -->
|
|
|
<roles>
|
|
|
<role>Project Manager</role>
|
|
|
<role>Architect</role>
|
|
|
</roles>
|
|
|
<!--项目开发者所属组织 -->
|
|
|
<organization>personal</organization>
|
|
|
</developer>
|
|
|
</developers>
|
|
|
|
|
|
<!-- 父节点 -->
|
|
|
<parent>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
|
<version>2.3.3.RELEASE</version>
|
|
|
<relativePath/> <!-- lookup parent from repository -->
|
|
|
</parent>
|
|
|
|
|
|
<!-- opsli-boot-parent 信息 -->
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
<groupId>org.opsliframework.boot</groupId>
|
|
|
<artifactId>opsli-boot-parent</artifactId>
|
|
|
<version>1.0.0</version>
|
|
|
<packaging>pom</packaging>
|
|
|
|
|
|
<!-- 引入 modules -->
|
|
|
<modules>
|
|
|
<module>opsli-web</module>
|
|
|
<module>opsli-core</module>
|
|
|
<module>opsli-common</module>
|
|
|
<module>opsli-plugins</module>
|
|
|
<module>opsli-modulars</module>
|
|
|
</modules>
|
|
|
|
|
|
<!-- 全局版本 -->
|
|
|
<properties>
|
|
|
<!-- 需要使用着两个版本 来引入对应的模块和插件 -->
|
|
|
<!-- 插件版本 -->
|
|
|
<plugins.version>1.0.0</plugins.version>
|
|
|
<!-- 模块版本 -->
|
|
|
<modulars.version>1.0.0</modulars.version>
|
|
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
<java.version>1.8</java.version>
|
|
|
<spring-boot.version>2.3.0.RELEASE</spring-boot.version>
|
|
|
<fastjson.version>1.2.73</fastjson.version>
|
|
|
<mybatis-plus.version>3.4.0</mybatis-plus.version>
|
|
|
<druid.version>1.1.17</druid.version>
|
|
|
<dynamic.version>2.5.4</dynamic.version>
|
|
|
<jwt.version>0.9.1</jwt.version>
|
|
|
<commons.lang3.version>3.11</commons.lang3.version>
|
|
|
<commons.io.version>2.8.0</commons.io.version>
|
|
|
<guava.version>29.0-jre</guava.version>
|
|
|
<hutool.version>5.4.2</hutool.version>
|
|
|
|
|
|
<!-- <aliyun-java-sdk-core.version>3.2.3</aliyun-java-sdk-core.version>-->
|
|
|
<!-- <aliyun-java-sdk-dysmsapi.version>1.0.0</aliyun-java-sdk-dysmsapi.version>-->
|
|
|
<!-- <aliyun.oss.version>3.6.0</aliyun.oss.version>-->
|
|
|
</properties>
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
<!-- 集成 springboot 相关组件 BEGIN -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-web</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>
|
|
|
<!-- actuator 端点监控 -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
</dependency>
|
|
|
<!-- 热部署 如果使用 Jrebel 忽略就好,如果不使用 Jrebel 则放开 -->
|
|
|
<!--
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-devtools</artifactId>
|
|
|
<optional>true</optional>
|
|
|
</dependency>
|
|
|
-->
|
|
|
<!-- 集成 springboot 相关组件 END -->
|
|
|
|
|
|
<!-- 集成Shiro鉴权安全认证 BEGIN -->
|
|
|
<!--shiro-->
|
|
|
<!--<dependency>
|
|
|
<groupId>org.apache.shiro</groupId>
|
|
|
<artifactId>shiro-spring-boot-starter</artifactId>
|
|
|
<version>1.6.0</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!– shiro-redis –>
|
|
|
<dependency>
|
|
|
<groupId>org.crazycake</groupId>
|
|
|
<artifactId>shiro-redis</artifactId>
|
|
|
<version>3.3.0</version>
|
|
|
<exclusions>
|
|
|
<exclusion>
|
|
|
<groupId>org.apache.shiro</groupId>
|
|
|
<artifactId>shiro-core</artifactId>
|
|
|
</exclusion>
|
|
|
</exclusions>
|
|
|
</dependency>-->
|
|
|
<!-- 集成Shiro鉴权安全认证 END -->
|
|
|
|
|
|
<!-- 集成数据库相关配置 BEGIN-->
|
|
|
<!-- mybatis-plus -->
|
|
|
<dependency>
|
|
|
<groupId>com.baomidou</groupId>
|
|
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
|
|
<version>${mybatis-plus.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- druid -->
|
|
|
<dependency>
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
<artifactId>druid-spring-boot-starter</artifactId>
|
|
|
<version>${druid.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- 动态数据源 -->
|
|
|
<dependency>
|
|
|
<groupId>com.baomidou</groupId>
|
|
|
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
|
|
|
<version>${dynamic.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!--mysql-->
|
|
|
<dependency>
|
|
|
<groupId>mysql</groupId>
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
<version>8.0.20</version>
|
|
|
<scope>runtime</scope>
|
|
|
</dependency>
|
|
|
<!-- sqlserver-->
|
|
|
<dependency>
|
|
|
<groupId>com.microsoft.sqlserver</groupId>
|
|
|
<artifactId>sqljdbc4</artifactId>
|
|
|
<version>4.0</version>
|
|
|
<scope>runtime</scope>
|
|
|
</dependency>
|
|
|
<!-- oracle驱动 -->
|
|
|
<dependency>
|
|
|
<groupId>com.oracle</groupId>
|
|
|
<artifactId>ojdbc6</artifactId>
|
|
|
<version>11.2.0.3</version>
|
|
|
<scope>runtime</scope>
|
|
|
</dependency>
|
|
|
<!-- postgresql驱动 -->
|
|
|
<dependency>
|
|
|
<groupId>org.postgresql</groupId>
|
|
|
<artifactId>postgresql</artifactId>
|
|
|
<version>42.2.6</version>
|
|
|
<scope>runtime</scope>
|
|
|
</dependency>
|
|
|
<!-- 集成数据库相关配置 END-->
|
|
|
|
|
|
<!-- 集成Redis缓存 BEGIN -->
|
|
|
<!-- Redis -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-data-redis</artifactId>
|
|
|
</dependency>
|
|
|
<!-- 池管理 -->
|
|
|
<dependency>
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
<artifactId>commons-pool2</artifactId>
|
|
|
</dependency>
|
|
|
<!-- 集成Redis缓存 END -->
|
|
|
|
|
|
<!-- 集成接口文档 BEGIN -->
|
|
|
<!-- Swagger API文档 -->
|
|
|
<dependency>
|
|
|
<groupId>io.springfox</groupId>
|
|
|
<artifactId>springfox-swagger2</artifactId>
|
|
|
<version>2.9.2</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>io.springfox</groupId>
|
|
|
<artifactId>springfox-swagger-ui</artifactId>
|
|
|
<version>2.9.2</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>com.github.xiaoymin</groupId>
|
|
|
<artifactId>swagger-bootstrap-ui</artifactId>
|
|
|
<version>1.9.3</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>io.springfox</groupId>
|
|
|
<artifactId>springfox-bean-validators</artifactId>
|
|
|
<version>2.9.2</version>
|
|
|
</dependency>
|
|
|
<!-- # 增加两个配置解决 NumberFormatException -->
|
|
|
<dependency>
|
|
|
<groupId>io.swagger</groupId>
|
|
|
<artifactId>swagger-annotations</artifactId>
|
|
|
<version>1.5.22</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>io.swagger</groupId>
|
|
|
<artifactId>swagger-models</artifactId>
|
|
|
<version>1.5.22</version>
|
|
|
</dependency>
|
|
|
<!-- 集成接口文档 END -->
|
|
|
|
|
|
<!-- 集成工具 BEGIN-->
|
|
|
<!-- commons -->
|
|
|
<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>
|
|
|
|
|
|
<!-- guava -->
|
|
|
<dependency>
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
<artifactId>guava</artifactId>
|
|
|
<version>${guava.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- Lombok -->
|
|
|
<dependency>
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
<artifactId>lombok</artifactId>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- alibaba json -->
|
|
|
<!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
|
|
|
<dependency>
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
<artifactId>fastjson</artifactId>
|
|
|
<version>${fastjson.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- 糊涂工具包 建议不要重度依赖 -->
|
|
|
<dependency>
|
|
|
<groupId>cn.hutool</groupId>
|
|
|
<artifactId>hutool-all</artifactId>
|
|
|
<version>${hutool.version}</version>
|
|
|
</dependency>
|
|
|
<!-- 集成工具 END-->
|
|
|
|
|
|
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
<!-- 包版本管理 -->
|
|
|
<dependencyManagement>
|
|
|
<dependencies>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
|
|
<version>${spring-boot.version}</version>
|
|
|
<type>pom</type>
|
|
|
<scope>import</scope>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
</dependencyManagement>
|
|
|
|
|
|
<!-- 远程仓库 -->
|
|
|
<repositories>
|
|
|
<repository>
|
|
|
<id>aliyun</id>
|
|
|
<name>aliyun Repository</name>
|
|
|
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
|
|
|
<snapshots>
|
|
|
<enabled>false</enabled>
|
|
|
</snapshots>
|
|
|
</repository>
|
|
|
<repository>
|
|
|
<id>uk</id>
|
|
|
<name>uk Repository</name>
|
|
|
<url>http://uk.maven.org/maven2/</url>
|
|
|
<snapshots>
|
|
|
<enabled>false</enabled>
|
|
|
</snapshots>
|
|
|
</repository>
|
|
|
<repository>
|
|
|
<id>ibiblio</id>
|
|
|
<name>ibiblio Repository</name>
|
|
|
<url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
|
|
|
<snapshots>
|
|
|
<enabled>false</enabled>
|
|
|
</snapshots>
|
|
|
</repository>
|
|
|
</repositories>
|
|
|
|
|
|
|
|
|
<!-- 环境选择 -->
|
|
|
<profiles>
|
|
|
<profile>
|
|
|
<!-- 本地开发环境 -->
|
|
|
<id>dev</id>
|
|
|
<properties>
|
|
|
<spring.active>dev</spring.active>
|
|
|
</properties>
|
|
|
<activation>
|
|
|
<!-- 设置默认激活这个配置 -->
|
|
|
<activeByDefault>true</activeByDefault>
|
|
|
</activation>
|
|
|
</profile>
|
|
|
<profile>
|
|
|
<!-- 发布环境 -->
|
|
|
<id>release</id>
|
|
|
<properties>
|
|
|
<spring.active>release</spring.active>
|
|
|
</properties>
|
|
|
</profile>
|
|
|
<profile>
|
|
|
<!-- 测试环境 -->
|
|
|
<id>beta</id>
|
|
|
<properties>
|
|
|
<spring.active>beta</spring.active>
|
|
|
</properties>
|
|
|
</profile>
|
|
|
</profiles>
|
|
|
|
|
|
<!-- 构建 -->
|
|
|
<build>
|
|
|
<plugins>
|
|
|
<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.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
<configuration>
|
|
|
<skipTests>true</skipTests>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
<!-- 避免font文件的二进制文件格式压缩破坏 -->
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
<configuration>
|
|
|
<nonFilteredFileExtensions>
|
|
|
<nonFilteredFileExtension>woff</nonFilteredFileExtension>
|
|
|
<nonFilteredFileExtension>woff2</nonFilteredFileExtension>
|
|
|
<nonFilteredFileExtension>eot</nonFilteredFileExtension>
|
|
|
<nonFilteredFileExtension>ttf</nonFilteredFileExtension>
|
|
|
<nonFilteredFileExtension>svg</nonFilteredFileExtension>
|
|
|
</nonFilteredFileExtensions>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
<resources>
|
|
|
<resource>
|
|
|
<directory>src/main/resources</directory>
|
|
|
<filtering>true</filtering>
|
|
|
</resource>
|
|
|
<resource>
|
|
|
<directory>src/main/java</directory>
|
|
|
<includes>
|
|
|
<include>**/*.xml</include>
|
|
|
<include>**/*.json</include>
|
|
|
<include>**/*.ftl</include>
|
|
|
</includes>
|
|
|
</resource>
|
|
|
</resources>
|
|
|
</build>
|
|
|
|
|
|
</project>
|