pom.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Licensed to the Apache Software Foundation (ASF) under one or more
  4. ~ contributor license agreements. See the NOTICE file distributed with
  5. ~ this work for additional information regarding copyright ownership.
  6. ~ The ASF licenses this file to You under the Apache License, Version 2.0
  7. ~ (the "License"); you may not use this file except in compliance with
  8. ~ the License. You may obtain a copy of the License at
  9. ~
  10. ~ http://www.apache.org/licenses/LICENSE-2.0
  11. ~
  12. ~ Unless required by applicable law or agreed to in writing, software
  13. ~ distributed under the License is distributed on an "AS IS" BASIS,
  14. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. ~ See the License for the specific language governing permissions and
  16. ~ limitations under the License.
  17. -->
  18. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  19. <parent>
  20. <groupId>org.apache</groupId>
  21. <artifactId>apache</artifactId>
  22. <version>18</version>
  23. </parent>
  24. <modelVersion>4.0.0</modelVersion>
  25. <groupId>org.apache.rocketmq</groupId>
  26. <artifactId>rocketmq-dashboard</artifactId>
  27. <packaging>jar</packaging>
  28. <version>1.0.1-SNAPSHOT</version>
  29. <name>rocketmq-dashboard</name>
  30. <scm>
  31. <url>git@github.com:apache/rocketmq-dashboard.git</url>
  32. <connection>scm:git:git@github.com:apache/rocketmq-dashboard.git</connection>
  33. <developerConnection>scm:git:git@github.com:apache/rocketmq-dashboard.git</developerConnection>
  34. <tag>1.0.0</tag>
  35. </scm>
  36. <mailingLists>
  37. <mailingList>
  38. <name>Development List</name>
  39. <subscribe>dev-subscribe@rocketmq.apache.org</subscribe>
  40. <unsubscribe>dev-unsubscribe@rocketmq.apache.org</unsubscribe>
  41. <post>dev@rocketmq.apache.org</post>
  42. </mailingList>
  43. <mailingList>
  44. <name>User List</name>
  45. <subscribe>users-subscribe@rocketmq.apache.org</subscribe>
  46. <unsubscribe>users-unsubscribe@rocketmq.apache.org</unsubscribe>
  47. <post>users@rocketmq.apache.org</post>
  48. </mailingList>
  49. <mailingList>
  50. <name>Commits List</name>
  51. <subscribe>commits-subscribe@rocketmq.apache.org</subscribe>
  52. <unsubscribe>commits-unsubscribe@rocketmq.apache.org</unsubscribe>
  53. <post>commits@rocketmq.apache.org</post>
  54. </mailingList>
  55. </mailingLists>
  56. <developers>
  57. <developer>
  58. <id>Apache RocketMQ</id>
  59. <name>Apache RocketMQ of ASF</name>
  60. <url>https://rocketmq.apache.org/</url>
  61. </developer>
  62. </developers>
  63. <organization>
  64. <name>Apache Software Foundation</name>
  65. <url>http://www.apache.org</url>
  66. </organization>
  67. <licenses>
  68. <license>
  69. <name>Apache License, Version 2.0</name>
  70. <url>http://www.apache.org/licenses/LICENSE-2.0</url>
  71. <distribution>repo</distribution>
  72. </license>
  73. </licenses>
  74. <properties>
  75. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  76. <maven.compiler.source>1.8</maven.compiler.source>
  77. <maven.compiler.target>1.8</maven.compiler.target>
  78. <guava.version>29.0-jre</guava.version>
  79. <commons-digester.version>2.1</commons-digester.version>
  80. <commons-lang.version>2.6</commons-lang.version>
  81. <commons-io.version>2.4</commons-io.version>
  82. <commons-cli.version>1.2</commons-cli.version>
  83. <commons-collections.version>3.2.2</commons-collections.version>
  84. <rocketmq.version>5.1.0</rocketmq.version>
  85. <surefire.version>2.19.1</surefire.version>
  86. <aspectj.version>1.9.6</aspectj.version>
  87. <lombok.version>1.18.22</lombok.version>
  88. <main.basedir>${basedir}/../..</main.basedir>
  89. <docker.image.prefix>apacherocketmq</docker.image.prefix>
  90. <spring.boot.version>2.6.0</spring.boot.version>
  91. <mockito-inline.version>3.3.3</mockito-inline.version>
  92. <jaxb-api.version>2.3.1</jaxb-api.version>
  93. <commons-pool2.version>2.4.3</commons-pool2.version>
  94. <easyexcel.version>2.2.10</easyexcel.version>
  95. <asm.version>4.2</asm.version>
  96. <junit.version>4.12</junit.version>
  97. <snakeyaml.version>1.30</snakeyaml.version>
  98. <cglib.version>2.2.2</cglib.version>
  99. <joor.version>0.9.6</joor.version>
  100. <bcpkix-jdk15on.version>1.68</bcpkix-jdk15on.version>
  101. <skipTests>true</skipTests>
  102. </properties>
  103. <dependencies>
  104. <dependency>
  105. <groupId>org.springframework.boot</groupId>
  106. <artifactId>spring-boot-starter-web</artifactId>
  107. <version>${spring.boot.version}</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.springframework.boot</groupId>
  111. <artifactId>spring-boot-starter-actuator</artifactId>
  112. <version>${spring.boot.version}</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.springframework.data</groupId>
  116. <artifactId>spring-data-commons</artifactId>
  117. <version>${spring.boot.version}</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.springframework.boot</groupId>
  121. <artifactId>spring-boot-starter-test</artifactId>
  122. <version>${spring.boot.version}</version>
  123. <scope>test</scope>
  124. <exclusions>
  125. <exclusion>
  126. <groupId>org.mockito</groupId>
  127. <artifactId>mockito-core</artifactId>
  128. </exclusion>
  129. </exclusions>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.springframework.boot</groupId>
  133. <artifactId>spring-boot-starter-validation</artifactId>
  134. <version>${spring.boot.version}</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>commons-collections</groupId>
  138. <artifactId>commons-collections</artifactId>
  139. <version>${commons-collections.version}</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.apache.rocketmq</groupId>
  143. <artifactId>rocketmq-tools</artifactId>
  144. <version>${rocketmq.version}</version>
  145. <exclusions>
  146. <exclusion>
  147. <groupId>ch.qos.logback</groupId>
  148. <artifactId>logback-classic</artifactId>
  149. </exclusion>
  150. <exclusion>
  151. <groupId>ch.qos.logback</groupId>
  152. <artifactId>logback-core</artifactId>
  153. </exclusion>
  154. </exclusions>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.apache.rocketmq</groupId>
  158. <artifactId>rocketmq-namesrv</artifactId>
  159. <version>${rocketmq.version}</version>
  160. <exclusions>
  161. <exclusion>
  162. <groupId>org.slf4j</groupId>
  163. <artifactId>slf4j-api</artifactId>
  164. </exclusion>
  165. <exclusion>
  166. <groupId>ch.qos.logback</groupId>
  167. <artifactId>logback-classic</artifactId>
  168. </exclusion>
  169. <exclusion>
  170. <groupId>ch.qos.logback</groupId>
  171. <artifactId>logback-core</artifactId>
  172. </exclusion>
  173. </exclusions>
  174. </dependency>
  175. <dependency>
  176. <groupId>org.apache.rocketmq</groupId>
  177. <artifactId>rocketmq-broker</artifactId>
  178. <version>${rocketmq.version}</version>
  179. <exclusions>
  180. <exclusion>
  181. <groupId>org.slf4j</groupId>
  182. <artifactId>slf4j-api</artifactId>
  183. </exclusion>
  184. <exclusion>
  185. <groupId>ch.qos.logback</groupId>
  186. <artifactId>logback-classic</artifactId>
  187. </exclusion>
  188. <exclusion>
  189. <groupId>ch.qos.logback</groupId>
  190. <artifactId>logback-core</artifactId>
  191. </exclusion>
  192. </exclusions>
  193. </dependency>
  194. <dependency>
  195. <groupId>com.google.guava</groupId>
  196. <artifactId>guava</artifactId>
  197. <version>${guava.version}</version>
  198. </dependency>
  199. <dependency>
  200. <groupId>org.aspectj</groupId>
  201. <artifactId>aspectjrt</artifactId>
  202. <version>${aspectj.version}</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.aspectj</groupId>
  206. <artifactId>aspectjweaver</artifactId>
  207. <version>${aspectj.version}</version>
  208. </dependency>
  209. <!-- Spring AOP + AspectJ -->
  210. <dependency>
  211. <groupId>cglib</groupId>
  212. <artifactId>cglib</artifactId>
  213. <version>${cglib.version}</version>
  214. </dependency>
  215. <dependency>
  216. <groupId>org.jooq</groupId>
  217. <artifactId>joor</artifactId>
  218. <version>${joor.version}</version>
  219. </dependency>
  220. <dependency>
  221. <groupId>org.bouncycastle</groupId>
  222. <artifactId>bcpkix-jdk15on</artifactId>
  223. <version>${bcpkix-jdk15on.version}</version>
  224. </dependency>
  225. <dependency>
  226. <groupId>javax.xml.bind</groupId>
  227. <artifactId>jaxb-api</artifactId>
  228. <version>${jaxb-api.version}</version>
  229. </dependency>
  230. <dependency>
  231. <groupId>org.projectlombok</groupId>
  232. <artifactId>lombok</artifactId>
  233. <version>${lombok.version}</version>
  234. </dependency>
  235. <dependency>
  236. <groupId>org.mockito</groupId>
  237. <artifactId>mockito-inline</artifactId>
  238. <version>${mockito-inline.version}</version>
  239. <scope>test</scope>
  240. </dependency>
  241. <dependency>
  242. <groupId>org.apache.commons</groupId>
  243. <artifactId>commons-pool2</artifactId>
  244. <version>${commons-pool2.version}</version>
  245. </dependency>
  246. <dependency>
  247. <groupId>com.alibaba</groupId>
  248. <artifactId>easyexcel</artifactId>
  249. <version>${easyexcel.version}</version>
  250. </dependency>
  251. <dependency>
  252. <groupId>org.ow2.asm</groupId>
  253. <artifactId>asm</artifactId>
  254. <version>${asm.version}</version>
  255. </dependency>
  256. <dependency>
  257. <groupId>junit</groupId>
  258. <artifactId>junit</artifactId>
  259. <version>${junit.version}</version>
  260. <scope>test</scope>
  261. </dependency>
  262. <dependency>
  263. <groupId>org.yaml</groupId>
  264. <artifactId>snakeyaml</artifactId>
  265. <version>${snakeyaml.version}</version>
  266. </dependency>
  267. </dependencies>
  268. <build>
  269. <plugins>
  270. <plugin>
  271. <artifactId>maven-compiler-plugin</artifactId>
  272. <!--<version>3.5.1</version>-->
  273. <configuration>
  274. <source>${maven.compiler.source}</source>
  275. <target>${maven.compiler.target}</target>
  276. <compilerVersion>${maven.compiler.source}</compilerVersion>
  277. <showDeprecation>true</showDeprecation>
  278. <showWarnings>true</showWarnings>
  279. <annotationProcessorPaths>
  280. <path>
  281. <groupId>org.projectlombok</groupId>
  282. <artifactId>lombok</artifactId>
  283. <version>${lombok.version}</version>
  284. </path>
  285. </annotationProcessorPaths>
  286. </configuration>
  287. </plugin>
  288. <plugin>
  289. <groupId>org.springframework.boot</groupId>
  290. <artifactId>spring-boot-maven-plugin</artifactId>
  291. <version>${spring.boot.version}</version>
  292. <executions>
  293. <execution>
  294. <goals>
  295. <goal>repackage</goal>
  296. </goals>
  297. </execution>
  298. </executions>
  299. </plugin>
  300. <!-- Use dockerfile-maven instead, https://github.com/spotify/dockerfile-maven -->
  301. <plugin>
  302. <groupId>com.spotify</groupId>
  303. <artifactId>docker-maven-plugin</artifactId>
  304. <version>0.4.11</version>
  305. <dependencies>
  306. <dependency>
  307. <groupId>javax.activation</groupId>
  308. <artifactId>javax.activation-api</artifactId>
  309. <version>1.2.0</version>
  310. <scope>compile</scope>
  311. </dependency>
  312. </dependencies>
  313. <configuration>
  314. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  315. <dockerDirectory>src/main/docker</dockerDirectory>
  316. <resources>
  317. <resource>
  318. <targetPath>/</targetPath>
  319. <directory>${project.build.directory}</directory>
  320. <include>${project.build.finalName}.jar</include>
  321. </resource>
  322. </resources>
  323. <imageTags>
  324. <imageTag>${project.version}</imageTag>
  325. <imageTag>latest</imageTag>
  326. </imageTags>
  327. </configuration>
  328. </plugin>
  329. <plugin>
  330. <groupId>org.apache.maven.plugins</groupId>
  331. <artifactId>maven-checkstyle-plugin</artifactId>
  332. <version>2.17</version>
  333. <executions>
  334. <execution>
  335. <id>validate</id>
  336. <phase>validate</phase>
  337. <configuration>
  338. <excludes>src/main/resources</excludes>
  339. <configLocation>style/rmq_checkstyle.xml</configLocation>
  340. <encoding>UTF-8</encoding>
  341. <consoleOutput>true</consoleOutput>
  342. <failsOnError>true</failsOnError>
  343. </configuration>
  344. <goals>
  345. <goal>check</goal>
  346. </goals>
  347. </execution>
  348. </executions>
  349. </plugin>
  350. <plugin>
  351. <groupId>org.codehaus.mojo</groupId>
  352. <artifactId>findbugs-maven-plugin</artifactId>
  353. <version>3.0.4</version>
  354. </plugin>
  355. <plugin>
  356. <groupId>org.jacoco</groupId>
  357. <artifactId>jacoco-maven-plugin</artifactId>
  358. <version>0.8.7</version>
  359. <executions>
  360. <execution>
  361. <id>prepare-agent</id>
  362. <goals>
  363. <goal>prepare-agent</goal>
  364. </goals>
  365. </execution>
  366. </executions>
  367. </plugin>
  368. <plugin>
  369. <groupId>org.eluder.coveralls</groupId>
  370. <artifactId>coveralls-maven-plugin</artifactId>
  371. <version>4.3.0</version>
  372. <dependencies>
  373. <dependency>
  374. <groupId>javax.xml.bind</groupId>
  375. <artifactId>jaxb-api</artifactId>
  376. <version>${jaxb-api.version}</version>
  377. </dependency>
  378. </dependencies>
  379. </plugin>
  380. <plugin>
  381. <groupId>org.apache.rat</groupId>
  382. <artifactId>apache-rat-plugin</artifactId>
  383. <version>0.12</version>
  384. <configuration>
  385. <excludes>
  386. <exclude>.gitignore</exclude>
  387. <exclude>.travis.yml</exclude>
  388. <exclude>.asf.yaml</exclude>
  389. <exclude>README.md</exclude>
  390. <exclude>.github/**</exclude>
  391. <exclude>docs/**</exclude>
  392. <exclude>src/main/resources/static/vendor/**</exclude>
  393. <exclude>src/main/resources/static/src/data/**</exclude>
  394. <exclude>frontend/node_modules/**</exclude>
  395. <exclude>frontend/build/**</exclude>
  396. <exclude>frontend/**.json</exclude>
  397. <exclude>frontend/**.lock</exclude>
  398. <exclude>frontend/public/manifest.json</exclude>
  399. <exclude>package-lock.json</exclude>
  400. </excludes>
  401. </configuration>
  402. </plugin>
  403. <plugin>
  404. <groupId>com.github.eirslett</groupId>
  405. <artifactId>frontend-maven-plugin</artifactId>
  406. <version>1.11.3</version>
  407. <configuration>
  408. <workingDirectory>frontend</workingDirectory>
  409. <installDirectory>target</installDirectory>
  410. </configuration>
  411. <executions>
  412. <execution>
  413. <id>install node and yarn</id>
  414. <goals>
  415. <goal>install-node-and-yarn</goal>
  416. </goals>
  417. <configuration>
  418. <nodeVersion>v16.2.0</nodeVersion>
  419. <yarnVersion>v1.22.10</yarnVersion>
  420. </configuration>
  421. </execution>
  422. <execution>
  423. <id>yarn install</id>
  424. <goals>
  425. <goal>yarn</goal>
  426. </goals>
  427. <configuration>
  428. <arguments>install</arguments>
  429. </configuration>
  430. </execution>
  431. <execution>
  432. <id>yarn build</id>
  433. <goals>
  434. <goal>yarn</goal>
  435. </goals>
  436. <configuration>
  437. <arguments>build</arguments>
  438. </configuration>
  439. </execution>
  440. </executions>
  441. </plugin>
  442. <plugin>
  443. <artifactId>maven-antrun-plugin</artifactId>
  444. <executions>
  445. <execution>
  446. <phase>generate-resources</phase>
  447. <configuration>
  448. <target>
  449. <copy todir="${project.build.directory}/classes/public">
  450. <fileset dir="${project.basedir}/frontend/build"/>
  451. </copy>
  452. </target>
  453. </configuration>
  454. <goals>
  455. <goal>run</goal>
  456. </goals>
  457. </execution>
  458. </executions>
  459. </plugin>
  460. </plugins>
  461. </build>
  462. </project>