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