|
|
|
|
<?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>
|
|
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
|
<version>2.3.5.RELEASE</version>
|
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
|
|
<groupId>cn.stylefeng</groupId>
|
|
|
|
|
<artifactId>guns-standalone-beetl</artifactId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
|
|
|
|
|
<name>guns-standalone-beetl</name>
|
|
|
|
|
<description>单体前后端不分离,基于beetl模板引擎</description>
|
|
|
|
|
|
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
|
|
<java.version>1.8</java.version>
|
|
|
|
|
<mysql-connector-java.version>8.0.21</mysql-connector-java.version>
|
|
|
|
|
<docker.img.version>latest</docker.img.version>
|
|
|
|
|
<oshi.version>3.9.1</oshi.version>
|
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.ibeetl/beetl -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.ibeetl</groupId>
|
|
|
|
|
<artifactId>beetl</artifactId>
|
|
|
|
|
<version>3.3.1.RELEASE</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>cn.stylefeng.roses</groupId>
|
|
|
|
|
<artifactId>auth-spring-boot-starter</artifactId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>cn.stylefeng.roses</groupId>
|
|
|
|
|
<artifactId>config-spring-boot-starter</artifactId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>cn.stylefeng.roses</groupId>
|
|
|
|
|
<artifactId>db-spring-boot-starter</artifactId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>cn.stylefeng.roses</groupId>
|
|
|
|
|
<artifactId>file-spring-boot-starter</artifactId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>cn.stylefeng.roses</groupId>
|
|
|
|
|
<artifactId>scanner-spring-boot-starter</artifactId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>cn.stylefeng.roses</groupId>
|
|
|
|
|
<artifactId>pinyin-spring-boot-starter</artifactId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>cn.stylefeng.roses</groupId>
|
|
|
|
|
<artifactId>validator-spring-boot-starter</artifactId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>cn.stylefeng.roses</groupId>
|
|
|
|
|
<artifactId>dict-spring-boot-starter</artifactId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>cn.stylefeng.roses</groupId>
|
|
|
|
|
<artifactId>system-spring-boot-starter</artifactId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>cn.stylefeng.roses</groupId>
|
|
|
|
|
<artifactId>office-spring-boot-starter</artifactId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>cn.stylefeng.roses</groupId>
|
|
|
|
|
<artifactId>log-spring-boot-starter</artifactId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>cn.stylefeng.roses</groupId>
|
|
|
|
|
<artifactId>timer-spring-boot-starter</artifactId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>cn.stylefeng.roses</groupId>
|
|
|
|
|
<artifactId>sms-spring-boot-starter</artifactId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>cn.stylefeng.roses</groupId>
|
|
|
|
|
<artifactId>message-spring-boot-starter</artifactId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>cn.stylefeng.roses</groupId>
|
|
|
|
|
<artifactId>wrapper-spring-boot-starter</artifactId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!--多数据源配置-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>cn.stylefeng.roses</groupId>
|
|
|
|
|
<artifactId>ds-container-spring-boot-starter</artifactId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!--数据库驱动,可根据自己需要自行删减-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
|
|
<version>${mysql-connector-java.version}</version>
|
|
|
|
|
</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-configuration-processor</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!--硬件信息获取-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.github.oshi</groupId>
|
|
|
|
|
<artifactId>oshi-core</artifactId>
|
|
|
|
|
<version>${oshi.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!-- actuator monitor -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!-- prometheus meter -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.micrometer</groupId>
|
|
|
|
|
<artifactId>micrometer-registry-prometheus</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
<finalName>guns</finalName>
|
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>repackage</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
<configuration>
|
|
|
|
|
<!-- 如果没有该项配置,则devtools不会起作用,即应用不会restart -->
|
|
|
|
|
<fork>true</fork>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
<version>3.7.0</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<source>1.8</source>
|
|
|
|
|
<target>1.8</target>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
|
|
|
<version>3.2.1</version>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>jar-no-fork</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
<resources>
|
|
|
|
|
<resource>
|
|
|
|
|
<directory>src/main/webapp</directory>
|
|
|
|
|
<filtering>false</filtering>
|
|
|
|
|
</resource>
|
|
|
|
|
<resource>
|
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
|
<filtering>true</filtering>
|
|
|
|
|
</resource>
|
|
|
|
|
<resource>
|
|
|
|
|
<directory>src/main/java</directory>
|
|
|
|
|
<includes>
|
|
|
|
|
<include>**/*.xml</include>
|
|
|
|
|
</includes>
|
|
|
|
|
</resource>
|
|
|
|
|
</resources>
|
|
|
|
|
</build>
|
|
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
|
<profile>
|
|
|
|
|
<id>local</id>
|
|
|
|
|
<properties>
|
|
|
|
|
<spring.active>local</spring.active>
|
|
|
|
|
</properties>
|
|
|
|
|
<activation>
|
|
|
|
|
<activeByDefault>true</activeByDefault>
|
|
|
|
|
</activation>
|
|
|
|
|
</profile>
|
|
|
|
|
<profile>
|
|
|
|
|
<id>dev</id>
|
|
|
|
|
<properties>
|
|
|
|
|
<spring.active>dev</spring.active>
|
|
|
|
|
</properties>
|
|
|
|
|
</profile>
|
|
|
|
|
<profile>
|
|
|
|
|
<id>prod</id>
|
|
|
|
|
<properties>
|
|
|
|
|
<spring.active>prod</spring.active>
|
|
|
|
|
</properties>
|
|
|
|
|
</profile>
|
|
|
|
|
</profiles>
|
|
|
|
|
|
|
|
|
|
</project>
|