pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  1. <?xml version="1.0"?>
  2. <project
  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. xmlns="http://maven.apache.org/POM/4.0.0">
  6. <modelVersion>4.0.0</modelVersion>
  7. <groupId>com.github.binarywang</groupId>
  8. <artifactId>wx-java</artifactId>
  9. <version>3.7.0</version>
  10. <packaging>pom</packaging>
  11. <name>WxJava - Weixin/Wechat Java SDK</name>
  12. <description>微信开发Java SDK</description>
  13. <url>https://github.com/Wechat-Group/WxJava</url>
  14. <licenses>
  15. <license>
  16. <name>The Apache License, Version 2.0</name>
  17. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  18. </license>
  19. </licenses>
  20. <developers>
  21. <developer>
  22. <name>Daniel Qian</name>
  23. <email>chanjarster@gmail.com</email>
  24. <url>https://github.com/chanjarster</url>
  25. </developer>
  26. <developer>
  27. <name>Binary Wang</name>
  28. <email>binarywang@gmail.com</email>
  29. <url>https://github.com/binarywang</url>
  30. </developer>
  31. <developer>
  32. <name>gaigeshen</name>
  33. <email>gaigeshen@qq.com</email>
  34. <url>https://github.com/gaigeshen</url>
  35. </developer>
  36. <developer>
  37. <name>Liu Mingbo</name>
  38. <email>liumingbo2008@gmail.com</email>
  39. <url>https://github.com/FirenzesEagle</url>
  40. </developer>
  41. <developer>
  42. <name>kakotor</name>
  43. <email>kakotor@gmail.com</email>
  44. <url>https://github.com/kakotor</url>
  45. </developer>
  46. <developer>
  47. <name>xiong</name>
  48. <email>zhaoxiong.tan@gmail.com</email>
  49. <url>https://github.com/ZhaoxiongTan</url>
  50. </developer>
  51. <developer>
  52. <name>LiuJunGuang</name>
  53. <email>aimilin@yeah.net</email>
  54. <url>https://github.com/aimilin6688</url>
  55. </developer>
  56. <developer>
  57. <name>Eric.Tsai</name>
  58. <email>xiaodong.cai.ks@gmail.com</email>
  59. <url>https://github.com/iwareserictsai</url>
  60. </developer>
  61. <developer>
  62. <name>withinthefog</name>
  63. <email>withinthefog@gmail.com</email>
  64. <url>https://github.com/withinthefog</url>
  65. </developer>
  66. <developer>
  67. <name>Keung</name>
  68. <email>dongfuqiang1988@163.com</email>
  69. <url>https://github.com/johnnytung</url>
  70. </developer>
  71. <developer>
  72. <name>Jonk</name>
  73. <email>aimilin@yeah.net</email>
  74. <url>https://github.com/aimilin6688</url>
  75. </developer>
  76. <developer>
  77. <name>ecoolper</name>
  78. <email>crskyp@gmail.com</email>
  79. <url>https://github.com/crskyp</url>
  80. </developer>
  81. <developer>
  82. <name>007</name>
  83. <email>007gzs@gmail.com</email>
  84. <url>https://github.com/007gzs</url>
  85. </developer>
  86. <developer>
  87. <name>Howard Liu</name>
  88. <email>liuxinghao1988@gmail.com</email>
  89. <url>https://github.com/howardliu-cn</url>
  90. </developer>
  91. </developers>
  92. <scm>
  93. <connection>scm:git:https://github.com/Wechat-Group/WxJava.git</connection>
  94. <developerConnection>scm:git:git@github.com:Wechat-Group/WxJava.git</developerConnection>
  95. <url>https://github.com/Wechat-Group/WxJava</url>
  96. </scm>
  97. <modules>
  98. <module>weixin-graal</module>
  99. <module>weixin-java-common</module>
  100. <module>weixin-java-cp</module>
  101. <module>weixin-java-mp</module>
  102. <module>weixin-java-pay</module>
  103. <module>weixin-java-miniapp</module>
  104. <module>weixin-java-open</module>
  105. <module>spring-boot-starters</module>
  106. <!--module>weixin-java-osgi</module-->
  107. </modules>
  108. <properties>
  109. <maven.compiler.source>1.7</maven.compiler.source>
  110. <maven.compiler.target>1.7</maven.compiler.target>
  111. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  112. <httpclient.version>4.5</httpclient.version>
  113. <jetty.version>9.4.17.v20190418</jetty.version>
  114. </properties>
  115. <dependencyManagement>
  116. <dependencies>
  117. <dependency>
  118. <groupId>com.github.binarywang</groupId>
  119. <artifactId>qrcode-utils</artifactId>
  120. <version>1.1</version>
  121. </dependency>
  122. <!-- 由于jodd-http较新的3.8版本需要jdk8,故而此处采用较低版本 -->
  123. <dependency>
  124. <groupId>org.jodd</groupId>
  125. <artifactId>jodd-http</artifactId>
  126. <version>3.7.1</version>
  127. <scope>provided</scope>
  128. </dependency>
  129. <dependency>
  130. <groupId>com.squareup.okhttp3</groupId>
  131. <artifactId>okhttp</artifactId>
  132. <version>3.7.0</version>
  133. <scope>provided</scope>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.apache.httpcomponents</groupId>
  137. <artifactId>httpclient</artifactId>
  138. <version>${httpclient.version}</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.apache.httpcomponents</groupId>
  142. <artifactId>httpmime</artifactId>
  143. <version>${httpclient.version}</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>commons-codec</groupId>
  147. <artifactId>commons-codec</artifactId>
  148. <version>1.10</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>commons-io</groupId>
  152. <artifactId>commons-io</artifactId>
  153. <version>2.5</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>org.apache.commons</groupId>
  157. <artifactId>commons-lang3</artifactId>
  158. <version>3.5</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>org.slf4j</groupId>
  162. <artifactId>slf4j-api</artifactId>
  163. <version>1.7.24</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>com.thoughtworks.xstream</groupId>
  167. <artifactId>xstream</artifactId>
  168. <version>1.4.11.1</version>
  169. </dependency>
  170. <!-- 由于guava较新的21.0版本需要jdk8,故而此处采用较低版本 -->
  171. <dependency>
  172. <groupId>com.google.guava</groupId>
  173. <artifactId>guava</artifactId>
  174. <version>20.0</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>com.google.code.gson</groupId>
  178. <artifactId>gson</artifactId>
  179. <version>2.8.0</version>
  180. </dependency>
  181. <!-- 测试所用依赖 -->
  182. <dependency>
  183. <groupId>joda-time</groupId>
  184. <artifactId>joda-time</artifactId>
  185. <version>2.9.7</version>
  186. <scope>test</scope>
  187. </dependency>
  188. <dependency>
  189. <groupId>ch.qos.logback</groupId>
  190. <artifactId>logback-classic</artifactId>
  191. <version>1.1.11</version>
  192. <scope>test</scope>
  193. </dependency>
  194. <dependency>
  195. <groupId>com.google.inject</groupId>
  196. <artifactId>guice</artifactId>
  197. <version>3.0</version>
  198. <scope>test</scope>
  199. </dependency>
  200. <dependency>
  201. <groupId>org.testng</groupId>
  202. <artifactId>testng</artifactId>
  203. <version>6.10</version>
  204. <scope>test</scope>
  205. </dependency>
  206. <dependency>
  207. <groupId>org.mockito</groupId>
  208. <artifactId>mockito-all</artifactId>
  209. <version>1.9.5</version>
  210. <scope>test</scope>
  211. </dependency>
  212. <dependency>
  213. <groupId>org.eclipse.jetty</groupId>
  214. <artifactId>jetty-server</artifactId>
  215. <version>${jetty.version}</version>
  216. <scope>test</scope>
  217. </dependency>
  218. <dependency>
  219. <groupId>org.eclipse.jetty</groupId>
  220. <artifactId>jetty-servlet</artifactId>
  221. <version>${jetty.version}</version>
  222. <scope>test</scope>
  223. </dependency>
  224. <dependency>
  225. <groupId>org.assertj</groupId>
  226. <artifactId>assertj-guava</artifactId>
  227. <version>3.0.0</version>
  228. <scope>test</scope>
  229. </dependency>
  230. <dependency>
  231. <groupId>redis.clients</groupId>
  232. <artifactId>jedis</artifactId>
  233. <version>2.9.0</version>
  234. <scope>provided</scope>
  235. </dependency>
  236. <dependency>
  237. <groupId>org.redisson</groupId>
  238. <artifactId>redisson</artifactId>
  239. <version>3.12.0</version>
  240. <scope>provided</scope>
  241. </dependency>
  242. <dependency>
  243. <groupId>org.projectlombok</groupId>
  244. <artifactId>lombok</artifactId>
  245. <version>1.18.8</version>
  246. <scope>provided</scope>
  247. </dependency>
  248. </dependencies>
  249. </dependencyManagement>
  250. <distributionManagement>
  251. <snapshotRepository>
  252. <id>ossrh</id>
  253. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  254. </snapshotRepository>
  255. <repository>
  256. <id>ossrh</id>
  257. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  258. </repository>
  259. </distributionManagement>
  260. <profiles>
  261. <profile>
  262. <id>doclint-java8-disable</id>
  263. <activation>
  264. <jdk>[1.8,)</jdk>
  265. </activation>
  266. <properties>
  267. <javadoc.opts>-Xdoclint:none</javadoc.opts>
  268. </properties>
  269. </profile>
  270. <profile>
  271. <id>release</id>
  272. <build>
  273. <plugins>
  274. <plugin>
  275. <groupId>org.apache.maven.plugins</groupId>
  276. <artifactId>maven-source-plugin</artifactId>
  277. <version>2.2.1</version>
  278. <executions>
  279. <execution>
  280. <id>attach-sources</id>
  281. <goals>
  282. <goal>jar-no-fork</goal>
  283. </goals>
  284. </execution>
  285. </executions>
  286. </plugin>
  287. <plugin>
  288. <groupId>org.apache.maven.plugins</groupId>
  289. <artifactId>maven-javadoc-plugin</artifactId>
  290. <version>2.9.1</version>
  291. <executions>
  292. <execution>
  293. <id>attach-javadocs</id>
  294. <goals>
  295. <goal>jar</goal>
  296. </goals>
  297. </execution>
  298. </executions>
  299. <configuration>
  300. <additionalparam>${javadoc.opts}</additionalparam>
  301. <charset>UTF-8</charset>
  302. <locale>zh_CN</locale>
  303. </configuration>
  304. </plugin>
  305. <plugin>
  306. <groupId>org.apache.maven.plugins</groupId>
  307. <artifactId>maven-gpg-plugin</artifactId>
  308. <version>1.6</version>
  309. <executions>
  310. <execution>
  311. <id>sign-artifacts</id>
  312. <phase>verify</phase>
  313. <goals>
  314. <goal>sign</goal>
  315. </goals>
  316. </execution>
  317. </executions>
  318. </plugin>
  319. </plugins>
  320. </build>
  321. </profile>
  322. <profile>
  323. <id>native-image</id>
  324. <activation>
  325. <activeByDefault>false</activeByDefault>
  326. </activation>
  327. </profile>
  328. </profiles>
  329. <build>
  330. <pluginManagement>
  331. <plugins>
  332. <plugin>
  333. <groupId>org.apache.maven.plugins</groupId>
  334. <artifactId>maven-surefire-plugin</artifactId>
  335. <version>2.17</version>
  336. <configuration>
  337. <skip>true</skip>
  338. </configuration>
  339. </plugin>
  340. </plugins>
  341. </pluginManagement>
  342. <plugins>
  343. <plugin>
  344. <groupId>org.sonatype.plugins</groupId>
  345. <artifactId>nexus-staging-maven-plugin</artifactId>
  346. <version>1.6.3</version>
  347. <extensions>true</extensions>
  348. <configuration>
  349. <serverId>ossrh</serverId>
  350. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  351. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  352. </configuration>
  353. </plugin>
  354. <plugin>
  355. <groupId>org.apache.maven.plugins</groupId>
  356. <artifactId>maven-release-plugin</artifactId>
  357. <version>2.5.1</version>
  358. <configuration>
  359. <autoVersionSubmodules>true</autoVersionSubmodules>
  360. <useReleaseProfile>false</useReleaseProfile>
  361. <releaseProfiles>release</releaseProfiles>
  362. <goals>deploy</goals>
  363. </configuration>
  364. </plugin>
  365. <plugin>
  366. <groupId>org.apache.maven.plugins</groupId>
  367. <artifactId>maven-checkstyle-plugin</artifactId>
  368. <version>2.17</version>
  369. <configuration>
  370. <skip>true</skip>
  371. <configLocation>quality-checks/google_checks.xml</configLocation>
  372. <includeTestSourceDirectory>true</includeTestSourceDirectory>
  373. <consoleOutput>true</consoleOutput>
  374. <failsOnError>true</failsOnError>
  375. </configuration>
  376. <executions>
  377. <execution>
  378. <phase>verify</phase>
  379. <goals>
  380. <goal>check</goal>
  381. </goals>
  382. </execution>
  383. </executions>
  384. </plugin>
  385. </plugins>
  386. </build>
  387. </project>