|
|
@@ -1,237 +1,186 @@
|
|
|
<?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.mokamrp</groupId>
|
|
|
- <artifactId>moka-private</artifactId>
|
|
|
- <version>1.0-SNAPSHOT</version>
|
|
|
- <name>moka-private</name>
|
|
|
- <properties>
|
|
|
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
- <redis.version>3.1.0</redis.version>
|
|
|
- <springboot.version>2.1.7.RELEASE</springboot.version>
|
|
|
- </properties>
|
|
|
- <dependencyManagement>
|
|
|
+ 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.mokamrp</groupId>
|
|
|
+ <artifactId>moka-private</artifactId>
|
|
|
+ <version>1.0-SNAPSHOT</version>
|
|
|
+ <name>moka-private</name>
|
|
|
+ <properties>
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
+ <redis.version>3.1.0</redis.version>
|
|
|
+ <springboot.version>2.1.7.RELEASE</springboot.version>
|
|
|
+ </properties>
|
|
|
+ <dependencyManagement>
|
|
|
+ <dependencies>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-dependencies</artifactId>
|
|
|
+ <version>2.1.7.RELEASE</version>
|
|
|
+ <type>pom</type>
|
|
|
+ <scope>import</scope>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+ </dependencyManagement>
|
|
|
<dependencies>
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-dependencies</artifactId>
|
|
|
- <version>2.1.7.RELEASE</version>
|
|
|
- <type>pom</type>
|
|
|
- <scope>import</scope>
|
|
|
- </dependency>
|
|
|
- </dependencies>
|
|
|
- </dependencyManagement>
|
|
|
- <dependencies>
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-web</artifactId>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-validation</artifactId>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>net.sourceforge.nekohtml</groupId>
|
|
|
- <artifactId>nekohtml</artifactId>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-thymeleaf</artifactId>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>org.mybatis</groupId>
|
|
|
- <artifactId>mybatis-ehcache</artifactId>
|
|
|
- <version>1.0.0</version>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>net.sf.ehcache</groupId>
|
|
|
- <artifactId>ehcache</artifactId>
|
|
|
- <version>2.8.3</version>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>mysql</groupId>
|
|
|
- <artifactId>mysql-connector-java</artifactId>
|
|
|
- <scope>runtime</scope>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>com.alibaba</groupId>
|
|
|
- <artifactId>fastjson</artifactId>
|
|
|
- <version>1.2.62</version>
|
|
|
- </dependency>
|
|
|
- <!-- https://mvnrepository.com/artifact/com.baomidou/mybatis-plus-boot-starter -->
|
|
|
- <dependency>
|
|
|
- <groupId>com.baomidou</groupId>
|
|
|
- <artifactId>mybatis-plus-boot-starter</artifactId>
|
|
|
- <version>3.4.1</version>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>com.baomidou</groupId>
|
|
|
- <artifactId>mybatis-plus-generator</artifactId>
|
|
|
- <version>3.4.1</version>
|
|
|
- </dependency>
|
|
|
- <!-- Apache velocity -->
|
|
|
- <dependency>
|
|
|
- <groupId>org.apache.velocity</groupId>
|
|
|
- <artifactId>velocity-engine-core</artifactId>
|
|
|
- <version>2.0</version>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>org.projectlombok</groupId>
|
|
|
- <artifactId>lombok</artifactId>
|
|
|
- <version>1.18.8</version>
|
|
|
- <scope>provided</scope>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>junit</groupId>
|
|
|
- <artifactId>junit</artifactId>
|
|
|
- <version>4.11</version>
|
|
|
- <scope>test</scope>
|
|
|
- </dependency>
|
|
|
- <!-- xxl-sso-core -->
|
|
|
- <dependency>
|
|
|
- <groupId>com.xuxueli</groupId>
|
|
|
- <artifactId>xxl-sso-core</artifactId>
|
|
|
- <version>1.1.1-SNAPSHOT</version>
|
|
|
- </dependency>
|
|
|
- <!-- jedis -->
|
|
|
- <dependency>
|
|
|
- <groupId>redis.clients</groupId>
|
|
|
- <artifactId>jedis</artifactId>
|
|
|
- <version>3.2.0</version>
|
|
|
- </dependency>
|
|
|
- <!-- redis 缓存操作 -->
|
|
|
- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-starter-data-redis</artifactId>
|
|
|
- </dependency>
|
|
|
- <!-- 开启二级缓存 -->
|
|
|
- <dependency>
|
|
|
- <groupId>org.mybatis.caches</groupId>
|
|
|
- <artifactId>mybatis-ehcache</artifactId>
|
|
|
- <version>1.1.0</version>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <groupId>com.aliyun.oss</groupId>
|
|
|
- <artifactId>aliyun-sdk-oss</artifactId>
|
|
|
- <version>3.8.0</version>
|
|
|
- </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-web</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-validation</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>net.sourceforge.nekohtml</groupId>
|
|
|
+ <artifactId>nekohtml</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-thymeleaf</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.mybatis</groupId>
|
|
|
+ <artifactId>mybatis-ehcache</artifactId>
|
|
|
+ <version>1.0.0</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>net.sf.ehcache</groupId>
|
|
|
+ <artifactId>ehcache</artifactId>
|
|
|
+ <version>2.8.3</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>mysql</groupId>
|
|
|
+ <artifactId>mysql-connector-java</artifactId>
|
|
|
+ <scope>runtime</scope>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
+ <artifactId>fastjson</artifactId>
|
|
|
+ <version>1.2.62</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- https://mvnrepository.com/artifact/com.baomidou/mybatis-plus-boot-starter -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.baomidou</groupId>
|
|
|
+ <artifactId>mybatis-plus-boot-starter</artifactId>
|
|
|
+ <version>3.4.1</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.baomidou</groupId>
|
|
|
+ <artifactId>mybatis-plus-generator</artifactId>
|
|
|
+ <version>3.4.1</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- Apache velocity -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.velocity</groupId>
|
|
|
+ <artifactId>velocity-engine-core</artifactId>
|
|
|
+ <version>2.0</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.projectlombok</groupId>
|
|
|
+ <artifactId>lombok</artifactId>
|
|
|
+ <version>1.18.8</version>
|
|
|
+ <scope>provided</scope>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>junit</groupId>
|
|
|
+ <artifactId>junit</artifactId>
|
|
|
+ <version>4.11</version>
|
|
|
+ <scope>test</scope>
|
|
|
+ </dependency>
|
|
|
+ <!-- xxl-sso-core -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.xuxueli</groupId>
|
|
|
+ <artifactId>xxl-sso-core</artifactId>
|
|
|
+ <version>1.1.1-SNAPSHOT</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- jedis -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>redis.clients</groupId>
|
|
|
+ <artifactId>jedis</artifactId>
|
|
|
+ <version>3.2.0</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- redis 缓存操作 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-data-redis</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!-- 开启二级缓存 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.mybatis.caches</groupId>
|
|
|
+ <artifactId>mybatis-ehcache</artifactId>
|
|
|
+ <version>1.1.0</version>
|
|
|
+ </dependency>
|
|
|
|
|
|
- </dependencies>
|
|
|
- <build>
|
|
|
- <resources>
|
|
|
- <resource>
|
|
|
- <directory>src/main/java</directory><!--所在的目录-->
|
|
|
- <includes><!--包括目录下的.properties,.xml文件都会扫描到-->
|
|
|
- <include>**/*.xml</include>
|
|
|
- </includes>
|
|
|
- <filtering>false</filtering>
|
|
|
- </resource>
|
|
|
- <resource>
|
|
|
- <directory>src/main/resources</directory><!--所在的目录-->
|
|
|
- <includes><!--包括目录下的.properties,.xml文件都会扫描到-->
|
|
|
- <include>**/*.xml</include>
|
|
|
- <include>**/*.properties</include>
|
|
|
- </includes>
|
|
|
- <filtering>false</filtering>
|
|
|
- </resource>
|
|
|
- <resource>
|
|
|
- <directory>src/main/resources/template</directory><!--所在的目录-->
|
|
|
- <includes><!--包括目录下的.properties,.xml文件都会扫描到-->
|
|
|
- <include>**/*.vm</include>
|
|
|
- </includes>
|
|
|
- <filtering>false</filtering>
|
|
|
- </resource>
|
|
|
- </resources>
|
|
|
- <plugins>
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-surefire-plugin</artifactId>
|
|
|
- <version>2.18.1</version>
|
|
|
- <configuration>
|
|
|
- <skipTests>true</skipTests>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-deploy-plugin</artifactId>
|
|
|
- <version>2.8.2</version>
|
|
|
- <configuration>
|
|
|
- <skip>true</skip>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
- <version>2.1.7.RELEASE</version>
|
|
|
- <configuration>
|
|
|
- <fork>true</fork>
|
|
|
- <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
|
|
|
- <includeSystemScope>true</includeSystemScope>
|
|
|
- </configuration>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <goals>
|
|
|
- <goal>repackage</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- <!-- maven资源文件复制插件 -->
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-resources-plugin</artifactId>
|
|
|
- <version>2.7</version>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>copy-config</id>
|
|
|
- <phase>package</phase>
|
|
|
- <goals>
|
|
|
- <goal>copy-resources</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <outputDirectory>${project.build.directory}/</outputDirectory>
|
|
|
- <resources>
|
|
|
- <resource>
|
|
|
- <directory>src/main/resources</directory>
|
|
|
- <includes>
|
|
|
- <exclude>**/*.xml</exclude>
|
|
|
- <exclude>**/*.conf</exclude>
|
|
|
- <exclude>**/*.properties</exclude>
|
|
|
- </includes>
|
|
|
- <filtering>true</filtering>
|
|
|
- </resource>
|
|
|
- </resources>
|
|
|
- <encoding>UTF-8</encoding>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-jar-plugin</artifactId>
|
|
|
- <version>2.4</version>
|
|
|
- <configuration>
|
|
|
- <finalName>moka-private</finalName>
|
|
|
- <excludes>
|
|
|
- <exclude>*.properties</exclude>
|
|
|
- </excludes>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-compiler-plugin</artifactId>
|
|
|
- <version>3.5.1</version>
|
|
|
- <configuration>
|
|
|
- <source>1.8</source>
|
|
|
- <target>1.8</target>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- </plugins>
|
|
|
- </build>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.aliyun.oss</groupId>
|
|
|
+ <artifactId>aliyun-sdk-oss</artifactId>
|
|
|
+ <version>3.8.0</version>
|
|
|
+ </dependency>
|
|
|
|
|
|
+ </dependencies>
|
|
|
+ <profiles>
|
|
|
+ <!-- <profile>-->
|
|
|
+ <!-- <id>dev</id>-->
|
|
|
+ <!-- <properties>-->
|
|
|
+ <!-- <profileActive>dev</profileActive>-->
|
|
|
+ <!-- </properties>-->
|
|
|
+ <!-- <activation>-->
|
|
|
+ <!-- <activeByDefault>true</activeByDefault>-->
|
|
|
+ <!-- </activation>-->
|
|
|
+ <!-- </profile>-->
|
|
|
+ <profile>
|
|
|
+ <id>test</id>
|
|
|
+ <properties>
|
|
|
+ <profileActive>test</profileActive>
|
|
|
+ </properties>
|
|
|
+ <activation>
|
|
|
+ <activeByDefault>true</activeByDefault>
|
|
|
+ </activation>
|
|
|
+ </profile>
|
|
|
+ <profile>
|
|
|
+ <id>prod</id>
|
|
|
+ <properties>
|
|
|
+ <profileActive>prod</profileActive>
|
|
|
+ </properties>
|
|
|
+ </profile>
|
|
|
+ </profiles>
|
|
|
+ <build>
|
|
|
+ <finalName>${project.artifactId}</finalName>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
+ <filtering>true</filtering>
|
|
|
+ <includes>
|
|
|
+ <include>**/*.*</include>
|
|
|
+ </includes>
|
|
|
+ </resource>
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
+ <filtering>true</filtering>
|
|
|
+ <includes>
|
|
|
+ <include>application.properties</include>
|
|
|
+ <include>application-${profileActive}.properties</include>
|
|
|
+ </includes>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>3.5.1</version>
|
|
|
+ <configuration>
|
|
|
+ <source>1.8</source>
|
|
|
+ <target>1.8</target>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
|
|
|
|
|
|
</project>
|