pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.wechat</groupId>
  6. <!-- <artifactId>WeChatPayProject</artifactId> -->
  7. <artifactId>comtika-we-chat</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <!-- <name>WeChatPayProject</name> -->
  10. <name>comtika-we-chat</name>
  11. <!-- FIXME change it to the project's website -->
  12. <!-- <url>http://www.example.com</url> -->
  13. <properties>
  14. <docker.url>http://193.112.16.187:15732</docker.url>
  15. <docker.aliyun.registry>registry.cn-shenzhen.aliyuncs.com</docker.aliyun.registry>
  16. <docker.aliyun.name>comtika</docker.aliyun.name>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  19. <java.version>1.8</java.version>
  20. </properties>
  21. <parent>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-parent</artifactId>
  24. <version>2.1.4.RELEASE</version>
  25. <relativePath /> <!-- lookup parent from repository -->
  26. </parent>
  27. <dependencies>
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-web</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>com.ibeetl</groupId>
  34. <artifactId>beetl-framework-starter</artifactId>
  35. <version>1.2.14.RELEASE</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-starter-data-jpa</artifactId>
  40. <exclusions>
  41. <exclusion>
  42. <groupId>org.apache.tomcat</groupId>
  43. <artifactId>tomcat-jdbc</artifactId>
  44. </exclusion>
  45. </exclusions>
  46. </dependency>
  47. <!--MySQL JDBC驱动 -->
  48. <dependency>
  49. <groupId>mysql</groupId>
  50. <artifactId>mysql-connector-java</artifactId>
  51. <!-- <scope>runtime</scope> -->
  52. </dependency>
  53. <!--连接池HikariCP -->
  54. <dependency>
  55. <groupId>com.zaxxer</groupId>
  56. <artifactId>HikariCP</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.apache.commons</groupId>
  60. <artifactId>commons-pool2</artifactId>
  61. </dependency>
  62. <!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp -->
  63. <dependency>
  64. <groupId>com.squareup.okhttp3</groupId>
  65. <artifactId>okhttp</artifactId>
  66. <version>4.2.2</version>
  67. </dependency>
  68. <!-- https://mvnrepository.com/artifact/org.apache.directory.studio/org.apache.commons.codec -->
  69. <dependency>
  70. <groupId>org.apache.directory.studio</groupId>
  71. <artifactId>org.apache.commons.codec</artifactId>
  72. <version>1.8</version>
  73. </dependency>
  74. <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
  75. <dependency>
  76. <groupId>com.alibaba</groupId>
  77. <artifactId>fastjson</artifactId>
  78. <version>1.2.62</version>
  79. </dependency>
  80. <!--ftp-->
  81. <dependency>
  82. <groupId>commons-net</groupId>
  83. <artifactId>commons-net</artifactId>
  84. <version>3.3</version>
  85. </dependency>
  86. <!-- swagger2 -->
  87. <dependency>
  88. <groupId>io.springfox</groupId>
  89. <artifactId>springfox-swagger2</artifactId>
  90. <version>2.8.0</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>io.springfox</groupId>
  94. <artifactId>springfox-swagger-ui</artifactId>
  95. <version>2.8.0</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.apache.httpcomponents</groupId>
  99. <artifactId>httpclient</artifactId>
  100. <version>4.5.10</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.apache.httpcomponents</groupId>
  104. <artifactId>httpcore</artifactId>
  105. <version>4.4.10</version>
  106. </dependency>
  107. <!--lombok-->
  108. <dependency>
  109. <groupId>org.projectlombok</groupId>
  110. <artifactId>lombok</artifactId>
  111. </dependency>
  112. </dependencies>
  113. <build>
  114. <plugins>
  115. <plugin>
  116. <groupId>org.springframework.boot</groupId>
  117. <artifactId>spring-boot-maven-plugin</artifactId>
  118. </plugin>
  119. <!-- tag::plugin[] -->
  120. <plugin>
  121. <groupId>com.spotify</groupId>
  122. <artifactId>docker-maven-plugin</artifactId>
  123. <version>0.4.13</version>
  124. <configuration>
  125. <imageName>${docker.aliyun.registry}/${docker.aliyun.name}/${project.artifactId}:6.0.0</imageName>
  126. <!-- <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory> -->
  127. <!-- 如果有相同的覆盖 -->
  128. <forceTags>true</forceTags>
  129. <baseImage>java</baseImage>
  130. <entryPoint>["java","-jar","-XX:+PrintGCDetails","-XX:+PrintGCTimeStamps","-XX:+PrintGCDateStamps","-Xloggc:/protocol.log","-Xms128m","-Xmx128m","-XX:MetaspaceSize=256m","-XX:MaxMetaspaceSize=256m","/${project.build.finalName}.jar"]</entryPoint>
  131. <dockerHost>${docker.url}</dockerHost>
  132. <registryUrl>${docker.aliyun.registry}</registryUrl>
  133. <serverId>docker_actor</serverId>
  134. <pushImage>false</pushImage>
  135. <resources>
  136. <resource>
  137. <targetPath>/</targetPath>
  138. <directory>${project.build.directory}</directory>
  139. <include>${project.build.finalName}.jar</include>
  140. </resource>
  141. </resources>
  142. </configuration>
  143. </plugin>
  144. <!-- end::plugin[] -->
  145. </plugins>
  146. </build>
  147. <!-- <build>
  148. <pluginManagement>lock down plugins versions to avoid using Maven
  149. defaults (may be moved to parent pom)
  150. <plugins>
  151. <plugin>
  152. <groupId>org.springframework.boot</groupId>
  153. <artifactId>spring-boot-maven-plugin</artifactId>
  154. <executions>
  155. <execution>
  156. <goals>
  157. <goal>repackage</goal>可以把依赖的包都打包到生成的Jar包中
  158. </goals>
  159. </execution>
  160. </executions>
  161. </plugin>
  162. </plugins>
  163. </pluginManagement>
  164. </build> -->
  165. </project>