|
@@ -1,5 +1,6 @@
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
|
-<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">
|
|
|
+<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.ym</groupId>
|
|
@@ -10,21 +11,31 @@
|
|
|
<name>mec</name>
|
|
|
<url>http://maven.apache.org</url>
|
|
|
|
|
|
+ <properties>
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
+ <maven.compiler.source>1.8</maven.compiler.source>
|
|
|
+ <maven.compiler.target>1.8</maven.compiler.target>
|
|
|
+ <spring-boot.version>2.1.6.RELEASE</spring-boot.version>
|
|
|
+ <spring-cloud.version>Greenwich.RELEASE</spring-cloud.version>
|
|
|
+ <zipkin.version>2.12.2</zipkin.version>
|
|
|
+ </properties>
|
|
|
+
|
|
|
<dependencyManagement>
|
|
|
<dependencies>
|
|
|
<!--支持Spring Boot 2.1.X -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
|
|
- <version>2.1.4.RELEASE</version>
|
|
|
+ <version>${spring-boot.version}</version>
|
|
|
<type>pom</type>
|
|
|
<scope>import</scope>
|
|
|
</dependency>
|
|
|
-
|
|
|
+
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
<artifactId>spring-cloud-dependencies</artifactId>
|
|
|
- <version>Greenwich.RELEASE</version>
|
|
|
+ <version>${spring-cloud.version}</version>
|
|
|
<type>pom</type>
|
|
|
<scope>import</scope>
|
|
|
</dependency>
|
|
@@ -40,7 +51,7 @@
|
|
|
<artifactId>spring-boot-admin-starter-server</artifactId>
|
|
|
<version>2.1.6</version>
|
|
|
</dependency>
|
|
|
-
|
|
|
+
|
|
|
<dependency>
|
|
|
<groupId>com.ym</groupId>
|
|
|
<artifactId>mec-common</artifactId>
|
|
@@ -52,17 +63,17 @@
|
|
|
<artifactId>mec-auth-api</artifactId>
|
|
|
<version>1.0</version>
|
|
|
</dependency>
|
|
|
-
|
|
|
+
|
|
|
<dependency>
|
|
|
<groupId>com.ym</groupId>
|
|
|
<artifactId>mec-util</artifactId>
|
|
|
<version>1.0</version>
|
|
|
</dependency>
|
|
|
-
|
|
|
+
|
|
|
<dependency>
|
|
|
<groupId>io.zipkin.java</groupId>
|
|
|
<artifactId>zipkin-server</artifactId>
|
|
|
- <version>2.12.2</version>
|
|
|
+ <version>${zipkin.version}</version>
|
|
|
<!--排除log4j2 避免和logback冲突警告 -->
|
|
|
<exclusions>
|
|
|
<exclusion>
|
|
@@ -71,20 +82,20 @@
|
|
|
</exclusion>
|
|
|
</exclusions>
|
|
|
</dependency>
|
|
|
-
|
|
|
+
|
|
|
<dependency>
|
|
|
<groupId>io.zipkin.java</groupId>
|
|
|
<artifactId>zipkin-autoconfigure-ui</artifactId>
|
|
|
- <version>2.12.2</version>
|
|
|
+ <version>${zipkin.version}</version>
|
|
|
</dependency>
|
|
|
-
|
|
|
+
|
|
|
<!-- 使用消息的方式收集数据(使用rabbitmq) -->
|
|
|
<dependency>
|
|
|
<groupId>io.zipkin.java</groupId>
|
|
|
<artifactId>zipkin-autoconfigure-collector-rabbitmq</artifactId>
|
|
|
- <version>2.12.2</version>
|
|
|
+ <version>${zipkin.version}</version>
|
|
|
</dependency>
|
|
|
-
|
|
|
+
|
|
|
<!-- 采用 elasticsearch 存储数据 -->
|
|
|
<dependency>
|
|
|
<groupId>io.zipkin.java</groupId>
|
|
@@ -98,31 +109,31 @@
|
|
|
<artifactId>swagger-spring-boot-starter</artifactId>
|
|
|
<version>1.9.0.RELEASE</version>
|
|
|
</dependency>
|
|
|
-
|
|
|
+
|
|
|
<dependency>
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
<artifactId>druid-spring-boot-starter</artifactId>
|
|
|
<version>1.1.10</version>
|
|
|
</dependency>
|
|
|
-
|
|
|
+
|
|
|
<dependency>
|
|
|
<groupId>org.mybatis.spring.boot</groupId>
|
|
|
<artifactId>mybatis-spring-boot-starter</artifactId>
|
|
|
<version>1.3.2</version>
|
|
|
</dependency>
|
|
|
-
|
|
|
+
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.social</groupId>
|
|
|
<artifactId>spring-social-security</artifactId>
|
|
|
<version>1.1.6.RELEASE</version>
|
|
|
</dependency>
|
|
|
-
|
|
|
+
|
|
|
<dependency>
|
|
|
<groupId>commons-beanutils</groupId>
|
|
|
<artifactId>commons-beanutils</artifactId>
|
|
|
<version>1.9.2</version>
|
|
|
</dependency>
|
|
|
-
|
|
|
+
|
|
|
</dependencies>
|
|
|
</dependencyManagement>
|
|
|
|
|
@@ -169,13 +180,6 @@
|
|
|
</pluginRepository>
|
|
|
</pluginRepositories>
|
|
|
|
|
|
- <properties>
|
|
|
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
- <maven.compiler.source>1.8</maven.compiler.source>
|
|
|
- <maven.compiler.target>1.8</maven.compiler.target>
|
|
|
- </properties>
|
|
|
-
|
|
|
<dependencies>
|
|
|
<!-- SpringBoot整合Web组件 -->
|
|
|
<dependency>
|
|
@@ -192,56 +196,39 @@
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
<scope>test</scope>
|
|
|
</dependency>
|
|
|
-
|
|
|
+
|
|
|
<!-- SpringBoot整合config组件 -->
|
|
|
- <!-- <dependency>
|
|
|
- <groupId>org.springframework.cloud</groupId>
|
|
|
- <artifactId>spring-cloud-starter-config</artifactId>
|
|
|
- </dependency> -->
|
|
|
+ <!-- <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-config</artifactId>
|
|
|
+ </dependency> -->
|
|
|
<!--注册中心 -->
|
|
|
- <!-- <dependency>
|
|
|
- <groupId>org.springframework.cloud</groupId>
|
|
|
- <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
|
|
|
- </dependency> -->
|
|
|
+ <!-- <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
|
|
|
+ </dependency> -->
|
|
|
<!--断路器 -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
<artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
|
|
|
</dependency>
|
|
|
-
|
|
|
+
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-security</artifactId>
|
|
|
</dependency>
|
|
|
-
|
|
|
+
|
|
|
<!--集群监控消息队列 -->
|
|
|
- <!-- <dependency>
|
|
|
- <groupId>org.springframework.cloud</groupId>
|
|
|
- <artifactId>spring-cloud-netflix-hystrix-stream</artifactId>
|
|
|
- </dependency> -->
|
|
|
+ <!-- <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-netflix-hystrix-stream</artifactId>
|
|
|
+ </dependency> -->
|
|
|
<!--日志跟踪 -->
|
|
|
- <!-- <dependency>
|
|
|
- <groupId>org.springframework.cloud</groupId>
|
|
|
- <artifactId>spring-cloud-starter-zipkin</artifactId>
|
|
|
- </dependency> -->
|
|
|
+ <!-- <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-zipkin</artifactId>
|
|
|
+ </dependency> -->
|
|
|
<!--消息总线 -->
|
|
|
- <!-- <dependency>
|
|
|
- <groupId>org.springframework.cloud</groupId>
|
|
|
- <artifactId>spring-cloud-starter-bus-amqp</artifactId>
|
|
|
- </dependency> -->
|
|
|
+ <!-- <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-bus-amqp</artifactId>
|
|
|
+ </dependency> -->
|
|
|
<!--热加载 -->
|
|
|
- <!-- <dependency>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-devtools</artifactId>
|
|
|
- <scope>runtime</scope>
|
|
|
- <optional>true</optional>
|
|
|
- </dependency> -->
|
|
|
+ <!-- <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId>
|
|
|
+ <scope>runtime</scope> <optional>true</optional> </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-test</artifactId>
|
|
|
+ <scope>test</scope> </dependency> -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
|
@@ -250,19 +237,46 @@
|
|
|
</dependencies>
|
|
|
|
|
|
<build>
|
|
|
+ <finalName>${project.name}</finalName>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
+ <filtering>true</filtering>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ <pluginManagement>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ <version>${spring-boot.version}</version>
|
|
|
+ <configuration>
|
|
|
+ <finalName>${project.build.finalName}</finalName>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>repackage</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </pluginManagement>
|
|
|
<plugins>
|
|
|
<plugin>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
- <version>2.1.4.RELEASE</version>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <goals>
|
|
|
- <goal>build-info</goal>
|
|
|
- <goal>repackage</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>3.8.0</version>
|
|
|
+ <configuration>
|
|
|
+ <target>${maven.compiler.target}</target>
|
|
|
+ <source>${maven.compiler.source}</source>
|
|
|
+ <encoding>${project.build.sourceEncoding}</encoding>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>pl.project13.maven</groupId>
|
|
|
+ <artifactId>git-commit-id-plugin</artifactId>
|
|
|
+ <version>2.2.5</version>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
@@ -276,6 +290,6 @@
|
|
|
<module>mec-common</module>
|
|
|
<module>mec-util</module>
|
|
|
<module>mec-task</module>
|
|
|
- <module>codegen</module>
|
|
|
- </modules>
|
|
|
+ <module>codegen</module>
|
|
|
+ </modules>
|
|
|
</project>
|