pom.xml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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>shop.alien</groupId>
  7. <artifactId>alien-cloud</artifactId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <artifactId>alien-api</artifactId>
  11. <version>1.0.0</version>
  12. <name>alien-api</name>
  13. <description>alien-api</description>
  14. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  17. </properties>
  18. <dependencies>
  19. <dependency>
  20. <groupId>org.springframework.boot</groupId>
  21. <artifactId>spring-boot-starter-web</artifactId>
  22. <exclusions>
  23. <exclusion>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-tomcat</artifactId>
  26. </exclusion>
  27. </exclusions>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-starter-undertow</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.springframework.boot</groupId>
  39. <artifactId>spring-boot-starter-data-redis</artifactId>
  40. </dependency>
  41. <!-- <dependency>-->
  42. <!-- <groupId>org.springframework.boot</groupId>-->
  43. <!-- <artifactId>spring-boot-starter-amqp</artifactId>-->
  44. <!-- </dependency>-->
  45. <dependency>
  46. <groupId>org.springframework.cloud</groupId>
  47. <artifactId>spring-cloud-starter-openfeign</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>io.github.openfeign</groupId>
  51. <artifactId>feign-okhttp</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.baomidou</groupId>
  55. <artifactId>mybatis-plus-boot-starter</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.alibaba</groupId>
  59. <artifactId>druid-spring-boot-starter</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>mysql</groupId>
  63. <artifactId>mysql-connector-java</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.github.pagehelper</groupId>
  67. <artifactId>pagehelper-spring-boot-starter</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>io.springfox</groupId>
  71. <artifactId>springfox-swagger2</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>io.swagger</groupId>
  75. <artifactId>swagger-annotations</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>io.swagger</groupId>
  79. <artifactId>swagger-models</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>io.springfox</groupId>
  83. <artifactId>springfox-swagger-ui</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>com.github.xiaoymin</groupId>
  87. <artifactId>swagger-bootstrap-ui</artifactId>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.projectlombok</groupId>
  91. <artifactId>lombok</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>shop.alien</groupId>
  95. <artifactId>alien-util</artifactId>
  96. <version>1.0.0</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>shop.alien</groupId>
  100. <artifactId>alien-entity</artifactId>
  101. <version>1.0.0</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>shop.alien</groupId>
  105. <artifactId>alien-config</artifactId>
  106. <version>1.0.0</version>
  107. </dependency>
  108. <!-- <dependency>-->
  109. <!-- <groupId>cc.xiaokuihua</groupId>-->
  110. <!-- <artifactId>xiaokuihua-config</artifactId>-->
  111. <!-- <version>1.0.0</version>-->
  112. <!-- </dependency>-->
  113. <dependency>
  114. <groupId>com.alibaba.cloud</groupId>
  115. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  116. </dependency>
  117. <dependency>
  118. <groupId>com.alibaba.cloud</groupId>
  119. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  120. </dependency>
  121. </dependencies>
  122. <build>
  123. <plugins>
  124. <plugin>
  125. <groupId>org.apache.maven.plugins</groupId>
  126. <artifactId>maven-dependency-plugin</artifactId>
  127. <version>3.1.2</version> <!-- 使用最新版本 -->
  128. <executions>
  129. <execution>
  130. <id>copy-dependencies</id>
  131. <phase>prepare-package</phase> <!-- 在package之前执行 -->
  132. <goals>
  133. <goal>copy-dependencies</goal>
  134. </goals>
  135. <configuration>
  136. <outputDirectory>${project.build.directory}/lib</outputDirectory> <!-- 指定输出目录 -->
  137. <includeScope>runtime</includeScope> <!-- 仅包含运行时依赖 -->
  138. </configuration>
  139. </execution>
  140. </executions>
  141. </plugin>
  142. <plugin>
  143. <groupId>org.springframework.boot</groupId>
  144. <artifactId>spring-boot-maven-plugin</artifactId>
  145. <configuration>
  146. <mainClass>shop.alien.api.ApiApplication</mainClass>
  147. <layout>ZIP</layout>
  148. <includes>
  149. <include>
  150. <groupId>nothing</groupId>
  151. <artifactId>nothing</artifactId>
  152. </include>
  153. </includes>
  154. </configuration>
  155. <executions>
  156. <execution>
  157. <goals>
  158. <goal>repackage</goal>
  159. </goals>
  160. </execution>
  161. </executions>
  162. </plugin>
  163. <plugin>
  164. <groupId>org.apache.maven.plugins</groupId>
  165. <artifactId>maven-compiler-plugin</artifactId>
  166. <configuration>
  167. <source>8</source>
  168. <target>8</target>
  169. </configuration>
  170. </plugin>
  171. </plugins>
  172. </build>
  173. </project>