升级标准骨架版本

This commit is contained in:
zhaoyong 2021-09-14 15:44:35 +08:00
parent ba818d5151
commit 842abaa6be
32 changed files with 614 additions and 190 deletions

View File

@ -13,7 +13,7 @@
<groupId>cn.axzo.archetype</groupId>
<artifactId>archetype-standard</artifactId>
<version>1.0.0</version>
<version>1.1.0</version>
<name>archetype-standard</name>
<packaging>jar</packaging>

View File

@ -5,6 +5,15 @@
xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<fileSets>
<fileSet encoding="UTF-8">
<directory></directory>
<includes>
<include>.gitignore</include>
<include>help.txt</include>
</includes>
</fileSet>
</fileSets>
<modules>
<module id="${rootArtifactId}-client" dir="__rootArtifactId__-client" name="${rootArtifactId}-client">
<fileSets>
@ -44,6 +53,16 @@
</fileSet>
</fileSets>
</module>
<module id="${rootArtifactId}-http-api" dir="__rootArtifactId__-http-api" name="${rootArtifactId}-http-api">
<fileSets>
<fileSet filtered="true" packaged="true" encoding="UTF-8">
<directory>src/main/java</directory>
<includes>
<include>**/*.java</include>
</includes>
</fileSet>
</fileSets>
</module>
<module id="${rootArtifactId}-integration" dir="__rootArtifactId__-integration" name="${rootArtifactId}-integration">
<fileSets>
<fileSet filtered="true" packaged="true" encoding="UTF-8">

View File

@ -0,0 +1,33 @@
# maven ignore
target/
*.jar
*.war
*.zip
*.tar
*.tar.gz
# eclipse ignore
.settings/
.project
.classpath
# idea ignore
.idea/
*.ipr
*.iml
*.iws
# temp ignore
logs/
*.doc
*.log
*.cache
*.diff
*.patch
*.tmp
# system ignore
.DS_Store
Thumbs.db
*.class

View File

@ -1,42 +1,109 @@
<?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>${groupId}</groupId>
<artifactId>${rootArtifactId}</artifactId>
<version>${version}</version>
</parent>
<artifactId>${rootArtifactId}-client</artifactId>
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>${groupId}</groupId>
<artifactId>${rootArtifactId}</artifactId>
<version>${version}</version>
</parent>
<artifactId>${rootArtifactId}-client</artifactId>
<dependencies>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-service</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
<exclusions>
<exclusion>
<artifactId>guava</artifactId>
<groupId>com.google.guava</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</dependency>
<dependency>
<groupId>com.xuxueli</groupId>
<artifactId>xxl-job-core</artifactId>
</dependency>
</dependencies>
<dependencies>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-http-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
<exclusions>
<exclusion>
<artifactId>guava</artifactId>
<groupId>com.google.guava</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</dependency>
<dependency>
<groupId>com.xuxueli</groupId>
<artifactId>xxl-job-core</artifactId>
</dependency>
</dependencies>
<profiles>
<!--本地环境 -->
<profile>
<id>local</id>
<properties>
<activatedProperties>local</activatedProperties>
</properties>
</profile>
<!--开发环境 -->
<profile>
<id>dev</id>
<properties>
<activatedProperties>dev</activatedProperties>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<!--测试环境 -->
<profile>
<id>test</id>
<properties>
<activatedProperties>test</activatedProperties>
</properties>
</profile>
<!--test1 环境 -->
<profile>
<id>test1</id>
<properties>
<activatedProperties>test1</activatedProperties>
</properties>
</profile>
<!--预发布环境 -->
<profile>
<id>pre</id>
<properties>
<activatedProperties>pre</activatedProperties>
</properties>
</profile>
<!--生产环境 -->
<profile>
<id>master</id>
<properties>
<activatedProperties>master</activatedProperties>
</properties>
</profile>
</profiles>
<build>
<finalName>mns-client</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,9 +0,0 @@
package ${package}.client;
/**
* @author zhaoyong
*
*/
public class ClientTest {
}

View File

@ -0,0 +1,14 @@
/**
* xxx-client:是请求处理模块包前缀标准为cn.axzo.xxx.client.
*
* 里面可以定义
*
* controller 包用于定义响应前端请求的控制器
* config 包用于定义整个项目的配置(Redis 配置Xxl Job 配置Spring Web 统一异常配置数据库配置等)
* interceptor 包用来定义 spring mvc 中的拦截器等
*
* @author zhaoyong
* @see package-info
* @since 2021-09-14 14:47
*/
package ${package}.client;

View File

