pom.xml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.2.2.RELEASE</version>
  9. </parent>
  10. <groupId>info.aspirecn.cloud.yysj</groupId>
  11. <artifactId>cloud-yysj-analysis-info</artifactId>
  12. <version>1.0.0</version>
  13. <name>cloud-yysj-analysis-info</name>
  14. <description>cloud yysj platform analysis information</description>
  15. <properties>
  16. <java.version>1.8</java.version>
  17. <spring-cloud.version>Hoxton.RELEASE</spring-cloud.version>
  18. </properties>
  19. <dependencies>
  20. <!--web-->
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-web</artifactId>
  24. <exclusions>
  25. <exclusion>
  26. <groupId>org.apache.logging.log4j</groupId>
  27. <artifactId>log4j-to-slf4j</artifactId>
  28. </exclusion>
  29. <exclusion>
  30. <groupId>org.apache.logging.log4j</groupId>
  31. <artifactId>log4j-api</artifactId>
  32. </exclusion>
  33. </exclusions>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.apache.logging.log4j</groupId>
  37. <artifactId>log4j-api</artifactId>
  38. <version>2.15.0</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.apache.logging.log4j</groupId>
  42. <artifactId>log4j-to-slf4j</artifactId>
  43. <version>2.15.0</version>
  44. </dependency>
  45. <!--actuator-->
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-actuator</artifactId>
  49. </dependency>
  50. <!--springcloud-kubernetes-config-->
  51. <dependency>
  52. <groupId>org.springframework.cloud</groupId>
  53. <artifactId>spring-cloud-starter-kubernetes-config</artifactId>
  54. </dependency>
  55. <!--lombok-->
  56. <dependency>
  57. <groupId>org.projectlombok</groupId>
  58. <artifactId>lombok</artifactId>
  59. <optional>true</optional>
  60. </dependency>
  61. <!--swagger-->
  62. <dependency>
  63. <groupId>io.springfox</groupId>
  64. <artifactId>springfox-swagger2</artifactId>
  65. <version>2.9.2</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>io.springfox</groupId>
  69. <artifactId>springfox-swagger-ui</artifactId>
  70. <version>2.9.2</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.github.xiaoymin</groupId>
  74. <artifactId>knife4j-spring-boot-starter</artifactId>
  75. <version>2.0.1</version>
  76. </dependency>
  77. <!--elasticsearch-->
  78. <dependency>
  79. <groupId>org.elasticsearch.client</groupId>
  80. <artifactId>elasticsearch-rest-high-level-client</artifactId>
  81. <version>6.6.2</version>
  82. <exclusions>
  83. <exclusion>
  84. <groupId>org.apache.logging.log4j</groupId>
  85. <artifactId>log4j-api</artifactId>
  86. </exclusion>
  87. </exclusions>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.elasticsearch</groupId>
  91. <artifactId>elasticsearch</artifactId>
  92. <version>6.6.2</version>
  93. </dependency>
  94. <!--commons-->
  95. <dependency>
  96. <groupId>org.apache.commons</groupId>
  97. <artifactId>commons-lang3</artifactId>
  98. <version>3.8.1</version>
  99. </dependency>
  100. <!--mybatis plus-->
  101. <dependency>
  102. <groupId>com.baomidou</groupId>
  103. <artifactId>mybatis-plus-boot-starter</artifactId>
  104. <version>3.3.0</version>
  105. </dependency>
  106. <!--feign-->
  107. <dependency>
  108. <groupId>org.springframework.cloud</groupId>
  109. <artifactId>spring-cloud-starter-openfeign</artifactId>
  110. </dependency>
  111. <!--mysql-->
  112. <dependency>
  113. <groupId>mysql</groupId>
  114. <artifactId>mysql-connector-java</artifactId>
  115. </dependency>
  116. </dependencies>
  117. <dependencyManagement>
  118. <dependencies>
  119. <dependency>
  120. <groupId>org.springframework.cloud</groupId>
  121. <artifactId>spring-cloud-dependencies</artifactId>
  122. <version>${spring-cloud.version}</version>
  123. <type>pom</type>
  124. <scope>import</scope>
  125. </dependency>
  126. </dependencies>
  127. </dependencyManagement>
  128. <build>
  129. <plugins>
  130. <!-- &lt;!&ndash;设置应用 Main 参数启动依赖查找的地址指向外部 lib 文件夹&ndash;&gt;-->
  131. <!-- <plugin>-->
  132. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  133. <!-- <artifactId>maven-jar-plugin</artifactId>-->
  134. <!-- <configuration>-->
  135. <!-- <archive>-->
  136. <!-- <manifest>-->
  137. <!-- <addClasspath>true</addClasspath>-->
  138. <!-- <classpathPrefix>lib/</classpathPrefix>-->
  139. <!-- </manifest>-->
  140. <!-- </archive>-->
  141. <!-- </configuration>-->
  142. <!-- </plugin>-->
  143. <!-- &lt;!&ndash;设置 SpringBoot 打包插件不包含任何 Jar 依赖包&ndash;&gt;-->
  144. <!-- <plugin>-->
  145. <!-- <groupId>org.springframework.boot</groupId>-->
  146. <!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
  147. <!-- <configuration>-->
  148. <!-- <includes>-->
  149. <!-- <include>-->
  150. <!-- <groupId>nothing</groupId>-->
  151. <!-- <artifactId>nothing</artifactId>-->
  152. <!-- </include>-->
  153. <!-- </includes>-->
  154. <!-- </configuration>-->
  155. <!-- </plugin>-->
  156. <!-- &lt;!&ndash;设置将 lib 拷贝到应用 Jar 外面&ndash;&gt;-->
  157. <!-- <plugin>-->
  158. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  159. <!-- <artifactId>maven-dependency-plugin</artifactId>-->
  160. <!-- <executions>-->
  161. <!-- <execution>-->
  162. <!-- <id>copy-dependencies</id>-->
  163. <!-- <phase>prepare-package</phase>-->
  164. <!-- <goals>-->
  165. <!-- <goal>copy-dependencies</goal>-->
  166. <!-- </goals>-->
  167. <!-- <configuration>-->
  168. <!-- <outputDirectory>${project.build.directory}/lib</outputDirectory>-->
  169. <!-- </configuration>-->
  170. <!-- </execution>-->
  171. <!-- </executions>-->
  172. <!-- </plugin>-->
  173. <plugin>
  174. <groupId>org.springframework.boot</groupId>
  175. <artifactId>spring-boot-maven-plugin</artifactId>
  176. </plugin>
  177. <plugin>
  178. <groupId>org.apache.maven.plugins</groupId>
  179. <artifactId>maven-jar-plugin</artifactId>
  180. </plugin>
  181. <plugin>
  182. <groupId>org.apache.maven.plugins</groupId>
  183. <artifactId>maven-dependency-plugin</artifactId>
  184. </plugin>
  185. <plugin>
  186. <groupId>org.apache.maven.plugins</groupId>
  187. <artifactId>maven-resources-plugin</artifactId>
  188. <executions>
  189. <execution>
  190. <id>default-resources</id>
  191. <phase>validate</phase>
  192. <goals>
  193. <goal>copy-resources</goal>
  194. </goals>
  195. <configuration>
  196. <outputDirectory>target/classes</outputDirectory>
  197. <useDefaultDelimiters>false</useDefaultDelimiters>
  198. <delimiters>
  199. <delimiter>@</delimiter>
  200. </delimiters>
  201. <resources>
  202. <resource>
  203. <directory>src/main/resources</directory>
  204. <filtering>true</filtering>
  205. <includes>
  206. <include>**</include>
  207. </includes>
  208. </resource>
  209. </resources>
  210. </configuration>
  211. </execution>
  212. </executions>
  213. </plugin>
  214. </plugins>
  215. </build>
  216. </project>