pom.xml 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714
  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. <!-- 项目基本信息 -->
  7. <groupId>com.gitee.pifeng</groupId>
  8. <artifactId>phoenix</artifactId>
  9. <version>1.2.4.RELEASE-CR7</version>
  10. <modules>
  11. <!-- 监控公共模块父工程 -->
  12. <module>phoenix-common</module>
  13. <!-- 监控UI端 -->
  14. <module>phoenix-ui</module>
  15. <!-- 监控服务端 -->
  16. <module>phoenix-server</module>
  17. <!-- 监控代理端 -->
  18. <!-- <module>phoenix-agent</module>-->
  19. <!-- 监控客户端父工程 -->
  20. <module>phoenix-client</module>
  21. </modules>
  22. <packaging>pom</packaging>
  23. <name>phoenix</name>
  24. <description>开源监控平台</description>
  25. <url>https://gitee.com/monitoring-platform/phoenix</url>
  26. <!-- 属性 -->
  27. <properties>
  28. <!-- 监控框架版本,引用项目的version -->
  29. <revision>${project.version}</revision>
  30. <!-- 项目根目录 -->
  31. <myproject.root>${basedir}</myproject.root>
  32. <!-- 根项目名称 -->
  33. <myproject.name>phoenix</myproject.name>
  34. <!-- spring-cloud版本 -->
  35. <spring-cloud.version>Greenwich.SR3</spring-cloud.version>
  36. <spring-cloud-alibaba.version>2.1.1.RELEASE</spring-cloud-alibaba.version>
  37. <!-- spring-boot-starter-parent版本 -->
  38. <spring-boot-starter-parent.version>2.3.12.RELEASE</spring-boot-starter-parent.version>
  39. <!-- spring-boot-nacos版本 -->
  40. <spring-boot-nacos.version>2.1.1.RELEASE</spring-boot-nacos.version>
  41. <!-- spring-boot-feign版本 -->
  42. <spring-boot-feign.version>2.1.3.RELEASE</spring-boot-feign.version>
  43. <!-- 解决eclipse中maven报错的问题 -->
  44. <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
  45. <!-- java版本 -->
  46. <java.version>1.8</java.version>
  47. <maven.compiler.source>${java.version}</maven.compiler.source>
  48. <maven.compiler.target>${java.version}</maven.compiler.target>
  49. <!-- 文件拷贝时的编码 -->
  50. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  51. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  52. <!-- 编译时的编码 -->
  53. <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  54. <!-- alibaba的fastjson版本 -->
  55. <fastjson.version>1.2.83</fastjson.version>
  56. <!-- guava基本工具版本 -->
  57. <guava.version>20.0</guava.version>
  58. <!-- liferay.portal工具版本 -->
  59. <com.liferay.portal.kernel.version>9.12.2</com.liferay.portal.kernel.version>
  60. <!-- joda-time时间日期版本 -->
  61. <joda-time.version>2.10.6</joda-time.version>
  62. <!-- commons工具包版本 -->
  63. <commons-io.version>2.6</commons-io.version>
  64. <commons-collections.version>3.2.2</commons-collections.version>
  65. <commons-net.version>3.8.0</commons-net.version>
  66. <!--<commons-logging.version>1.2</commons-logging.version>-->
  67. <!-- sigar版本 -->
  68. <sigar.version>1.6.4</sigar.version>
  69. <!-- oshi版本 -->
  70. <oshi-core.version>6.2.0</oshi-core.version>
  71. <!-- jna版本 -->
  72. <jna.version>5.12.0</jna.version>
  73. <!-- jna-platform版本 -->
  74. <jna-platform.version>5.12.0</jna-platform.version>
  75. <!-- Hutool工具包版本 -->
  76. <hutool-all.version>5.6.3</hutool-all.version>
  77. <!-- easypoi工具包版本 -->
  78. <easypoi-spring-boot-starter.version>4.4.0</easypoi-spring-boot-starter.version>
  79. <!-- cglib动态代理版本 -->
  80. <cglib.version>3.3.0</cglib.version>
  81. <!-- servlet-api版本 -->
  82. <servlet-api.version>2.5</servlet-api.version>
  83. <!-- knife4j文档依赖 -->
  84. <knife4j.version>3.0.3</knife4j.version>
  85. <!-- mybatis-plus-boot-starter版本 -->
  86. <mybatis-plus-boot-starter.version>3.1.2</mybatis-plus-boot-starter.version>
  87. <!-- mybatis-plus代码生成器版本 -->
  88. <mybatis-plus-generator.version>3.1.2</mybatis-plus-generator.version>
  89. <!-- velocity模板引擎版本 -->
  90. <velocity-engine-core.version>2.1</velocity-engine-core.version>
  91. <!-- bouncy castle加解密版本 -->
  92. <bcprov-jdk15on.version>1.69</bcprov-jdk15on.version>
  93. <!-- alibaba的druid数据库连接池版本 -->
  94. <druid-spring-boot-starter.version>1.2.4</druid-spring-boot-starter.version>
  95. <!-- pagehelper分页插件版本 -->
  96. <pagehelper.version>5.1.10</pagehelper.version>
  97. <!-- oracle驱动版本 -->
  98. <ojdbc6.version>11.2.0.3</ojdbc6.version>
  99. <!-- redis驱动版本 -->
  100. <jedis.version>3.7.0</jedis.version>
  101. <!-- mongodb驱动版本 -->
  102. <mongo-java-driver.version>3.12.10</mongo-java-driver.version>
  103. <!-- maven clear插件版本 -->
  104. <maven-clean-plugin.version>3.0.0</maven-clean-plugin.version>
  105. <!-- 编译插件版本 -->
  106. <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
  107. <!-- 单元测试插件版本 -->
  108. <maven-surefire-plugin.version>3.0.0-M4</maven-surefire-plugin.version>
  109. <!-- 打包插件版本 -->
  110. <maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
  111. <!-- springboot插件版本 -->
  112. <spring-boot-maven-plugin.version>2.3.1.RELEASE</spring-boot-maven-plugin.version>
  113. <!-- sonatype的staging插件版本 -->
  114. <nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
  115. <!-- 生成java doc插件版本 -->
  116. <maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
  117. <!-- 发布源码插件版本 -->
  118. <maven-source-plugin.version>3.2.1</maven-source-plugin.version>
  119. <!-- gpg签名插件版本 -->
  120. <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
  121. <!-- docker插件版本 -->
  122. <docker-maven-plugin.version>1.2.2</docker-maven-plugin.version>
  123. <netty-socketio.version>1.7.21</netty-socketio.version>
  124. <redisson.version>3.14.1</redisson.version>
  125. </properties>
  126. <!-- 依赖管理 -->
  127. <dependencyManagement>
  128. <dependencies>
  129. <dependency>
  130. <groupId>org.springframework.cloud</groupId>
  131. <artifactId>spring-cloud-dependencies</artifactId>
  132. <version>${spring-cloud.version}</version>
  133. <type>pom</type>
  134. <scope>import</scope>
  135. </dependency>
  136. <!--整合spring cloud alibaba-->
  137. <dependency>
  138. <groupId>com.alibaba.cloud</groupId>
  139. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  140. <version>${spring-cloud-alibaba.version}</version>
  141. <type>pom</type>
  142. <scope>import</scope>
  143. </dependency>
  144. <!-- spring-boot-starter-parent父项目依赖 -->
  145. <dependency>
  146. <groupId>org.springframework.boot</groupId>
  147. <artifactId>spring-boot-dependencies</artifactId>
  148. <version>${spring-boot-starter-parent.version}</version>
  149. <type>pom</type>
  150. <scope>import</scope>
  151. </dependency>
  152. <!-- nacos依赖 -->
  153. <dependency>
  154. <groupId>com.alibaba.cloud</groupId>
  155. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  156. <version>${spring-boot-nacos.version}</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>com.alibaba.cloud</groupId>
  160. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  161. <version>${spring-boot-nacos.version}</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.springframework.cloud</groupId>
  165. <artifactId>spring-cloud-starter-openfeign</artifactId>
  166. <version>${spring-boot-feign.version}</version>
  167. </dependency>
  168. <!-- 监控公共模块父项目 -->
  169. <dependency>
  170. <groupId>com.gitee.pifeng</groupId>
  171. <artifactId>phoenix-common</artifactId>
  172. <version>${revision}</version>
  173. </dependency>
  174. <!-- 监控公共模块 -->
  175. <dependency>
  176. <groupId>com.gitee.pifeng</groupId>
  177. <artifactId>phoenix-common-core</artifactId>
  178. <version>${revision}</version>
  179. </dependency>
  180. <!-- 监控WEB公共模块 -->
  181. <dependency>
  182. <groupId>com.gitee.pifeng</groupId>
  183. <artifactId>phoenix-common-web</artifactId>
  184. <version>${revision}</version>
  185. </dependency>
  186. <!-- 监控客户端父项目 -->
  187. <dependency>
  188. <groupId>com.gitee.pifeng</groupId>
  189. <artifactId>phoenix-client</artifactId>
  190. <version>${revision}</version>
  191. </dependency>
  192. <!-- 监控客户端基础模块 -->
  193. <dependency>
  194. <groupId>com.gitee.pifeng</groupId>
  195. <artifactId>phoenix-client-core</artifactId>
  196. <version>${revision}</version>
  197. </dependency>
  198. <!-- 监控客户端与springboot集成的starter -->
  199. <!-- <dependency>-->
  200. <!-- <groupId>com.gitee.pifeng</groupId>-->
  201. <!-- <artifactId>phoenix-client-spring-boot-starter</artifactId>-->
  202. <!-- <version>${revision}</version>-->
  203. <!-- </dependency>-->
  204. <!-- 监控客户端与springmvc集成的integrator -->
  205. <dependency>
  206. <groupId>com.gitee.pifeng</groupId>
  207. <artifactId>phoenix-client-spring-mvc-integrator</artifactId>
  208. <version>${revision}</version>
  209. </dependency>
  210. <!-- 监控服务端 -->
  211. <dependency>
  212. <groupId>com.gitee.pifeng</groupId>
  213. <artifactId>phoenix-server</artifactId>
  214. <version>${revision}</version>
  215. </dependency>
  216. <!-- 监控UI端 -->
  217. <dependency>
  218. <groupId>com.gitee.pifeng</groupId>
  219. <artifactId>phoenix-ui</artifactId>
  220. <version>${revision}</version>
  221. </dependency>
  222. <!-- alibaba的fastjson依赖 -->
  223. <dependency>
  224. <groupId>com.alibaba</groupId>
  225. <artifactId>fastjson</artifactId>
  226. <version>${fastjson.version}</version>
  227. </dependency>
  228. <!-- joda-time时间日期依赖 -->
  229. <dependency>
  230. <groupId>joda-time</groupId>
  231. <artifactId>joda-time</artifactId>
  232. <version>${joda-time.version}</version>
  233. </dependency>
  234. <!-- guava基本工具依赖 -->
  235. <dependency>
  236. <groupId>com.google.guava</groupId>
  237. <artifactId>guava</artifactId>
  238. <version>${guava.version}</version>
  239. </dependency>
  240. <!-- liferay.portal工具依赖 -->
  241. <dependency>
  242. <groupId>com.liferay.portal</groupId>
  243. <artifactId>com.liferay.portal.kernel</artifactId>
  244. <version>${com.liferay.portal.kernel.version}</version>
  245. </dependency>
  246. <!-- commons工具包依赖 -->
  247. <dependency>
  248. <groupId>commons-io</groupId>
  249. <artifactId>commons-io</artifactId>
  250. <version>${commons-io.version}</version>
  251. </dependency>
  252. <dependency>
  253. <groupId>commons-collections</groupId>
  254. <artifactId>commons-collections</artifactId>
  255. <version>${commons-collections.version}</version>
  256. </dependency>
  257. <dependency>
  258. <groupId>commons-net</groupId>
  259. <artifactId>commons-net</artifactId>
  260. <version>${commons-net.version}</version>
  261. </dependency>
  262. <!-- sigar依赖 -->
  263. <dependency>
  264. <groupId>org.fusesource</groupId>
  265. <artifactId>sigar</artifactId>
  266. <version>${sigar.version}</version>
  267. </dependency>
  268. <!-- oshi依赖 -->
  269. <dependency>
  270. <groupId>com.github.oshi</groupId>
  271. <artifactId>oshi-core</artifactId>
  272. <version>${oshi-core.version}</version>
  273. </dependency>
  274. <!-- jna依赖 -->
  275. <dependency>
  276. <groupId>net.java.dev.jna</groupId>
  277. <artifactId>jna</artifactId>
  278. <version>${jna.version}</version>
  279. </dependency>
  280. <!-- jna-platform依赖 -->
  281. <dependency>
  282. <groupId>net.java.dev.jna</groupId>
  283. <artifactId>jna-platform</artifactId>
  284. <version>${jna-platform.version}</version>
  285. </dependency>
  286. <!-- Hutool工具包依赖 -->
  287. <dependency>
  288. <groupId>cn.hutool</groupId>
  289. <artifactId>hutool-all</artifactId>
  290. <version>${hutool-all.version}</version>
  291. </dependency>
  292. <!-- easypoi工具包依赖 -->
  293. <dependency>
  294. <groupId>cn.afterturn</groupId>
  295. <artifactId>easypoi-spring-boot-starter</artifactId>
  296. <version>${easypoi-spring-boot-starter.version}</version>
  297. </dependency>
  298. <!-- cglib动态代理依赖 -->
  299. <dependency>
  300. <groupId>cglib</groupId>
  301. <artifactId>cglib</artifactId>
  302. <version>${cglib.version}</version>
  303. </dependency>
  304. <!-- servlet依赖 -->
  305. <dependency>
  306. <groupId>javax.servlet</groupId>
  307. <artifactId>servlet-api</artifactId>
  308. <version>${servlet-api.version}</version>
  309. <scope>provided</scope>
  310. </dependency>
  311. <!-- knife4j文档依赖 -->
  312. <dependency>
  313. <groupId>com.github.xiaoymin</groupId>
  314. <artifactId>knife4j-spring-boot-starter</artifactId>
  315. <version>${knife4j.version}</version>
  316. </dependency>
  317. <!-- mybatis-plus依赖 -->
  318. <dependency>
  319. <groupId>com.baomidou</groupId>
  320. <artifactId>mybatis-plus-boot-starter</artifactId>
  321. <version>${mybatis-plus-boot-starter.version}</version>
  322. </dependency>
  323. <!-- mybatis-plus代码生成器依赖 -->
  324. <dependency>
  325. <groupId>com.baomidou</groupId>
  326. <artifactId>mybatis-plus-generator</artifactId>
  327. <version>${mybatis-plus-generator.version}</version>
  328. </dependency>
  329. <!-- velocity模板引擎依赖 -->
  330. <dependency>
  331. <groupId>org.apache.velocity</groupId>
  332. <artifactId>velocity-engine-core</artifactId>
  333. <version>${velocity-engine-core.version}</version>
  334. </dependency>
  335. <!-- bouncy castle加解密依赖 -->
  336. <dependency>
  337. <groupId>org.bouncycastle</groupId>
  338. <artifactId>bcprov-jdk15on</artifactId>
  339. <version>${bcprov-jdk15on.version}</version>
  340. </dependency>
  341. <!-- alibaba的druid数据库连接池依赖 -->
  342. <dependency>
  343. <groupId>com.alibaba</groupId>
  344. <artifactId>druid-spring-boot-starter</artifactId>
  345. <version>${druid-spring-boot-starter.version}</version>
  346. </dependency>
  347. <!-- pagehelper分页插件依赖 -->
  348. <dependency>
  349. <groupId>com.github.pagehelper</groupId>
  350. <artifactId>pagehelper</artifactId>
  351. <version>${pagehelper.version}</version>
  352. </dependency>
  353. <!-- oracle数据库驱动 -->
  354. <dependency>
  355. <groupId>com.oracle</groupId>
  356. <artifactId>ojdbc6</artifactId>
  357. <version>${ojdbc6.version}</version>
  358. <scope>runtime</scope>
  359. </dependency>
  360. <!-- redis数据库驱动 -->
  361. <dependency>
  362. <groupId>redis.clients</groupId>
  363. <artifactId>jedis</artifactId>
  364. <version>${jedis.version}</version>
  365. </dependency>
  366. <!-- mongodb驱动 -->
  367. <dependency>
  368. <groupId>org.mongodb</groupId>
  369. <artifactId>mongo-java-driver</artifactId>
  370. <version>${mongo-java-driver.version}</version>
  371. </dependency>
  372. <!-- 客户端长链接驱动 -->
  373. <dependency>
  374. <groupId>com.corundumstudio.socketio</groupId>
  375. <artifactId>netty-socketio</artifactId>
  376. <version>${netty-socketio.version}</version>
  377. </dependency>
  378. <!-- redisson -->
  379. <dependency>
  380. <groupId>org.redisson</groupId>
  381. <artifactId>redisson-spring-boot-starter</artifactId>
  382. <version>${redisson.version}</version>
  383. </dependency>
  384. </dependencies>
  385. </dependencyManagement>
  386. <!-- 构建 -->
  387. <build>
  388. <defaultGoal>package</defaultGoal>
  389. <!-- 资源 -->
  390. <resources>
  391. <resource>
  392. <directory>src/main/java</directory>
  393. <includes>
  394. <!-- 为了解决mybatis sql 配置文件的编译问题 -->
  395. <include>**/*.xml</include>
  396. </includes>
  397. </resource>
  398. <resource>
  399. <directory>src/main/resources</directory>
  400. <includes>
  401. <!-- 如果加了上面的配置,必须加入这个配置,不然resources目录下的东西不会进编译目录 -->
  402. <include>**/*.*</include>
  403. </includes>
  404. </resource>
  405. </resources>
  406. <!-- 插件管理 -->
  407. <pluginManagement>
  408. <plugins>
  409. <!--编译插件 -->
  410. <plugin>
  411. <groupId>org.apache.maven.plugins</groupId>
  412. <artifactId>maven-compiler-plugin</artifactId>
  413. <version>${maven-compiler-plugin.version}</version>
  414. <configuration>
  415. <source>${java.version}</source>
  416. <target>${java.version}</target>
  417. <encoding>${project.build.sourceEncoding}</encoding>
  418. </configuration>
  419. </plugin>
  420. <!--单元测试插件 -->
  421. <plugin>
  422. <groupId>org.apache.maven.plugins</groupId>
  423. <artifactId>maven-surefire-plugin</artifactId>
  424. <version>${maven-surefire-plugin.version}</version>
  425. <configuration>
  426. <skipTests>true</skipTests>
  427. </configuration>
  428. </plugin>
  429. <!--打包插件 -->
  430. <plugin>
  431. <groupId>org.apache.maven.plugins</groupId>
  432. <artifactId>maven-jar-plugin</artifactId>
  433. <version>${maven-jar-plugin.version}</version>
  434. <configuration>
  435. <!-- 指定输出路径-->
  436. <outputDirectory>
  437. ${session.executionRootDirectory}/target
  438. </outputDirectory>
  439. </configuration>
  440. </plugin>
  441. <!-- springboot插件 -->
  442. <plugin>
  443. <groupId>org.springframework.boot</groupId>
  444. <artifactId>spring-boot-maven-plugin</artifactId>
  445. <version>${spring-boot-maven-plugin.version}</version>
  446. <configuration>
  447. <layout>ZIP</layout>
  448. <fork>true</fork>
  449. <!-- 这个配置非常重要,使打包好的jar包具备可执行权限 -->
  450. <executable>true</executable>
  451. <!-- 指定输出路径-->
  452. <outputDirectory>
  453. ${session.executionRootDirectory}/target
  454. </outputDirectory>
  455. <excludes>
  456. <exclude>
  457. <groupId>org.projectlombok</groupId>
  458. <artifactId>lombok</artifactId>
  459. </exclude>
  460. </excludes>
  461. </configuration>
  462. <executions>
  463. <execution>
  464. <goals>
  465. <!--可以把依赖的包都打包到生成的Jar包中 -->
  466. <goal>repackage</goal>
  467. <goal>build-info</goal>
  468. </goals>
  469. </execution>
  470. </executions>
  471. </plugin>
  472. <!-- sonatype的staging插件 -->
  473. <plugin>
  474. <groupId>org.sonatype.plugins</groupId>
  475. <artifactId>nexus-staging-maven-plugin</artifactId>
  476. <version>${nexus-staging-maven-plugin.version}</version>
  477. </plugin>
  478. <!-- docker插件 -->
  479. <!-- https://www.cnblogs.com/jpfss/p/10945324.html -->
  480. <plugin>
  481. <groupId>com.spotify</groupId>
  482. <artifactId>docker-maven-plugin</artifactId>
  483. <version>${docker-maven-plugin.version}</version>
  484. <configuration>
  485. <!-- 指定生成的镜像名,前面的那个名字你随便改,后面的引用,不能动 -->
  486. <imageName>${myproject.name}/${project.artifactId}</imageName>
  487. <!-- 指定 Dockerfile 路径 -->
  488. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  489. <!--指定docker镜像的版本号-->
  490. <imageTags>
  491. <!--使用maven项目的版本号-->
  492. <imageTag>${project.version}</imageTag>
  493. </imageTags>
  494. <resources>
  495. <resource>
  496. <targetPath>/</targetPath>
  497. <!-- jar包所在的路径 -->
  498. <!--suppress UnresolvedMavenProperty -->
  499. <directory>
  500. ${session.executionRootDirectory}/target
  501. </directory>
  502. <!-- 需要包含的jar包,这里对应的是 Dockerfile 中添加的文件名 -->
  503. <include>${project.build.finalName}.jar</include>
  504. </resource>
  505. </resources>
  506. </configuration>
  507. <!-- 将插件绑定在某个phase执行 -->
  508. <!--<executions>-->
  509. <!--<execution>-->
  510. <!--<id>build-image</id>-->
  511. <!--将插件绑定在package这个phase上。也就是说,用户只需执行mvn package,就会自动执行mvn docker:build-->
  512. <!--<phase>package</phase>-->
  513. <!--<goals>-->
  514. <!--<goal>build</goal>-->
  515. <!--</goals>-->
  516. <!--</execution>-->
  517. <!--</executions>-->
  518. </plugin>
  519. </plugins>
  520. </pluginManagement>
  521. <!-- 插件 -->
  522. <plugins>
  523. <!-- maven clean插件 -->
  524. <plugin>
  525. <groupId>org.apache.maven.plugins</groupId>
  526. <artifactId>maven-clean-plugin</artifactId>
  527. <version>${maven-clean-plugin.version}</version>
  528. <configuration>
  529. <!-- 当配置true时,只清理filesets里的文件,构建目录中得文件不被清理,默认是flase -->
  530. <excludeDefaultDirectories>false</excludeDefaultDirectories>
  531. <filesets>
  532. <fileset>
  533. <directory>${project.basedir}/liblog4phoenix</directory>
  534. </fileset>
  535. </filesets>
  536. </configuration>
  537. </plugin>
  538. <!-- 生成java doc插件 -->
  539. <!-- http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html -->
  540. <plugin>
  541. <groupId>org.apache.maven.plugins</groupId>
  542. <artifactId>maven-javadoc-plugin</artifactId>
  543. <version>${maven-javadoc-plugin.version}</version>
  544. <configuration>
  545. <additionalJOptions>
  546. <additionalJOption>-J-Xmx180m</additionalJOption>
  547. </additionalJOptions>
  548. <charset>${project.build.sourceEncoding}</charset>
  549. <encoding>${project.build.sourceEncoding}</encoding>
  550. <docencoding>${project.build.sourceEncoding}</docencoding>
  551. <destDir>target/javadoc</destDir>
  552. <show>private</show>
  553. <!-- 解析自定义注释 -->
  554. <!-- MAVEN_OPTS=-Dfile.encoding=UTF-8;JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8 -->
  555. <tags>
  556. <tag>
  557. <name>custom.date</name>
  558. <placement>a</placement>
  559. <head>时间</head>
  560. </tag>
  561. </tags>
  562. </configuration>
  563. <executions>
  564. <execution>
  565. <id>attach-javadocs</id>
  566. <phase>deploy</phase>
  567. <goals>
  568. <!-- 生成聚合的javadoc -->
  569. <goal>aggregate</goal>
  570. <goal>jar</goal>
  571. </goals>
  572. </execution>
  573. </executions>
  574. </plugin>
  575. <!-- 打包发布源码插件 -->
  576. <plugin>
  577. <groupId>org.apache.maven.plugins</groupId>
  578. <artifactId>maven-source-plugin</artifactId>
  579. <version>${maven-source-plugin.version}</version>
  580. <executions>
  581. <execution>
  582. <id>attach-sources</id>
  583. <phase>verify</phase>
  584. <goals>
  585. <goal>jar-no-fork</goal>
  586. </goals>
  587. </execution>
  588. </executions>
  589. </plugin>
  590. <!-- gpg签名插件 -->
  591. <plugin>
  592. <groupId>org.apache.maven.plugins</groupId>
  593. <artifactId>maven-gpg-plugin</artifactId>
  594. <version>${maven-gpg-plugin.version}</version>
  595. <executions>
  596. <execution>
  597. <id>sign-artifacts</id>
  598. <phase>deploy</phase>
  599. <goals>
  600. <goal>sign</goal>
  601. </goals>
  602. </execution>
  603. </executions>
  604. </plugin>
  605. <!-- sonatype的staging插件 -->
  606. <plugin>
  607. <groupId>org.sonatype.plugins</groupId>
  608. <artifactId>nexus-staging-maven-plugin</artifactId>
  609. <extensions>true</extensions>
  610. <configuration>
  611. <serverId>ossrh</serverId>
  612. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  613. <autoReleaseAfterClose>false</autoReleaseAfterClose>
  614. <autoDropAfterRelease>false</autoDropAfterRelease>
  615. </configuration>
  616. </plugin>
  617. </plugins>
  618. </build>
  619. <!-- 仓库 -->
  620. <repositories>
  621. <!-- 私有仓库 -->
  622. <repository>
  623. <id>huaweiCloud</id>
  624. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  625. <releases>
  626. <!-- 是否激活 -->
  627. <enabled>true</enabled>
  628. <!-- 更新策略,maven将比较本地(存储在仓库的maven-metadata文件中)和远端的POM时间戳, -->
  629. <!-- 配置选项可以设置:always、daily(一天一次,默认),interval:x(x为一整数,单位分钟),never -->
  630. <updatePolicy>always</updatePolicy>
  631. <!-- maven部署文件到仓库时,也会部署对应的校验和文件,你可以设置:ignore、fail或者warn用于当校验和文件不存在或者检验失败时的处理策略 -->
  632. <checksumPolicy>fail</checksumPolicy>
  633. </releases>
  634. <snapshots>
  635. <enabled>true</enabled>
  636. <updatePolicy>always</updatePolicy>
  637. <checksumPolicy>fail</checksumPolicy>
  638. </snapshots>
  639. </repository>
  640. </repositories>
  641. <!-- 仓库插件 -->
  642. <pluginRepositories>
  643. <pluginRepository>
  644. <id>huaweiCloud</id>
  645. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  646. <releases>
  647. <enabled>true</enabled>
  648. <updatePolicy>always</updatePolicy>
  649. <checksumPolicy>fail</checksumPolicy>
  650. </releases>
  651. <snapshots>
  652. <enabled>true</enabled>
  653. <updatePolicy>always</updatePolicy>
  654. <checksumPolicy>fail</checksumPolicy>
  655. </snapshots>
  656. </pluginRepository>
  657. </pluginRepositories>
  658. <!-- 发布 -->
  659. <distributionManagement>
  660. <repository>
  661. <id>ossrh</id>
  662. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
  663. </repository>
  664. <snapshotRepository>
  665. <id>ossrh</id>
  666. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  667. <!-- 发布的时候,是否为Snapshot版本分配一个包含时间戳的构建号 -->
  668. <!-- <uniqueVersion>false</uniqueVersion> -->
  669. </snapshotRepository>
  670. </distributionManagement>
  671. <!--许可证信息-->
  672. <licenses>
  673. <license>
  674. <name>GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007</name>
  675. <url>https://www.gnu.org/licenses/gpl-3.0.txt</url>
  676. <distribution>repo</distribution>
  677. </license>
  678. </licenses>
  679. <!--托管仓库信息-->
  680. <scm>
  681. <url>https://gitee.com/monitoring-platform/phoenix</url>
  682. <connection>scm:git:https://gitee.com/monitoring-platform/phoenix.git</connection>
  683. <developerConnection>scm:git:https://gitee.com/monitoring-platform/phoenix</developerConnection>
  684. </scm>
  685. <!-- 开发者 -->
  686. <developers>
  687. <developer>
  688. <name>zjay</name>
  689. <organization>monitoring-platform</organization>
  690. <email>709343767@qq.com</email>
  691. <url>https://gitee.com/pifeng</url>
  692. <roles>
  693. <role>developer</role>
  694. </roles>
  695. <timezone>+8</timezone>
  696. </developer>
  697. </developers>
  698. </project>