@ -1,63 +1,88 @@
<?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>${groupId}</groupId>
<artifactId>${rootArtifactId}</artifactId>
<version>${version}</version>
</parent>
<artifactId>${rootArtifactId}-common</artifactId>
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>${groupId}</groupId>
<artifactId>${rootArtifactId}</artifactId>
<version>${version}</version>
</parent>
<artifactId>${rootArtifactId}-common</artifactId>
<dependencies>
<dependency>
<groupId>net.logstash.logback</groupId>
<artifactId>logstash-logback-encoder</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
</dependency>
<dependency>
<groupId>org.redisson</groupId>
<artifactId>redisson</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
</dependencies>
<dependencies>
<dependency>
<groupId>cn.axzo.framework</groupId>
<artifactId>common-common</artifactId>
</dependency>
<dependency>
<groupId>org.apache.skywalking</groupId>
<artifactId>apm-toolkit-logback-1.x</artifactId>
</dependency>
<dependency>
<groupId>org.apache.skywalking</groupId>
<artifactId>apm-toolkit-trace</artifactId>
</dependency>
<dependency>
<groupId>net.logstash.logback</groupId>
<artifactId>logstash-logback-encoder</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
</dependency>
<dependency>
<groupId>org.redisson</groupId>
<artifactId>redisson</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,9 +0,0 @@
package ${package}.common;
/**
* @author zhaoyong
*
*/
public class CommonTest {
}

View File

@ -0,0 +1,19 @@
/**
* xxx-common是通用模块包前缀标准为cn.axzo.xxx.common.
*
* 里面可以定义
*
* constants 包用来定义系统中使用到的常量值
* context 包用来定义系统当中要使用到的上下文
* enums 包用来定义系统当中使用到的枚举值
* utils 包用来定义系统当中的工具类等
*
* 因为这个模块都会被其它模块引用所以这个模块的 pom.xml 依赖的 jar 包必须是公共能用的
* 比如lombokcommon-utils guava,fastjson 不应该引用的 jar 比如携程的配置中心
* apollo(xxx-client 依赖)远程服务调用 dubbo 或者 feign (xxx-integration 依赖)
*
* @author zhaoyong
* @see package-info
* @since 2021-09-14 14:47
*/
package ${package}.common;

View File

@ -42,4 +42,17 @@
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,9 +0,0 @@
package ${package}.dal;
/**
* @author zhaoyong
*
*/
public class DalTest {
}

View File

@ -0,0 +1,17 @@
/**
* xxx-dal是数据访问模块包前缀标准为cn.axzo.xxx.dal.
*
* 里面可以定义
*
* mapper 包用来定义服务访问 mapper 接口
* repository 包用来定义包装 mapper 接口(主要功能是可以代理增强 mapper)
* entity 包用来定义数据库实体访问对象
* domain 包用来定义访问数据库的请求对象等
*
* 因为这个模块的主要功能是访问数据库所以这个模块的 pom.xml 依赖的 jar 包应该是和数据访问相关的比如jdbc 驱动mybatis
*
* @author zhaoyong
* @see package-info
* @since 2021-09-14 14:47
*/
package ${package}.dal;

View File

@ -0,0 +1,57 @@
<?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>${groupId}</groupId>
<artifactId>${rootArtifactId}</artifactId>
<version>${version}</version>
</parent>
<artifactId>${rootArtifactId}-http-api</artifactId>
<dependencies>
<dependency>
<groupId>cn.axzo.framework</groupId>
<artifactId>common-common</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,11 @@
/**
* xxx-http-api是提供给外部的 http jar
*
* 里面提供了 feign 的接口依赖方只需要引用这个 jar 包就可以进行远程调用该服务
* 不过随着项目对外部暴露的接口调整也需要对 xxx-http-api 进行升级
*
* @author zhaoyong
* @see package-info
* @since 2021-09-14 14:47
*/
package ${package}.http.api;

View File

@ -20,4 +20,17 @@
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,9 +0,0 @@
package ${package}.integration;
/**
* @author zhaoyong
*
*/
public class IntegrationTest {
}

View File

@ -0,0 +1,14 @@
/**
* xxx-integration:是外部接口集成模块包前缀标准为cn.axzo.xxx.integration.
*
* 里面可以定义
*
* service 包用来定义 feign 接口
* 定义 client 接口用来包装 service 包中的接口(代理增强 service:打印日志异常处理)
* 定义 dto 包用来定义远程请求与响应对象
*
* @author zhaoyong
* @see package-info
* @since 2021-09-14 14:47
*/
package ${package}.integration;

View File

@ -1,23 +1,37 @@
<?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>${groupId}</groupId>
<artifactId>${rootArtifactId}</artifactId>
<version>${version}</version>
</parent>
<artifactId>${rootArtifactId}-manager-api</artifactId>
<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>${groupId}</groupId>
<artifactId>${rootArtifactId}</artifactId>
<version>${version}</version>
</parent>
<artifactId>${rootArtifactId}-manager-api</artifactId>
<dependencies>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-dal</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<dependencies>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-dal</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,9 +0,0 @@
package ${package}.manager.api;
/**
* @author zhaoyong
*
*/
public class ManagerTest {
}

View File

@ -0,0 +1,10 @@
/**
* xxx-manager-api是通用逻辑处理类包前缀标准为cn.axzo.xxx.manager.api.
*
* 可以是访问数据库的一些逻辑的编排也可以是定义一些公共的逻辑处理比如时间处理 Manager分布式锁 Manager
*
* @author zhaoyong
* @see package-info
* @since 2021-09-14 14:47
*/
package ${package}.manager;

View File

