pom.xml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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-job</artifactId>
  11. <version>1.0.0</version>
  12. <name>alien-job</name>
  13. <description>alien-job</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</artifactId>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-web</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-jdbc</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>com.alibaba</groupId>
  33. <artifactId>druid-spring-boot-starter</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>com.xuxueli</groupId>
  37. <artifactId>xxl-job-core</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.cloud</groupId>
  41. <artifactId>spring-cloud-starter-openfeign</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.projectlombok</groupId>
  45. <artifactId>lombok</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>shop.alien</groupId>
  49. <artifactId>alien-util</artifactId>
  50. <version>1.0.0</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>shop.alien</groupId>
  54. <artifactId>alien-entity</artifactId>
  55. <version>1.0.0</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>shop.alien</groupId>
  59. <artifactId>alien-config</artifactId>
  60. <version>1.0.0</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.alibaba.cloud</groupId>
  64. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  65. </dependency>
  66. <dependency>
  67. <groupId>com.alibaba.cloud</groupId>
  68. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.springframework.cloud</groupId>
  72. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.baomidou</groupId>
  76. <artifactId>mybatis-plus-boot-starter</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.github.pagehelper</groupId>
  80. <artifactId>pagehelper-spring-boot-starter</artifactId>
  81. </dependency>
  82. <!-- mybatis-plus代码生成器 Start -->
  83. <dependency>
  84. <groupId>com.baomidou</groupId>
  85. <artifactId>mybatis-plus-generator</artifactId>
  86. <exclusions>
  87. <exclusion>
  88. <artifactId>jsqlparser</artifactId>
  89. <groupId>com.github.jsqlparser</groupId>
  90. </exclusion>
  91. <exclusion>
  92. <artifactId>mybatis</artifactId>
  93. <groupId>org.mybatis</groupId>
  94. </exclusion>
  95. <exclusion>
  96. <artifactId>mybatis-spring</artifactId>
  97. <groupId>org.mybatis</groupId>
  98. </exclusion>
  99. </exclusions>
  100. </dependency>
  101. <dependency>
  102. <groupId>com.baomidou</groupId>
  103. <artifactId>mybatis-plus-annotation</artifactId>
  104. </dependency>
  105. <dependency>
  106. <groupId>com.baomidou</groupId>
  107. <artifactId>mybatis-plus-extension</artifactId>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.baomidou</groupId>
  111. <artifactId>mybatis-plus-core</artifactId>
  112. <scope>compile</scope>
  113. </dependency>
  114. <!-- mybatisPlus Freemarker 模版引擎 -->
  115. <dependency>
  116. <groupId>org.freemarker</groupId>
  117. <artifactId>freemarker</artifactId>
  118. </dependency>
  119. <!-- mybatis-plus代码生成器 End -->
  120. </dependencies>
  121. <build>
  122. <plugins>
  123. <plugin>
  124. <groupId>org.apache.maven.plugins</groupId>
  125. <artifactId>maven-dependency-plugin</artifactId>
  126. <version>3.1.2</version> <!-- 使用最新版本 -->
  127. <executions>
  128. <execution>
  129. <id>copy-dependencies</id>
  130. <phase>prepare-package</phase> <!-- 在package之前执行 -->
  131. <goals>
  132. <goal>copy-dependencies</goal>
  133. </goals>
  134. <configuration>
  135. <outputDirectory>${project.build.directory}/lib</outputDirectory> <!-- 指定输出目录 -->
  136. <includeScope>runtime</includeScope> <!-- 仅包含运行时依赖 -->
  137. </configuration>
  138. </execution>
  139. </executions>
  140. </plugin>
  141. <plugin>
  142. <groupId>org.springframework.boot</groupId>
  143. <artifactId>spring-boot-maven-plugin</artifactId>
  144. <configuration>
  145. <mainClass>shop.alien.job.AlienJobApplication</mainClass>
  146. <layout>ZIP</layout>
  147. <includes>
  148. <include>
  149. <groupId>nothing</groupId>
  150. <artifactId>nothing</artifactId>
  151. </include>
  152. </includes>
  153. </configuration>
  154. <executions>
  155. <execution>
  156. <goals>
  157. <goal>repackage</goal>
  158. </goals>
  159. </execution>
  160. </executions>
  161. </plugin>
  162. <plugin>
  163. <groupId>org.apache.maven.plugins</groupId>
  164. <artifactId>maven-compiler-plugin</artifactId>
  165. <configuration>
  166. <source>8</source>
  167. <target>8</target>
  168. </configuration>
  169. </plugin>
  170. </plugins>
  171. </build>
  172. <profiles>
  173. <profile>
  174. <id>test</id>
  175. <properties>
  176. <profiles.active>test</profiles.active>
  177. <nacos.server-addr>192.168.2.252:8848</nacos.server-addr>
  178. <nacos.namespace>0e1e2d77-56e8-422c-8317-6f71d7285e59</nacos.namespace>
  179. <nacos.username>nacos</nacos.username>
  180. <nacos.password>ngfriend198092</nacos.password>
  181. </properties>
  182. <activation>
  183. <activeByDefault>true</activeByDefault>
  184. </activation>
  185. </profile>
  186. </profiles>
  187. </project>