pom.xml 6.9 KB

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