pom.xml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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. <parent>
  6. <artifactId>zd-modules</artifactId>
  7. <groupId>com.zd</groupId>
  8. <version>3.1.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>zd-message</artifactId>
  12. <description>
  13. 消息发送
  14. </description>
  15. <properties>
  16. <maven.compiler.source>8</maven.compiler.source>
  17. <maven.compiler.target>8</maven.compiler.target>
  18. </properties>
  19. <dependencies>
  20. <!-- SpringCloud Alibaba Nacos -->
  21. <dependency>
  22. <groupId>com.alibaba.cloud</groupId>
  23. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  24. </dependency>
  25. <!-- SpringCloud Alibaba Nacos Config -->
  26. <dependency>
  27. <groupId>com.alibaba.cloud</groupId>
  28. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  29. </dependency>
  30. <!-- SpringCloud Alibaba Nacos Config -->
  31. <dependency>
  32. <groupId>com.alibaba.nacos</groupId>
  33. <artifactId>nacos-spring-context</artifactId>
  34. <version>0.2.3-RC1</version>
  35. </dependency>
  36. <!-- SpringCloud Alibaba Sentinel -->
  37. <dependency>
  38. <groupId>com.alibaba.cloud</groupId>
  39. <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
  40. </dependency>
  41. <!-- SpringBoot Actuator -->
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-starter-actuator</artifactId>
  45. </dependency>
  46. <!-- Swagger UI -->
  47. <dependency>
  48. <groupId>io.springfox</groupId>
  49. <artifactId>springfox-swagger-ui</artifactId>
  50. <version>${swagger.fox.version}</version>
  51. </dependency>
  52. <!-- Mysql Connector -->
  53. <dependency>
  54. <groupId>mysql</groupId>
  55. <artifactId>mysql-connector-java</artifactId>
  56. </dependency>
  57. <!-- zd Common DataSource -->
  58. <dependency>
  59. <groupId>com.zd</groupId>
  60. <artifactId>zd-common-datasource</artifactId>
  61. </dependency>
  62. <!-- zd Common DataScope -->
  63. <dependency>
  64. <groupId>com.zd</groupId>
  65. <artifactId>zd-common-datascope</artifactId>
  66. </dependency>
  67. <!-- zd Common Log -->
  68. <dependency>
  69. <groupId>com.zd</groupId>
  70. <artifactId>zd-common-log</artifactId>
  71. </dependency>
  72. <!-- zd Common Swagger -->
  73. <dependency>
  74. <groupId>com.zd</groupId>
  75. <artifactId>zd-common-swagger</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-starter-test</artifactId>
  80. <scope>test</scope>
  81. <exclusions>
  82. <exclusion>
  83. <groupId>org.junit.vintage</groupId>
  84. <artifactId>junit-vintage-engine</artifactId>
  85. </exclusion>
  86. </exclusions>
  87. </dependency>
  88. <dependency>
  89. <groupId>com.zd</groupId>
  90. <artifactId>zd-common-resultdata</artifactId>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.projectlombok</groupId>
  94. <artifactId>lombok</artifactId>
  95. </dependency>
  96. <dependency>
  97. <groupId>com.google.code.gson</groupId>
  98. <artifactId>gson</artifactId>
  99. </dependency>
  100. <dependency>
  101. <groupId>connect</groupId>
  102. <artifactId>connect-lib</artifactId>
  103. <version>1.0.0</version>
  104. <scope>system</scope>
  105. <systemPath>${project.basedir}/src/main/resources/libs/connect-lib.jar</systemPath>
  106. </dependency>
  107. <dependency>
  108. <groupId>reader</groupId>
  109. <artifactId>reader-lib</artifactId>
  110. <version>1.0.0</version>
  111. <scope>system</scope>
  112. <systemPath>${project.basedir}/src/main/resources/libs/reader-lib.jar</systemPath>
  113. </dependency>
  114. </dependencies>
  115. <build>
  116. <finalName>${project.artifactId}</finalName>
  117. <plugins>
  118. <plugin>
  119. <groupId>org.springframework.boot</groupId>
  120. <artifactId>spring-boot-maven-plugin</artifactId>
  121. <configuration>
  122. <includeSystemScope>true</includeSystemScope>
  123. <fork>true</fork>
  124. </configuration>
  125. <executions>
  126. <execution>
  127. <goals>
  128. <goal>repackage</goal>
  129. </goals>
  130. </execution>
  131. </executions>
  132. </plugin>
  133. <!-- 打包时跳过test插件,不运行test测试用例 -->
  134. <plugin>
  135. <groupId>org.apache.maven.plugins</groupId>
  136. <artifactId>maven-surefire-plugin</artifactId>
  137. <version>${maven-surefire-plugin.version}</version>
  138. <configuration>
  139. <skipTests>true</skipTests>
  140. </configuration>
  141. </plugin>
  142. <!-- docker的maven插件 -->
  143. <!-- <plugin>-->
  144. <!-- <groupId>io.fabric8</groupId>-->
  145. <!-- <artifactId>docker-maven-plugin</artifactId>-->
  146. <!-- <version>${docker.maven.verion}</version>-->
  147. <!-- <executions>-->
  148. <!-- &lt;!&ndash;执行 mvn package 时 自动构建docker镜像并推送到仓库 &ndash;&gt;-->
  149. <!-- <execution>-->
  150. <!-- <id>default</id>-->
  151. <!-- <phase>package</phase>-->
  152. <!-- <goals>-->
  153. <!-- <goal>remove</goal>-->
  154. <!-- <goal>build</goal>-->
  155. <!-- <goal>push</goal>-->
  156. <!-- </goals>-->
  157. <!-- </execution>-->
  158. <!-- </executions>-->
  159. <!-- <configuration>-->
  160. <!-- &lt;!&ndash; docker主机 &ndash;&gt;-->
  161. <!-- <dockerHost>tcp://192.168.1.88:2375</dockerHost>-->
  162. <!-- <authConfig>-->
  163. <!-- &lt;!&ndash; registry服务的认证&ndash;&gt;-->
  164. <!-- <username>${docker.registry.username}</username>-->
  165. <!-- <password>${docker.registry.password}</password>-->
  166. <!-- </authConfig>-->
  167. <!-- <images>-->
  168. <!-- <image>-->
  169. <!-- &lt;!&ndash; [命名空间] / [镜像名称:版本号] &ndash;&gt;-->
  170. <!-- <name>${docker.registry}/${docker.namespace}/${project.artifactId}</name>-->
  171. <!-- &lt;!&ndash; 仓库地址 &ndash;&gt;-->
  172. <!-- <registry>${docker.registry}</registry>-->
  173. <!-- <build>-->
  174. <!-- <dockerFile>${project.basedir}/Dockerfile</dockerFile>-->
  175. <!-- <tags>-->
  176. <!-- <tag>${project.version}</tag>-->
  177. <!-- </tags>-->
  178. <!-- </build>-->
  179. <!-- </image>-->
  180. <!-- </images>-->
  181. <!-- <buildArgs>-->
  182. <!-- &lt;!&ndash; dockerfile参数,指定jar路径 &ndash;&gt;-->
  183. <!-- <JAR_FILE>${project.artifactId}.jar</JAR_FILE>-->
  184. <!-- </buildArgs>-->
  185. <!-- </configuration>-->
  186. <!-- </plugin>-->
  187. </plugins>
  188. </build>
  189. </project>