pom.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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>cloud.yysj.product.info</groupId>
  12. <artifactId>cloud-yysj-product-info</artifactId>
  13. <version>1.0.6</version>
  14. <name>cloud-yysj-product-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.springframework.cloud</groupId>
  27. <artifactId>spring-cloud-starter-openfeign</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.projectlombok</groupId>
  31. <artifactId>lombok</artifactId>
  32. <optional>true</optional>
  33. </dependency>
  34. <!-- 配置jdbc依赖 -->
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-data-jdbc</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.data</groupId>
  41. <artifactId>spring-data-commons</artifactId>
  42. <version>2.2.2.RELEASE</version>
  43. </dependency>
  44. <!-- mysql依赖 -->
  45. <dependency>
  46. <groupId>mysql</groupId>
  47. <artifactId>mysql-connector-java</artifactId>
  48. </dependency>
  49. <!-- mybatis依赖 -->
  50. <dependency>
  51. <groupId>org.mybatis.spring.boot</groupId>
  52. <artifactId>mybatis-spring-boot-starter</artifactId>
  53. <version>1.3.2</version>
  54. </dependency>
  55. <!-- swagger2-->
  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. <dependency>
  78. <groupId>org.apache.commons</groupId>
  79. <artifactId>commons-lang3</artifactId>
  80. </dependency>
  81. <!-- redis -->
  82. <dependency>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-starter-data-redis</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.apache.commons</groupId>
  88. <artifactId>commons-pool2</artifactId>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.springframework.cloud</groupId>
  92. <artifactId>spring-cloud-starter-kubernetes-config</artifactId>
  93. </dependency>
  94. <!--actuator-->
  95. <dependency>
  96. <groupId>org.springframework.boot</groupId>
  97. <artifactId>spring-boot-starter-actuator</artifactId>
  98. </dependency>
  99. </dependencies>
  100. <dependencyManagement>
  101. <dependencies>
  102. <dependency>
  103. <groupId>org.springframework.cloud</groupId>
  104. <artifactId>spring-cloud-dependencies</artifactId>
  105. <version>${spring-cloud.version}</version>
  106. <type>pom</type>
  107. <scope>import</scope>
  108. </dependency>
  109. </dependencies>
  110. </dependencyManagement>
  111. <build>
  112. <plugins>
  113. <!--设置应用 Main 参数启动依赖查找的地址指向外部 lib 文件夹-->
  114. <plugin>
  115. <groupId>org.apache.maven.plugins</groupId>
  116. <artifactId>maven-jar-plugin</artifactId>
  117. <configuration>
  118. <archive>
  119. <manifest>
  120. <addClasspath>true</addClasspath>
  121. <classpathPrefix>lib/</classpathPrefix>
  122. </manifest>
  123. </archive>
  124. </configuration>
  125. </plugin>
  126. <!--设置 SpringBoot 打包插件不包含任何 Jar 依赖包-->
  127. <plugin>
  128. <groupId>org.springframework.boot</groupId>
  129. <artifactId>spring-boot-maven-plugin</artifactId>
  130. <configuration>
  131. <includes>
  132. <include>
  133. <groupId>nothing</groupId>
  134. <artifactId>nothing</artifactId>
  135. </include>
  136. </includes>
  137. </configuration>
  138. </plugin>
  139. <!--设置将 lib 拷贝到应用 Jar 外面-->
  140. <plugin>
  141. <groupId>org.apache.maven.plugins</groupId>
  142. <artifactId>maven-dependency-plugin</artifactId>
  143. <executions>
  144. <execution>
  145. <id>copy-dependencies</id>
  146. <phase>prepare-package</phase>
  147. <goals>
  148. <goal>copy-dependencies</goal>
  149. </goals>
  150. <configuration>
  151. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  152. </configuration>
  153. </execution>
  154. </executions>
  155. </plugin>
  156. </plugins>
  157. </build>
  158. </project>