pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <relativePath>../</relativePath>
  6. <artifactId>wildfirechat-parent</artifactId>
  7. <groupId>cn.wildfirechat</groupId>
  8. <version>1.1.8</version>
  9. </parent>
  10. <artifactId>moquette-broker</artifactId>
  11. <packaging>jar</packaging>
  12. <name>Moquette - broker</name>
  13. <properties>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. <bintray.package>io.moquette.moquette-broker</bintray.package>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>cn.wildfirechat</groupId>
  20. <artifactId>common</artifactId>
  21. <version>${project.version}</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.apache.logging.log4j</groupId>
  25. <artifactId>log4j-core</artifactId>
  26. <version>2.17.2</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.apache.logging.log4j</groupId>
  30. <artifactId>log4j-api</artifactId>
  31. <version>2.17.2</version>
  32. </dependency>
  33. <!--用于与slf4j保持桥接-->
  34. <dependency>
  35. <groupId>org.apache.logging.log4j</groupId>
  36. <artifactId>log4j-slf4j-impl</artifactId>
  37. <version>2.17.2</version>
  38. </dependency>
  39. <!-- slf4j核心包-->
  40. <dependency>
  41. <groupId>org.slf4j</groupId>
  42. <artifactId>slf4j-api</artifactId>
  43. <version>1.7.25</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.lmax</groupId>
  47. <artifactId>disruptor</artifactId>
  48. <version>3.4.1</version>
  49. </dependency>
  50. <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
  51. <dependency>
  52. <groupId>mysql</groupId>
  53. <artifactId>mysql-connector-java</artifactId>
  54. <version>8.0.28</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.googlecode.json-simple</groupId>
  58. <artifactId>json-simple</artifactId>
  59. <version>1.1.1</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>io.netty</groupId>
  63. <artifactId>netty-common</artifactId>
  64. <version>${netty.version}</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>io.netty</groupId>
  68. <artifactId>netty-buffer</artifactId>
  69. <version>${netty.version}</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>io.netty</groupId>
  73. <artifactId>netty-transport</artifactId>
  74. <version>${netty.version}</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>io.netty</groupId>
  78. <artifactId>netty-handler</artifactId>
  79. <version>${netty.version}</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.apache.httpcomponents</groupId>
  83. <artifactId>httpclient</artifactId>
  84. <version>4.5.13</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.apache.httpcomponents</groupId>
  88. <artifactId>httpcore</artifactId>
  89. <version>4.4.1</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>io.netty</groupId>
  93. <artifactId>netty-codec-http</artifactId>
  94. <version>${netty.version}</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>io.netty</groupId>
  98. <artifactId>netty-transport-native-epoll</artifactId>
  99. <version>${netty.version}</version>
  100. <classifier>linux-x86_64</classifier>
  101. <!--
  102. <classifier>${os.detected.name}-${os.detected.arch}</classifier>
  103. -->
  104. </dependency>
  105. <dependency>
  106. <groupId>commons-codec</groupId>
  107. <artifactId>commons-codec</artifactId>
  108. <version>1.13</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>com.hazelcast</groupId>
  112. <artifactId>hazelcast</artifactId>
  113. <version>3.11.5</version>
  114. </dependency>
  115. <!-- https://mvnrepository.com/artifact/com.xiaoleilu/hutool -->
  116. <dependency>
  117. <groupId>com.xiaoleilu</groupId>
  118. <artifactId>hutool</artifactId>
  119. <version>2.15.11</version>
  120. </dependency>
  121. <!-- Test dependencies -->
  122. <dependency>
  123. <groupId>junit</groupId>
  124. <artifactId>junit</artifactId>
  125. <version>4.13.1</version>
  126. <scope>test</scope>
  127. </dependency>
  128. <!-- https://mvnrepository.com/artifact/com.mchange/c3p0 -->
  129. <dependency>
  130. <groupId>com.mchange</groupId>
  131. <artifactId>c3p0</artifactId>
  132. <version>0.9.5.4</version>
  133. </dependency>
  134. <!-- needs extra dependencies: objenesis & hamcrest -->
  135. <dependency>
  136. <groupId>org.mockito</groupId>
  137. <artifactId>mockito-core</artifactId>
  138. <version>1.9.0</version>
  139. <scope>test</scope>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.fusesource.mqtt-client</groupId>
  143. <artifactId>mqtt-client</artifactId>
  144. <version>1.12</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.eclipse.paho</groupId>
  148. <artifactId>org.eclipse.paho.client.mqttv3</artifactId>
  149. <version>1.2.1</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.eclipse.jetty.websocket</groupId>
  153. <artifactId>websocket-client</artifactId>
  154. <version>9.2.0.M1</version>
  155. <scope>test</scope>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.assertj</groupId>
  159. <artifactId>assertj-core</artifactId>
  160. <!-- use 2.6.0 for Java 7 projects -->
  161. <version>2.6.0</version>
  162. <scope>test</scope>
  163. </dependency>
  164. <dependency>
  165. <groupId>com.h2database</groupId>
  166. <artifactId>h2</artifactId>
  167. <version>1.4.191</version>
  168. <scope>test</scope>
  169. </dependency>
  170. <dependency>
  171. <groupId>com.qiniu</groupId>
  172. <artifactId>qiniu-java-sdk</artifactId>
  173. <version>7.1.3</version>
  174. </dependency>
  175. <dependency>
  176. <groupId>commons-io</groupId>
  177. <artifactId>commons-io</artifactId>
  178. <version>2.7</version>
  179. </dependency>
  180. <!-- https://mvnrepository.com/artifact/com.h2database/h2 -->
  181. <dependency>
  182. <groupId>com.h2database</groupId>
  183. <artifactId>h2</artifactId>
  184. <version>1.4.197</version>
  185. <scope>runtime</scope>
  186. </dependency>
  187. <!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp -->
  188. <dependency>
  189. <groupId>com.squareup.okhttp3</groupId>
  190. <artifactId>okhttp</artifactId>
  191. <version>3.13.1</version>
  192. </dependency>
  193. <!-- https://mvnrepository.com/artifact/org.flywaydb/flyway-core -->
  194. <dependency>
  195. <groupId>org.flywaydb</groupId>
  196. <artifactId>flyway-core</artifactId>
  197. <version>5.2.4</version>
  198. </dependency>
  199. <dependency>
  200. <groupId>org.mongodb</groupId>
  201. <artifactId>mongo-java-driver</artifactId>
  202. <version>3.4.1</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.apache.tika</groupId>
  206. <artifactId>tika-core</artifactId>
  207. <version>2.4.1</version>
  208. </dependency>
  209. </dependencies>
  210. <build>
  211. <plugins>
  212. <plugin>
  213. <groupId>org.apache.maven.plugins</groupId>
  214. <artifactId>maven-surefire-plugin</artifactId>
  215. <configuration>
  216. <includes>
  217. <include>**/*Test.java</include>
  218. </includes>
  219. </configuration>
  220. </plugin>
  221. <!-- Generate the test-jar -->
  222. <plugin>
  223. <groupId>org.apache.maven.plugins</groupId>
  224. <artifactId>maven-jar-plugin</artifactId>
  225. <version>3.0.2</version>
  226. <executions>
  227. <execution>
  228. <goals>
  229. <goal>test-jar</goal>
  230. </goals>
  231. </execution>
  232. </executions>
  233. </plugin>
  234. <!-- Includes to generate OSGi headers -->
  235. <plugin>
  236. <artifactId>maven-jar-plugin</artifactId>
  237. <configuration>
  238. <archive>
  239. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  240. </archive>
  241. </configuration>
  242. <executions>
  243. <execution>
  244. <goals>
  245. <goal>test-jar</goal>
  246. </goals>
  247. </execution>
  248. </executions>
  249. </plugin>
  250. <plugin>
  251. <groupId>org.apache.felix</groupId>
  252. <artifactId>maven-bundle-plugin</artifactId>
  253. <executions>
  254. <execution>
  255. <id>bundle-manifest</id>
  256. <phase>process-classes</phase>
  257. <goals>
  258. <goal>manifest</goal>
  259. </goals>
  260. </execution>
  261. </executions>
  262. </plugin>
  263. <plugin>
  264. <groupId>pl.project13.maven</groupId>
  265. <artifactId>git-commit-id-plugin</artifactId>
  266. <version>2.1.5</version>
  267. <executions>
  268. <execution>
  269. <goals>
  270. <goal>revision</goal>
  271. </goals>
  272. </execution>
  273. </executions>
  274. <configuration>
  275. <!--日期格式;默认值:dd.MM.yyyy '@' HH:mm:ss z;-->
  276. <dateFormat>yyyyMMddHHmmss</dateFormat>
  277. <!--,构建过程中,是否打印详细信息;默认值:false;-->
  278. <verbose>true</verbose>
  279. <!-- ".git"文件路径;默认值:${project.basedir}/.git; -->
  280. <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
  281. <!--若项目打包类型为pom,是否取消构建;默认值:true;-->
  282. <skipPoms>false</skipPoms>
  283. <!--是否生成"git.properties"文件;默认值:false;-->
  284. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  285. <!--指定"git.properties"文件的存放路径(相对于${project.basedir}的一个路径);-->
  286. <generateGitPropertiesFilename>config/git.properties</generateGitPropertiesFilename>
  287. <!--".git"文件夹未找到时,构建是否失败;若设置true,则构建失败;若设置false,则跳过执行该目标;默认值:true;-->
  288. <failOnNoGitDirectory>false</failOnNoGitDirectory>
  289. <!--git描述配置,可选;由JGit提供实现;-->
  290. <gitDescribe>
  291. <!--是否生成描述属性-->
  292. <skip>false</skip>
  293. <!--提交操作未发现tag时,仅打印提交操作ID,-->
  294. <always>false</always>
  295. <!--提交操作ID显式字符长度,最大值为:40;默认值:7;
  296. 0代表特殊意义;后面有解释;
  297. -->
  298. <abbrev>7</abbrev>
  299. <!--构建触发时,代码有修改时(即"dirty state"),添加指定后缀;默认值:"";-->
  300. <dirty>-dirty</dirty>
  301. <!--always print using the "tag-commits_from_tag-g_commit_id-maybe_dirty" format, even if "on" a tag.
  302. The distance will always be 0 if you're "on" the tag.
  303. -->
  304. <forceLongFormat>false</forceLongFormat>
  305. </gitDescribe>
  306. </configuration>
  307. </plugin>
  308. </plugins>
  309. </build>
  310. </project>