pom.xml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>gyee.job</groupId>
  7. <artifactId>powerjob</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <packaging>jar</packaging>
  10. <name>gyee-job</name>
  11. <properties>
  12. <springboot.version>3.2.2</springboot.version>
  13. <powerjob.worker.starter.version>4.3.9</powerjob.worker.starter.version>
  14. <fastjson.version>1.2.83</fastjson.version>
  15. <lombok.version>1.18.32</lombok.version>
  16. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  18. <java.version>1.8</java.version>
  19. <maven.compiler.source>1.8</maven.compiler.source>
  20. <maven.compiler.target>1.8</maven.compiler.target>
  21. <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
  22. <druid.version>1.2.21</druid.version>
  23. <mariadb.version>3.4.0</mariadb.version>
  24. <taosdata.version>3.2.11</taosdata.version>
  25. <hutool.version>5.8.27</hutool.version>
  26. <netty.version>4.1.110.Final</netty.version>
  27. <poi.version>3.17</poi.version>
  28. <freemarker.version>2.3.28</freemarker.version>
  29. <dynamic-datasource.version>4.3.0</dynamic-datasource.version>
  30. <mybatis-plus.version>3.5.5</mybatis-plus.version>
  31. <mybatis-plus-generator.version>3.5.5</mybatis-plus-generator.version>
  32. </properties>
  33. <dependencies>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-jdbc</artifactId>
  37. <version>${springboot.version}</version>
  38. </dependency>
  39. <!--mybatis-plus 代码生成器的模板引擎-->
  40. <dependency>
  41. <groupId>org.apache.velocity</groupId>
  42. <artifactId>velocity-engine-core</artifactId>
  43. <version>2.3</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.freemarker</groupId>
  47. <artifactId>freemarker</artifactId>
  48. <version>${freemarker.version}</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>com.mysql</groupId>
  52. <artifactId>mysql-connector-j</artifactId>
  53. <version>8.0.31</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.apache.poi</groupId>
  57. <artifactId>poi</artifactId>
  58. <version>${poi.version}</version>
  59. <scope>compile</scope>
  60. </dependency>
  61. <!-- powerjob -->
  62. <dependency>
  63. <groupId>tech.powerjob</groupId>
  64. <artifactId>powerjob-worker-spring-boot-starter</artifactId>
  65. <version>${powerjob.worker.starter.version}</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>tech.powerjob</groupId>
  69. <artifactId>powerjob-official-processors</artifactId>
  70. <version>${powerjob.worker.starter.version}</version>
  71. </dependency>
  72. <!-- SpringBoot -->
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-web</artifactId>
  76. <version>${springboot.version}</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.springframework.boot</groupId>
  80. <artifactId>spring-boot-starter</artifactId>
  81. <version>${springboot.version}</version>
  82. <exclusions>
  83. <exclusion>
  84. <groupId>org.springframework.boot</groupId>
  85. <artifactId>spring-boot-starter-logging</artifactId>
  86. </exclusion>
  87. </exclusions>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.springframework.boot</groupId>
  91. <artifactId>spring-boot-starter-log4j2</artifactId>
  92. <version>${springboot.version}</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-autoconfigure</artifactId>
  97. <version>${springboot.version}</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.springframework.boot</groupId>
  101. <artifactId>spring-boot-starter-test</artifactId>
  102. <version>${springboot.version}</version>
  103. <scope>test</scope>
  104. </dependency>
  105. <dependency>
  106. <groupId>tech.powerjob</groupId>
  107. <artifactId>powerjob-worker-spring-boot-starter</artifactId>
  108. <version>${powerjob.worker.starter.version}</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>com.alibaba</groupId>
  112. <artifactId>fastjson</artifactId>
  113. <version>${fastjson.version}</version>
  114. </dependency>
  115. <!-- lombok -->
  116. <dependency>
  117. <groupId>org.projectlombok</groupId>
  118. <artifactId>lombok</artifactId>
  119. <version>${lombok.version}</version>
  120. <scope>provided</scope>
  121. </dependency>
  122. <!-- 高版本 JDK 移除了 JavaEE 的包,需要手动引入
  123. <dependency>
  124. <groupId>javax.xml.bind</groupId>
  125. <artifactId>jaxb-api</artifactId>
  126. <version>2.3.1</version>
  127. </dependency>
  128. -->
  129. <dependency>
  130. <groupId>org.mariadb.jdbc</groupId>
  131. <artifactId>mariadb-java-client</artifactId>
  132. <version>${mariadb.version}</version>
  133. </dependency>
  134. <dependency>
  135. <groupId>com.taosdata.jdbc</groupId>
  136. <artifactId>taos-jdbcdriver</artifactId>
  137. <version>${taosdata.version}</version>
  138. </dependency>
  139. <dependency>
  140. <groupId>cn.hutool</groupId>
  141. <artifactId>hutool-all</artifactId>
  142. <version>${hutool.version}</version>
  143. </dependency>
  144. <dependency>
  145. <groupId>org.springframework.boot</groupId>
  146. <artifactId>spring-boot-starter-data-redis</artifactId>
  147. <version>${springboot.version}</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>com.baomidou</groupId>
  151. <artifactId>dynamic-datasource-spring-boot3-starter</artifactId>
  152. <version>${dynamic-datasource.version}</version>
  153. </dependency>
  154. <dependency>
  155. <groupId>com.alibaba</groupId>
  156. <artifactId>druid-spring-boot-3-starter</artifactId>
  157. <version>${druid.version}</version>
  158. </dependency>
  159. <dependency>
  160. <groupId>com.baomidou</groupId>
  161. <artifactId>mybatis-plus-spring-boot3-starter</artifactId>
  162. <version>${mybatis-plus.version}</version>
  163. </dependency>
  164. <dependency>
  165. <groupId>com.baomidou</groupId>
  166. <artifactId>mybatis-plus-generator</artifactId> <!-- 代码生成器,使用它解析表结构 -->
  167. <version>${mybatis-plus-generator.version}</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>io.netty</groupId>
  171. <artifactId>netty-all</artifactId>
  172. <version>${netty.version}</version>
  173. </dependency>
  174. <dependency>
  175. <groupId>junit</groupId>
  176. <artifactId>junit</artifactId>
  177. <version>4.13.1</version>
  178. <scope>test</scope>
  179. </dependency>
  180. </dependencies>
  181. <!-- SpringBoot专用的打包插件 -->
  182. <build>
  183. <plugins>
  184. <plugin>
  185. <groupId>org.springframework.boot</groupId>
  186. <artifactId>spring-boot-maven-plugin</artifactId>
  187. <version>${springboot.version}</version>
  188. <configuration>
  189. <mainClass>com.gyee.generation.GenerationMain</mainClass>
  190. </configuration>
  191. <executions>
  192. <execution>
  193. <goals>
  194. <goal>repackage</goal><!--可以把依赖的包都打包到生成的Jar包中-->
  195. </goals>
  196. </execution>
  197. </executions>
  198. </plugin>
  199. <plugin>
  200. <groupId>org.apache.maven.plugins</groupId>
  201. <artifactId>maven-deploy-plugin</artifactId>
  202. <configuration>
  203. <skip>true</skip>
  204. </configuration>
  205. </plugin>
  206. <plugin>
  207. <groupId>org.apache.maven.plugins</groupId>
  208. <artifactId>maven-compiler-plugin</artifactId>
  209. <version>${maven-compiler-plugin.version}</version>
  210. <configuration>
  211. <source>${java.version}</source>
  212. <target>${java.version}</target>
  213. <testSource>${java.version}</testSource>
  214. <testTarget>${java.version}</testTarget>
  215. </configuration>
  216. </plugin>
  217. </plugins>
  218. </build>
  219. </project>