pom.xml 5.1 KB

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