pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. 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. <groupId>com.platomix</groupId>
  6. <artifactId>platomix-pom</artifactId>
  7. <packaging>pom</packaging>
  8. <version>1.1.2</version>
  9. <name>platomix-pom</name>
  10. <url>http://www.platomix.net/</url>
  11. <inceptionYear>2022-08-25</inceptionYear>
  12. <description>platomix 统一版本配置</description>
  13. <developers>
  14. <developer>
  15. <name>aokunsang</name>
  16. <email>807703605@qq.com</email>
  17. </developer>
  18. <developer>
  19. <name>others</name>
  20. <email>xxxxxx@qq.com</email>
  21. </developer>
  22. </developers>
  23. <properties>
  24. <platomix.tool.version>1.0.0</platomix.tool.version>
  25. <java.version>1.8</java.version>
  26. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  27. <maven.plugin.version>3.8.1</maven.plugin.version>
  28. <spring-boot.version>2.4.4</spring-boot.version>
  29. <spring-cloud.version>2020.0.5</spring-cloud.version>
  30. <swagger.version>2.10.5</swagger.version>
  31. <swagger.models.version>1.6.2</swagger.models.version>
  32. <knife4j.version>2.0.8</knife4j.version>
  33. <mybatis.plus.version>3.4.2</mybatis.plus.version>
  34. <mybatis.plus.dynamic.version>3.5.0</mybatis.plus.dynamic.version>
  35. <druid.version>1.2.8</druid.version>
  36. <mysql.connector.version>8.0.22</mysql.connector.version>
  37. <oracle.connector.version>12.2.0.1</oracle.connector.version>
  38. <clickhouse.connector.version>0.3.2</clickhouse.connector.version>
  39. <sqlserver.connector.version>8.4.1.jre8</sqlserver.connector.version>
  40. <kingbase.connector.version>8.6.0</kingbase.connector.version>
  41. <postgresql.connector.version>42.5.0</postgresql.connector.version>
  42. <dameng.connector.version>8.1.1.87</dameng.connector.version>
  43. <hutool.all.version>5.8.4</hutool.all.version>
  44. <fastjson2.version>2.0.10</fastjson2.version>
  45. <easycaptcha.version>1.6.2</easycaptcha.version>
  46. <easyexcel.version>2.2.8</easyexcel.version>
  47. <jjwt.version>0.11.2</jjwt.version>
  48. <guava.version>30.1.1-jre</guava.version>
  49. <redisson.version>3.11.6</redisson.version>
  50. <protostuff.version>1.6.0</protostuff.version>
  51. <httpcomponents.client.version>4.5.13</httpcomponents.client.version>
  52. <docker.plugin.version>0.40.3</docker.plugin.version>
  53. <docker.registry>docker.platomix.net:10000</docker.registry>
  54. <docker.namespace>platomix</docker.namespace>
  55. <uxdb.version>42.2.12</uxdb.version>
  56. </properties>
  57. <dependencies>
  58. <dependency>
  59. <groupId>org.projectlombok</groupId>
  60. <artifactId>lombok</artifactId>
  61. <scope>provided</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-starter-test</artifactId>
  66. <scope>test</scope>
  67. </dependency>
  68. </dependencies>
  69. <dependencyManagement>
  70. <dependencies>
  71. <!-- spring boot 依赖 -->
  72. <dependency>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-dependencies</artifactId>
  75. <version>${spring-boot.version}</version>
  76. <type>pom</type>
  77. <scope>import</scope>
  78. </dependency>
  79. <!-- spring cloud 依赖 -->
  80. <dependency>
  81. <groupId>org.springframework.cloud</groupId>
  82. <artifactId>spring-cloud-dependencies</artifactId>
  83. <version>${spring-cloud.version}</version>
  84. <type>pom</type>
  85. <scope>import</scope>
  86. </dependency>
  87. <!-- MybatisPlus -->
  88. <dependency>
  89. <groupId>com.baomidou</groupId>
  90. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  91. <version>${mybatis.plus.dynamic.version}</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.baomidou</groupId>
  95. <artifactId>mybatis-plus-boot-starter</artifactId>
  96. <version>${mybatis.plus.version}</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.clickhouse</groupId>
  100. <artifactId>clickhouse-jdbc</artifactId>
  101. <version>${clickhouse.connector.version}</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>mysql</groupId>
  105. <artifactId>mysql-connector-java</artifactId>
  106. <version>${mysql.connector.version}</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>com.oracle</groupId>
  110. <artifactId>ojdbc7</artifactId>
  111. <version>${oracle.connector.version}</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>com.microsoft.sqlserver</groupId>
  115. <artifactId>mssql-jdbc</artifactId>
  116. <version>${sqlserver.connector.version}</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>com.alibaba</groupId>
  120. <artifactId>druid-spring-boot-starter</artifactId>
  121. <version>${druid.version}</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.kingbase8</groupId>
  125. <artifactId>kingbase8</artifactId>
  126. <version>${kingbase.connector.version}</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>org.postgresql</groupId>
  130. <artifactId>postgresql</artifactId>
  131. <version>${postgresql.connector.version}</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>com.dameng</groupId>
  135. <artifactId>DmJdbcDriver18</artifactId>
  136. <version>${dameng.connector.version}</version>
  137. </dependency>
  138. <!-- JWT -->
  139. <dependency>
  140. <groupId>io.jsonwebtoken</groupId>
  141. <artifactId>jjwt-impl</artifactId>
  142. <version>${jjwt.version}</version>
  143. </dependency>
  144. <dependency>
  145. <groupId>io.jsonwebtoken</groupId>
  146. <artifactId>jjwt-jackson</artifactId>
  147. <version>${jjwt.version}</version>
  148. </dependency>
  149. <!--Swagger -->
  150. <dependency>
  151. <groupId>com.github.xiaoymin</groupId>
  152. <artifactId>knife4j-spring-boot-starter</artifactId>
  153. <version>${knife4j.version}</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>cn.hutool</groupId>
  157. <artifactId>hutool-all</artifactId>
  158. <version>${hutool.all.version}</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>com.alibaba</groupId>
  162. <artifactId>easyexcel</artifactId>
  163. <version>${easyexcel.version}</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>com.github.whvcse</groupId>
  167. <artifactId>easy-captcha</artifactId>
  168. <version>${easycaptcha.version}</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>com.alibaba.fastjson2</groupId>
  172. <artifactId>fastjson2</artifactId>
  173. <version>${fastjson2.version}</version>
  174. </dependency>
  175. <dependency>
  176. <groupId>com.google.guava</groupId>
  177. <artifactId>guava</artifactId>
  178. <version>${guava.version}</version>
  179. </dependency>
  180. <dependency>
  181. <groupId>org.apache.httpcomponents</groupId>
  182. <artifactId>httpclient</artifactId>
  183. <version>${httpcomponents.client.version}</version>
  184. </dependency>
  185. <!-- protostuff -->
  186. <dependency>
  187. <groupId>io.protostuff</groupId>
  188. <artifactId>protostuff-core</artifactId>
  189. <version>${protostuff.version}</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>io.protostuff</groupId>
  193. <artifactId>protostuff-runtime</artifactId>
  194. <version>${protostuff.version}</version>
  195. </dependency>
  196. <!-- redisson -->
  197. <dependency>
  198. <groupId>org.redisson</groupId>
  199. <artifactId>redisson</artifactId>
  200. <version>${redisson.version}</version>
  201. </dependency>
  202. </dependencies>
  203. </dependencyManagement>
  204. <profiles>
  205. <profile>
  206. <id>arm</id>
  207. <properties>
  208. <cpu-architecture-classifier>-aarch64</cpu-architecture-classifier>
  209. </properties>
  210. </profile>
  211. <profile>
  212. <id>amd</id>
  213. <properties>
  214. <cpu-architecture-classifier></cpu-architecture-classifier>
  215. </properties>
  216. <activation>
  217. <activeByDefault>true</activeByDefault>
  218. </activation>
  219. </profile>
  220. </profiles>
  221. <build>
  222. <finalName>${project.name}</finalName>
  223. <resources>
  224. <resource>
  225. <directory>src/main/resources</directory>
  226. </resource>
  227. <resource>
  228. <directory>src/main/resources</directory>
  229. <includes>
  230. <include>**/*.ttf</include>
  231. <include>**/*.ipdb</include>
  232. </includes>
  233. <filtering>false</filtering>
  234. </resource>
  235. <resource>
  236. <directory>src/main/java</directory>
  237. <includes>
  238. <include>**/*.xml</include>
  239. </includes>
  240. </resource>
  241. </resources>
  242. <plugins>
  243. <plugin>
  244. <groupId>org.apache.maven.plugins</groupId>
  245. <artifactId>maven-compiler-plugin</artifactId>
  246. <version>${maven.plugin.version}</version>
  247. <configuration>
  248. <source>${java.version}</source>
  249. <target>${java.version}</target>
  250. <encoding>UTF-8</encoding>
  251. <compilerArgs>
  252. <arg>-parameters</arg>
  253. </compilerArgs>
  254. </configuration>
  255. </plugin>
  256. </plugins>
  257. <pluginManagement>
  258. <plugins>
  259. <plugin>
  260. <groupId>org.springframework.boot</groupId>
  261. <artifactId>spring-boot-maven-plugin</artifactId>
  262. <version>${spring-boot.version}</version>
  263. <configuration>
  264. <finalName>${project.build.finalName}</finalName>
  265. </configuration>
  266. <executions>
  267. <execution>
  268. <goals>
  269. <goal>repackage</goal>
  270. </goals>
  271. </execution>
  272. </executions>
  273. </plugin>
  274. <!-- 打source包 -->
  275. <plugin>
  276. <groupId>org.apache.maven.plugins</groupId>
  277. <artifactId>maven-source-plugin</artifactId>
  278. <version>3.0.1</version>
  279. <configuration>
  280. <attach>true</attach>
  281. </configuration>
  282. <executions>
  283. <execution>
  284. <phase>compile</phase>
  285. <goals>
  286. <goal>jar</goal>
  287. </goals>
  288. </execution>
  289. </executions>
  290. </plugin>
  291. <!-- https://dmp.fabric8.io/ 官方文档 https://github.com/fabric8io/docker-maven-plugin
  292. 插件更新比较活跃 -->
  293. <plugin>
  294. <groupId>io.fabric8</groupId>
  295. <artifactId>docker-maven-plugin</artifactId>
  296. <version>${docker.plugin.version}</version>
  297. <configuration>
  298. <verbose>true</verbose>
  299. <images>
  300. <image>
  301. <name>${docker.registry}/${docker.namespace}/${project.build.finalName}:${project.version}${cpu-architecture-classifier}</name>
  302. <build>
  303. <!-- 每次打包2个镜像,一个latest,一个带版本号的 <tags> <tag>latest</tag> <tag>${project.version}${cpu-architecture-classifier}</tag>
  304. </tags> -->
  305. <contextDir>${project.basedir}</contextDir>
  306. <dockerFile>${project.basedir}/Dockerfile${cpu-architecture-classifier}</dockerFile>
  307. <args>
  308. <JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
  309. </args>
  310. </build>
  311. </image>
  312. </images>
  313. <!-- push使用,2种设置方式: 1.使用该配置在maven项目种配置; 2.在maven配置文件setting.xml中添加server节点。
  314. <authConfig> <username>admin</username> <password>123</password> </authConfig> -->
  315. </configuration>
  316. <!-- <executions> <execution> <id>build-push</id> <phase>package</phase>
  317. <goals> <goal>build</goal> <goal>push</goal> </goals> </execution> </executions> -->
  318. </plugin>
  319. </plugins>
  320. </pluginManagement>
  321. </build>
  322. <repositories>
  323. <repository>
  324. <id>alimaven</id>
  325. <name>aliyun maven</name>
  326. <url>https://maven.aliyun.com/repository/public/</url>
  327. <snapshots>
  328. <enabled>false</enabled>
  329. </snapshots>
  330. </repository>
  331. <repository>
  332. <id>platomix-release</id>
  333. <name>NexusReleases</name>
  334. <url>https://windata.platomix.net/nexus/repository/maven-public/</url>
  335. <snapshots>
  336. <enabled>false</enabled>
  337. </snapshots>
  338. </repository>
  339. </repositories>
  340. <pluginRepositories>
  341. <pluginRepository>
  342. <id>alimaven</id>
  343. <name>aliyun maven</name>
  344. <url>https://maven.aliyun.com/repository/public/</url>
  345. <snapshots>
  346. <enabled>false</enabled>
  347. </snapshots>
  348. </pluginRepository>
  349. </pluginRepositories>
  350. <distributionManagement>
  351. <repository>
  352. <id>platomix-release</id>
  353. <name>NexusReleases</name>
  354. <url>https://windata.platomix.net/nexus/repository/maven-releases/</url>
  355. </repository>
  356. </distributionManagement>
  357. </project>