@ -24,5 +24,29 @@
<artifactId>${rootArtifactId}-integration</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
<exclusions>
<exclusion>
<artifactId>guava</artifactId>
<groupId>com.google.guava</groupId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,9 +0,0 @@
package ${package}.manager.impl;
/**
* @author zhaoyong
*
*/
public class ManagerTest {
}

View File

@ -0,0 +1,10 @@
/**
* xxx-manager:是能用逻辑处理类的模块:包前缀标准为cn.axzo.xxx.manager.impl.
*
* 它对访问数据库的一些逻辑的编排达到操作的原子性同时也实现一些公共逻辑处理的一些实现
*
* @author zhaoyong
* @see package-info
* @since 2021-09-14 14:47
*/
package ${package}.manager;

View File

@ -21,4 +21,17 @@
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,9 +0,0 @@
package ${package}.service.api;
/**
* @author zhaoyong
*
*/
public class ServiceTest {
}

View File

@ -0,0 +1,14 @@
/**
* xxx-service-api:是业务逻辑层包前缀标准为cn.axzo.xxx.service.api.
*
* 里面定义的接口直接给 xxx-client 中的 controller 调用所有的业务逻辑都会被封装到它的实现类当中
* 业务 Controller 只会调用这个 Service 并不关注具体的业务实现细节
*
* 可以定义 request 包用于 service 接口的请求参数
* 可以定义 response 用于 service 接口的响应参数
*
* @author zhaoyong
* @see package-info
* @since 2021-09-14 14:47
*/
package ${package}.service;

View File

@ -21,4 +21,17 @@
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,9 +0,0 @@
package ${package}.service.impl;
/**
* @author zhaoyong
*
*/
public class ServiceTest {
}

View File

@ -0,0 +1,10 @@
/**
* xxx-service: xxx-service-api 模块定义的接口的实现类接口包前缀标准为:cn.axzo.xxx.service.impl.
*
* 它是聚合 xxx-manager 这个通用处理层的它主要是集成数据库访问以及第三方接口的调用它的作用是业务逻辑的编排
*
* @author zhaoyong
* @see package-info
* @since 2021-09-14 14:47
*/
package ${package}.service;

View File

@ -20,4 +20,17 @@
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,5 @@
本来每个 module 都写了 package-info.java 但是不知道什么原因有些 module 的 package-info.java 没有生成。
大家对于骨架的详细信息可以参考 wiki:
http://confluence.axzo.cn/pages/viewpage.action?pageId=30510003

View File

@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.4.4</version>
<version>2.2.8.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
@ -15,12 +15,24 @@
<packaging>pom</packaging>
<properties>
<!-- common property -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<!--project version-->
<revision>1.0.0</revision>
<!-- axzo jar -->
<common-common.version>1.0.11</common-common.version>
<!-- tool -->
<apm-toolkit-trace.version>8.5.0</apm-toolkit-trace.version>
<apm-toolkit-logback-1.x.version>8.5.0</apm-toolkit-logback-1.x.version>
<commons-collections4.version>4.4</commons-collections4.version>
<commons-lang3.version>3.5</commons-lang3.version>
<hutool-all.version>5.5.7</hutool-all.version>
<logstash-logback-encoder.version>6.1</logstash-logback-encoder.version>
<xxl.job.version>2.2.0</xxl.job.version>
<redisson.version>3.13.2</redisson.version>
<apm-toolkit-trace.version>8.5.0</apm-toolkit-trace.version>
<redisson.version>3.13.6</redisson.version>
<fastjson.version>1.2.47</fastjson.version>
<joda-time.version>2.10.6</joda-time.version>
<javax.validation.version>2.0.0.Final</javax.validation.version>
@ -30,6 +42,7 @@
<velocity-engine-core.version>2.0</velocity-engine-core.version>
<spring-cloud-alibaba.version>2.2.1.RELEASE</spring-cloud-alibaba.version>
<spring-cloud.version>Hoxton.SR6</spring-cloud.version>
<lock4j.version>2.2.0</lock4j.version>
</properties>
<dependencyManagement>
@ -49,6 +62,11 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>cn.axzo.framework</groupId>
<artifactId>common-common</artifactId>
<version>${common-common.version}</version>
</dependency>
<!-- database -->
<dependency>
<groupId>com.baomidou</groupId>
@ -61,6 +79,16 @@
<version>${mybatis-plus.version}</version>
</dependency>
<!-- tool -->
<dependency>
<groupId>org.apache.skywalking</groupId>
<artifactId>apm-toolkit-trace</artifactId>
<version>${apm-toolkit-trace.version}</version>
</dependency>
<dependency>
<groupId>org.apache.skywalking</groupId>
<artifactId>apm-toolkit-logback-1.x</artifactId>
<version>${apm-toolkit-logback-1.x.version}</version>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
@ -122,7 +150,47 @@
<artifactId>xxl-job-core</artifactId>
<version>${xxl.job.version}</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>lock4j-redisson-spring-boot-starter</artifactId>
<version>${lock4j.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<!-- Source attach plugin -->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.0.0</version>
<configuration>
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>