pom.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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-car-query</artifactId>
  12. <version>1.0.3</version>
  13. <name>cloud-yysj-car-query</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. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-configuration-processor</artifactId>
  23. <optional>true</optional>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.springframework.cloud</groupId>
  27. <artifactId>spring-cloud-starter-kubernetes-config</artifactId>
  28. </dependency>
  29. <!--actuator-->
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-actuator</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-web</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.projectlombok</groupId>
  40. <artifactId>lombok</artifactId>
  41. <optional>true</optional>
  42. </dependency>
  43. <dependency>
  44. <groupId>io.springfox</groupId>
  45. <artifactId>springfox-swagger2</artifactId>
  46. <version>2.9.2</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>io.springfox</groupId>
  50. <artifactId>springfox-swagger-ui</artifactId>
  51. <version>2.9.2</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.github.xiaoymin</groupId>
  55. <artifactId>swagger-bootstrap-ui</artifactId>
  56. <version>1.9.6</version>
  57. </dependency>
  58. <!--elasticsearch-->
  59. <dependency>
  60. <groupId>org.elasticsearch.client</groupId>
  61. <artifactId>elasticsearch-rest-high-level-client</artifactId>
  62. <version>6.5.4</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.elasticsearch</groupId>
  66. <artifactId>elasticsearch</artifactId>
  67. <version>6.5.4</version>
  68. </dependency>
  69. <!-- fastjson -->
  70. <dependency>
  71. <groupId>com.alibaba</groupId>
  72. <artifactId>fastjson</artifactId>
  73. <version>1.2.67</version>
  74. </dependency>
  75. </dependencies>
  76. <dependencyManagement>
  77. <dependencies>
  78. <dependency>
  79. <groupId>org.springframework.cloud</groupId>
  80. <artifactId>spring-cloud-dependencies</artifactId>
  81. <version>${spring-cloud.version}</version>
  82. <type>pom</type>
  83. <scope>import</scope>
  84. </dependency>
  85. </dependencies>
  86. </dependencyManagement>
  87. <build>
  88. <plugins>
  89. <!--设置应用 Main 参数启动依赖查找的地址指向外部 lib 文件夹-->
  90. <plugin>
  91. <groupId>org.apache.maven.plugins</groupId>
  92. <artifactId>maven-jar-plugin</artifactId>
  93. <configuration>
  94. <archive>
  95. <manifest>
  96. <addClasspath>true</addClasspath>
  97. <classpathPrefix>lib/</classpathPrefix>
  98. </manifest>
  99. </archive>
  100. </configuration>
  101. </plugin>
  102. <!--设置 SpringBoot 打包插件不包含任何 Jar 依赖包-->
  103. <plugin>
  104. <groupId>org.springframework.boot</groupId>
  105. <artifactId>spring-boot-maven-plugin</artifactId>
  106. <configuration>
  107. <includes>
  108. <include>
  109. <groupId>nothing</groupId>
  110. <artifactId>nothing</artifactId>
  111. </include>
  112. </includes>
  113. </configuration>
  114. </plugin>
  115. <!--设置将 lib 拷贝到应用 Jar 外面-->
  116. <plugin>
  117. <groupId>org.apache.maven.plugins</groupId>
  118. <artifactId>maven-dependency-plugin</artifactId>
  119. <executions>
  120. <execution>
  121. <id>copy-dependencies</id>
  122. <phase>prepare-package</phase>
  123. <goals>
  124. <goal>copy-dependencies</goal>
  125. </goals>
  126. <configuration>
  127. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  128. </configuration>
  129. </execution>
  130. </executions>
  131. </plugin>
  132. </plugins>
  133. </build>
  134. </project>