|
@@ -4,7 +4,9 @@
|
|
|
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.diagbot</groupId>
|
|
|
<artifactId>knowledgeman-service</artifactId>
|
|
|
+ <version>0.0.1-SNAPSHOT</version>
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
<name>knowledgeman-service</name>
|
|
@@ -61,6 +63,22 @@
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
</dependency>
|
|
|
+ <!--hystrix-dashboard-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!--hystrix -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- zipkin-->
|
|
|
+ <!--<dependency>-->
|
|
|
+ <!--<groupId>org.springframework.cloud</groupId>-->
|
|
|
+ <!--<artifactId>spring-cloud-starter-zipkin</artifactId>-->
|
|
|
+ <!--</dependency>-->
|
|
|
|
|
|
<!--swagger-->
|
|
|
<dependency>
|
|
@@ -83,12 +101,27 @@
|
|
|
<artifactId>spring-cloud-starter-oauth2</artifactId>
|
|
|
</dependency>
|
|
|
|
|
|
+ <!-- mq -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-amqp</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
<dependency>
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
<artifactId>lombok</artifactId>
|
|
|
<optional>true</optional>
|
|
|
</dependency>
|
|
|
|
|
|
+ <dependency>
|
|
|
+ <groupId>net.logstash.logback</groupId>
|
|
|
+ <artifactId>logstash-logback-encoder</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-bus-amqp</artifactId>
|
|
|
+ </dependency>
|
|
|
<!-- mybatis-plus begin -->
|
|
|
<dependency>
|
|
|
<groupId>com.baomidou</groupId>
|
|
@@ -114,9 +147,15 @@
|
|
|
<artifactId>mybatis-spring-boot-starter</artifactId>
|
|
|
</dependency>
|
|
|
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-stream-rabbit</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
<dependency>
|
|
|
<groupId>org.mongodb</groupId>
|
|
|
<artifactId>bson</artifactId>
|
|
|
+ <version>3.8.0</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!--redis设置-->
|
|
@@ -137,16 +176,16 @@
|
|
|
</dependency>
|
|
|
|
|
|
<!-- 文件上传相关架包 -->
|
|
|
- <dependency>
|
|
|
- <groupId>commons-fileupload</groupId>
|
|
|
- <artifactId>commons-fileupload</artifactId>
|
|
|
- <version>1.3.1</version>
|
|
|
- </dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>commons-io</groupId>
|
|
|
- <artifactId>commons-io</artifactId>
|
|
|
- <version>2.4</version>
|
|
|
- </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>commons-fileupload</groupId>
|
|
|
+ <artifactId>commons-fileupload</artifactId>
|
|
|
+ <version>1.3.1</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>commons-io</groupId>
|
|
|
+ <artifactId>commons-io</artifactId>
|
|
|
+ <version>2.4</version>
|
|
|
+ </dependency>
|
|
|
|
|
|
<!--POI-->
|
|
|
<dependency>
|
|
@@ -163,67 +202,67 @@
|
|
|
<groupId>com.squareup.okhttp3</groupId>
|
|
|
<artifactId>okhttp</artifactId>
|
|
|
</dependency>
|
|
|
-
|
|
|
+
|
|
|
</dependencies>
|
|
|
|
|
|
<build>
|
|
|
<plugins>
|
|
|
- <plugin>
|
|
|
- <artifactId>maven-dependency-plugin</artifactId>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>copy</id>
|
|
|
- <phase>package</phase>
|
|
|
- <goals>
|
|
|
- <goal>copy-dependencies</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <outputDirectory>${project.build.directory}/lib</outputDirectory>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <artifactId>maven-resources-plugin</artifactId>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>copy-resources</id>
|
|
|
- <phase>package</phase>
|
|
|
- <goals>
|
|
|
- <goal>copy-resources</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <resources>
|
|
|
- <resource>
|
|
|
- <directory>src/main/resources</directory>
|
|
|
- </resource>
|
|
|
- </resources>
|
|
|
- <outputDirectory>${project.build.directory}/resources</outputDirectory>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- <plugin>
|
|
|
- <artifactId>maven-jar-plugin</artifactId>
|
|
|
- <configuration>
|
|
|
- <excludes>
|
|
|
- <exclude>mapper</exclude>
|
|
|
- <exclude>*.**</exclude>
|
|
|
- <exclude>**/*.xml</exclude>
|
|
|
- <exclude>**/*.yml</exclude>
|
|
|
- </excludes>
|
|
|
- <archive>
|
|
|
- <manifest>
|
|
|
- <mainClass>${main-class}</mainClass>
|
|
|
- <addClasspath>true</addClasspath>
|
|
|
- <classpathPrefix>lib/</classpathPrefix>
|
|
|
- <useUniqueVersions>false</useUniqueVersions>
|
|
|
- </manifest>
|
|
|
- </archive>
|
|
|
- <outputDirectory>${project.build.directory}</outputDirectory>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
- </plugins>
|
|
|
+ <plugin>
|
|
|
+ <artifactId>maven-dependency-plugin</artifactId>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>copy</id>
|
|
|
+ <phase>package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>copy-dependencies</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <outputDirectory>${project.build.directory}/lib</outputDirectory>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <artifactId>maven-resources-plugin</artifactId>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>copy-resources</id>
|
|
|
+ <phase>package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>copy-resources</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ <outputDirectory>${project.build.directory}/resources</outputDirectory>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <artifactId>maven-jar-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <excludes>
|
|
|
+ <exclude>mapper</exclude>
|
|
|
+ <exclude>*.**</exclude>
|
|
|
+ <exclude>**/*.xml</exclude>
|
|
|
+ <exclude>**/*.yml</exclude>
|
|
|
+ </excludes>
|
|
|
+ <archive>
|
|
|
+ <manifest>
|
|
|
+ <mainClass>${main-class}</mainClass>
|
|
|
+ <addClasspath>true</addClasspath>
|
|
|
+ <classpathPrefix>lib/</classpathPrefix>
|
|
|
+ <useUniqueVersions>false</useUniqueVersions>
|
|
|
+ </manifest>
|
|
|
+ </archive>
|
|
|
+ <outputDirectory>${project.build.directory}</outputDirectory>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
</build>
|
|
|
|
|
|
</project>
|