pom.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. <groupId>com.github.wxpay</groupId>
  7. <artifactId>wxpay-sdk</artifactId>
  8. <version>3.0.9</version>
  9. <name>wxpay-sdk</name>
  10. <description>wxpay sdk</description>
  11. <url>https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=11_1</url>
  12. <properties>
  13. <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
  14. <project.reporting.outputEncoding>utf-8</project.reporting.outputEncoding>
  15. </properties>
  16. <dependencies>
  17. <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
  18. <dependency>
  19. <groupId>org.apache.httpcomponents</groupId>
  20. <artifactId>httpclient</artifactId>
  21. <version>4.5.3</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.slf4j</groupId>
  25. <artifactId>slf4j-api</artifactId>
  26. <version>1.7.21</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.slf4j</groupId>
  30. <artifactId>slf4j-simple</artifactId>
  31. <version>1.7.21</version>
  32. </dependency>
  33. </dependencies>
  34. <distributionManagement>
  35. <!--正式版本-->
  36. <repository>
  37. <!-- nexus服务器中用户名:在settings.xml中<server>的id-->
  38. <id>releases</id>
  39. <!-- 这个名称自己定义 -->
  40. <name>Release repository</name>
  41. <url>http://192.168.100.3:8081/repository/maven-releases/</url>
  42. </repository>
  43. <!--快照-->
  44. <snapshotRepository>
  45. <id>snapshots</id>
  46. <name>Snapshots repository</name>
  47. <url>http://192.168.100.3:8081/repository/maven-snapshots/</url>
  48. </snapshotRepository>
  49. </distributionManagement>
  50. <licenses>
  51. <license>
  52. <name>The BSD 3-Clause License</name>
  53. <url>https://opensource.org/licenses/BSD-3-Clause</url>
  54. <distribution>repo</distribution>
  55. </license>
  56. </licenses>
  57. <scm>
  58. <url></url>
  59. <connection></connection>
  60. <developerConnection></developerConnection>
  61. </scm>
  62. <developers>
  63. <developer>
  64. <name>wxpay</name>
  65. <email></email>
  66. <url>https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=11_1</url>
  67. </developer>
  68. </developers>
  69. <profiles>
  70. <profile>
  71. <id>release</id>
  72. <distributionManagement>
  73. <snapshotRepository>
  74. <id>oss</id>
  75. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  76. </snapshotRepository>
  77. <repository>
  78. <id>oss</id>
  79. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  80. </repository>
  81. </distributionManagement>
  82. <build>
  83. <plugins>
  84. <!-- Source -->
  85. <plugin>
  86. <groupId>org.apache.maven.plugins</groupId>
  87. <artifactId>maven-source-plugin</artifactId>
  88. <version>3.0.1</version>
  89. <executions>
  90. <execution>
  91. <phase>package</phase>
  92. <goals>
  93. <goal>jar-no-fork</goal>
  94. </goals>
  95. </execution>
  96. </executions>
  97. </plugin>
  98. <!-- Javadoc -->
  99. <plugin>
  100. <groupId>org.apache.maven.plugins</groupId>
  101. <artifactId>maven-javadoc-plugin</artifactId>
  102. <version>2.10.4</version>
  103. <executions>
  104. <execution>
  105. <phase>package</phase>
  106. <goals>
  107. <goal>jar</goal>
  108. </goals>
  109. </execution>
  110. </executions>
  111. </plugin>
  112. <!-- Gpg Signature -->
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-gpg-plugin</artifactId>
  116. <version>1.6</version>
  117. <executions>
  118. <execution>
  119. <id>sign-artifacts</id>
  120. <phase>verify</phase>
  121. <goals>
  122. <goal>sign</goal>
  123. </goals>
  124. </execution>
  125. </executions>
  126. </plugin>
  127. </plugins>
  128. </build>
  129. </profile>
  130. </profiles>
  131. </project>