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