pom.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. <parent>
  7. <groupId>com.hcloud.microserver</groupId>
  8. <artifactId>common-parent</artifactId>
  9. <version>0.0.1-SNAPSHOT</version>
  10. </parent>
  11. <groupId>com.hywa</groupId>
  12. <profiles>
  13. <profile>
  14. <id>dev</id>
  15. <!--默认激活当前配置-->
  16. <activation>
  17. <activeByDefault>true</activeByDefault>
  18. </activation>
  19. <properties>
  20. <profiles.active>dev</profiles.active>
  21. <!-- Docker 配置 -->
  22. <docker.dockerHost>http://172.16.90.64:22375</docker.dockerHost>
  23. <docker.serviceId>DockerHub</docker.serviceId>
  24. <docker.image.version>1.0.0</docker.image.version>
  25. </properties>
  26. </profile>
  27. <profile>
  28. <id>pro</id>
  29. <properties>
  30. <profiles.active>pro</profiles.active>
  31. <!-- Docker 配置 -->
  32. <docker.dockerHost>http://172.17.14.184:22375</docker.dockerHost>
  33. <docker.serviceId>DockerHub</docker.serviceId>
  34. <docker.image.version>1.0.0</docker.image.version>
  35. </properties>
  36. </profile>
  37. </profiles>
  38. <artifactId>supply-chain-order-service</artifactId>
  39. <version>${supply.chain.order.service.version}</version>
  40. <name>supply-chain-order-service</name>
  41. <properties>
  42. <imageName>order_image</imageName>
  43. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  44. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  45. <java.version>1.8</java.version>
  46. <druid.version>1.1.6</druid.version>
  47. </properties>
  48. <dependencies>
  49. <!--公用父包-->
  50. <dependency>
  51. <groupId>com.hcloud.microserver</groupId>
  52. <artifactId>common-core</artifactId>
  53. <version>${common.core.version}</version>
  54. </dependency>
  55. <!--client-->
  56. <dependency>
  57. <groupId>com.hywa</groupId>
  58. <artifactId>supply-chain-order-client</artifactId>
  59. <version>${supply.chain.order.client.version}</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.hywa</groupId>
  63. <artifactId>supply-chain-base-client</artifactId>
  64. <version>${supply.chain.base.client.version}</version>
  65. </dependency>
  66. <!--mysql-->
  67. <dependency>
  68. <groupId>mysql</groupId>
  69. <artifactId>mysql-connector-java</artifactId>
  70. <scope>runtime</scope>
  71. </dependency>
  72. <!--阿里巴巴数据库连接池-->
  73. <dependency>
  74. <groupId>com.alibaba</groupId>
  75. <artifactId>druid</artifactId>
  76. <version>${druid.version}</version>
  77. </dependency>
  78. <!--redis-->
  79. <dependency>
  80. <groupId>org.springframework.boot</groupId>
  81. <artifactId>spring-boot-starter-data-redis</artifactId>
  82. </dependency>
  83. <!--数据缓存-->
  84. <dependency>
  85. <groupId>org.springframework.boot</groupId>
  86. <artifactId>spring-boot-starter-cache</artifactId>
  87. <version>1.5.18.RELEASE</version>
  88. </dependency>
  89. <!-- Ribbon依赖 负载均衡-->
  90. <dependency>
  91. <groupId>org.springframework.cloud</groupId>
  92. <artifactId>spring-cloud-starter-ribbon</artifactId>
  93. </dependency>
  94. <!--注册中心-->
  95. <dependency>
  96. <groupId>org.springframework.cloud</groupId>
  97. <artifactId>spring-cloud-starter-eureka</artifactId>
  98. </dependency>
  99. <!--消息队列-->
  100. <dependency>
  101. <groupId>org.springframework.boot</groupId>
  102. <artifactId>spring-boot-starter-amqp</artifactId>
  103. </dependency>
  104. <!--极光推送jar -->
  105. <dependency>
  106. <groupId>cn.jpush.api</groupId>
  107. <artifactId>jpush-client</artifactId>
  108. <version>3.3.8</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>net.sf.json-lib</groupId>
  112. <artifactId>json-lib</artifactId>
  113. <version>2.4</version>
  114. <classifier>jdk15</classifier>
  115. </dependency>
  116. </dependencies>
  117. <build>
  118. <plugins>
  119. <plugin>
  120. <groupId>org.springframework.boot</groupId>
  121. <artifactId>spring-boot-maven-plugin</artifactId>
  122. </plugin>
  123. <plugin>
  124. <groupId>org.apache.maven.plugins</groupId>
  125. <artifactId>maven-surefire-plugin</artifactId>
  126. <version>2.18.1</version>
  127. <configuration>
  128. <skipTests>true</skipTests>
  129. </configuration>
  130. </plugin>
  131. <plugin>
  132. <groupId>com.spotify</groupId>
  133. <artifactId>docker-maven-plugin</artifactId>
  134. <version>1.2.2</version>
  135. <configuration>
  136. <serverId>${docker.serviceId}</serverId>
  137. <dockerHost>${docker.dockerHost}</dockerHost>
  138. <imageName>docker.io/${project.artifactId}:${docker.image.version}</imageName>
  139. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  140. <resources>
  141. <resource>
  142. <targetPath>/</targetPath>
  143. <directory>${project.build.directory}</directory>
  144. <include>${project.build.finalName}.jar</include>
  145. </resource>
  146. </resources>
  147. </configuration>
  148. </plugin>
  149. </plugins>
  150. </build>
  151. </project>