pom.xml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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> <parent>
  6. <groupId>com.hcloud.microserver</groupId>
  7. <artifactId>common-parent</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. </parent>
  10. <groupId>com.hywa</groupId>
  11. <artifactId>supply-chain-web</artifactId>
  12. <version>${supply.chain.web.version}</version>
  13. <name>supply-chain-web</name>
  14. <packaging>jar</packaging>
  15. <profiles>
  16. <profile>
  17. <id>dev</id>
  18. <!--默认激活当前配置-->
  19. <activation>
  20. <activeByDefault>true</activeByDefault>
  21. </activation>
  22. <properties>
  23. <profiles.active>dev</profiles.active>
  24. <!-- Docker 配置 -->
  25. <docker.dockerHost>http://172.16.90.64:22375</docker.dockerHost>
  26. <docker.serviceId>DockerHub</docker.serviceId>
  27. <docker.image.version>1.0.0</docker.image.version>
  28. </properties>
  29. </profile>
  30. <profile>
  31. <id>pro</id>
  32. <properties>
  33. <profiles.active>pro</profiles.active>
  34. <!-- Docker 配置 -->
  35. <docker.dockerHost>http://172.17.14.184:22375</docker.dockerHost>
  36. <docker.serviceId>DockerHub</docker.serviceId>
  37. <docker.image.version>1.0.0</docker.image.version>
  38. </properties>
  39. </profile>
  40. </profiles>
  41. <properties>
  42. <imageName>web_image</imageName>
  43. <swagger.version>2.6.1</swagger.version>
  44. <swagger2markup.version>1.3.3</swagger2markup.version>
  45. <asciidoctor.input.directory>${project.basedir}/src/docs/asciidoc</asciidoctor.input.directory>
  46. <swagger.output.dir>${project.build.directory}/swagger</swagger.output.dir>
  47. <swagger.input>${swagger.output.dir}/swagger.json</swagger.input>
  48. <swagger.snippetOutput.dir>${project.build.directory}/asciidoc/snippets</swagger.snippetOutput.dir>
  49. <generated.asciidoc.directory>${project.build.directory}/asciidoc/generated</generated.asciidoc.directory>
  50. <asciidoctor.html.output.directory>${project.build.directory}/asciidoc/html</asciidoctor.html.output.directory>
  51. <asciidoctor.pdf.output.directory>${project.build.directory}/asciidoc/pdf</asciidoctor.pdf.output.directory>
  52. </properties>
  53. <dependencies>
  54. <dependency>
  55. <groupId>com.hcloud.microserver</groupId>
  56. <artifactId>common-core</artifactId>
  57. <version>${common.core.version}</version>
  58. <exclusions>
  59. <exclusion>
  60. <artifactId>spring-jdbc</artifactId>
  61. <groupId>org.springframework</groupId>
  62. </exclusion>
  63. </exclusions>
  64. <!-- <exclusions>
  65. <exclusion>
  66. <artifactId>spring-boot-starter-jdbc</artifactId>
  67. <groupId>org.springframework.boot</groupId>
  68. </exclusion>
  69. </exclusions>-->
  70. </dependency>
  71. <dependency>
  72. <groupId>com.hywa</groupId>
  73. <artifactId>supply-chain-base-client</artifactId>
  74. <version>${org.managerclient.version}</version>
  75. <exclusions>
  76. <exclusion>
  77. <artifactId>spring-jdbc</artifactId>
  78. <groupId>org.springframework</groupId>
  79. </exclusion>
  80. </exclusions>
  81. </dependency>
  82. <!--订单服务-->
  83. <dependency>
  84. <groupId>com.hywa</groupId>
  85. <artifactId>supply-chain-order-client</artifactId>
  86. <version>${org.managerclient.version}</version>
  87. <exclusions>
  88. <exclusion>
  89. <artifactId>spring-jdbc</artifactId>
  90. <groupId>org.springframework</groupId>
  91. </exclusion>
  92. </exclusions>
  93. </dependency>
  94. <!--权限-->
  95. <dependency>
  96. <groupId>com.hywa</groupId>
  97. <artifactId>supply-chain-sys-client</artifactId>
  98. <version>${supply-chain-sys-client.version}</version>
  99. <exclusions>
  100. <exclusion>
  101. <artifactId>spring-jdbc</artifactId>
  102. <groupId>org.springframework</groupId>
  103. </exclusion>
  104. </exclusions>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.springframework.boot</groupId>
  108. <artifactId>spring-boot-starter-tomcat</artifactId>
  109. <!--<scope>provided</scope>-->
  110. </dependency>
  111. <dependency>
  112. <groupId>org.springframework.boot</groupId>
  113. <artifactId>spring-boot-starter-data-redis</artifactId>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.springframework.cloud</groupId>
  117. <artifactId>spring-cloud-starter-eureka</artifactId>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.springframework.boot</groupId>
  121. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.apache.shiro</groupId>
  125. <artifactId>shiro-spring</artifactId>
  126. <version>${shiro.version}</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>org.crazycake</groupId>
  130. <artifactId>shiro-redis</artifactId>
  131. <version>2.4.2.1-RELEASE</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.springframework.restdocs</groupId>
  135. <artifactId>spring-restdocs-mockmvc</artifactId>
  136. </dependency>
  137. <dependency>
  138. <groupId>io.springfox</groupId>
  139. <artifactId>springfox-staticdocs</artifactId>
  140. <version>${swagger.version}</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>io.github.robwin</groupId>
  144. <artifactId>assertj-swagger</artifactId>
  145. <version>0.2.0</version>
  146. <scope>test</scope>
  147. </dependency>
  148. <!--微信授权登录-->
  149. <dependency>
  150. <groupId>com.github.binarywang</groupId>
  151. <artifactId>weixin-java-mp</artifactId>
  152. <version>3.1.0</version>
  153. </dependency>
  154. <!--微信支付-->
  155. <dependency>
  156. <groupId>com.github.binarywang</groupId>
  157. <artifactId>weixin-java-pay</artifactId>
  158. <version>3.1.0</version>
  159. </dependency>
  160. <!--极光推送jar -->
  161. <dependency>
  162. <groupId>cn.jpush.api</groupId>
  163. <artifactId>jpush-client</artifactId>
  164. <version>3.3.8</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>net.sf.json-lib</groupId>
  168. <artifactId>json-lib</artifactId>
  169. <version>2.4</version>
  170. <classifier>jdk15</classifier>
  171. </dependency>
  172. </dependencies>
  173. <build>
  174. <plugins>
  175. <plugin>
  176. <groupId>org.springframework.boot</groupId>
  177. <artifactId>spring-boot-maven-plugin</artifactId>
  178. </plugin>
  179. <plugin>
  180. <groupId>org.apache.maven.plugins</groupId>
  181. <artifactId>maven-surefire-plugin</artifactId>
  182. <version>2.18.1</version>
  183. <configuration>
  184. <skipTests>true</skipTests>
  185. </configuration>
  186. </plugin>
  187. <plugin>
  188. <groupId>com.spotify</groupId>
  189. <artifactId>docker-maven-plugin</artifactId>
  190. <version>1.2.2</version>
  191. <configuration>
  192. <serverId>${docker.serviceId}</serverId>
  193. <dockerHost>${docker.dockerHost}</dockerHost>
  194. <imageName>docker.io/${project.artifactId}:${docker.image.version}</imageName>
  195. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  196. <resources>
  197. <resource>
  198. <targetPath>/</targetPath>
  199. <directory>${project.build.directory}</directory>
  200. <include>${project.build.finalName}.jar</include>
  201. </resource>
  202. </resources>
  203. </configuration>
  204. </plugin>
  205. </plugins>
  206. </build>
  207. </project>