pom.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <groupId>com.zd</groupId>
  7. <artifactId>zd-modules</artifactId>
  8. <version>3.1.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>zd-airbottle</artifactId>
  12. <description>
  13. zd-airbottle系统模块
  14. </description>
  15. <dependencies>
  16. <!-- SpringCloud Alibaba Nacos -->
  17. <dependency>
  18. <groupId>com.alibaba.cloud</groupId>
  19. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  20. </dependency>
  21. <!-- SpringCloud Alibaba Nacos Config -->
  22. <dependency>
  23. <groupId>com.alibaba.cloud</groupId>
  24. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  25. </dependency>
  26. <!-- SpringCloud Alibaba Nacos Config -->
  27. <dependency>
  28. <groupId>com.alibaba.nacos</groupId>
  29. <artifactId>nacos-spring-context</artifactId>
  30. <version>0.2.3-RC1</version>
  31. </dependency>
  32. <!-- SpringCloud Alibaba Sentinel -->
  33. <dependency>
  34. <groupId>com.alibaba.cloud</groupId>
  35. <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
  36. </dependency>
  37. <!-- SpringBoot Actuator -->
  38. <dependency>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-actuator</artifactId>
  41. </dependency>
  42. <!-- Swagger UI -->
  43. <dependency>
  44. <groupId>io.springfox</groupId>
  45. <artifactId>springfox-swagger-ui</artifactId>
  46. <version>${swagger.fox.version}</version>
  47. </dependency>
  48. <!-- Mysql Connector -->
  49. <dependency>
  50. <groupId>mysql</groupId>
  51. <artifactId>mysql-connector-java</artifactId>
  52. </dependency>
  53. <!-- zd Common DataSource -->
  54. <dependency>
  55. <groupId>com.zd</groupId>
  56. <artifactId>zd-common-datasource</artifactId>
  57. </dependency>
  58. <!-- zd Common DataScope -->
  59. <dependency>
  60. <groupId>com.zd</groupId>
  61. <artifactId>zd-common-datascope</artifactId>
  62. </dependency>
  63. <!-- zd Common Log -->
  64. <dependency>
  65. <groupId>com.zd</groupId>
  66. <artifactId>zd-common-log</artifactId>
  67. </dependency>
  68. <!-- zd Common Swagger -->
  69. <dependency>
  70. <groupId>com.zd</groupId>
  71. <artifactId>zd-common-swagger</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-test</artifactId>
  76. <scope>test</scope>
  77. <exclusions>
  78. <exclusion>
  79. <groupId>org.junit.vintage</groupId>
  80. <artifactId>junit-vintage-engine</artifactId>
  81. </exclusion>
  82. </exclusions>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.zd</groupId>
  86. <artifactId>zd-common-resultdata</artifactId>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.projectlombok</groupId>
  90. <artifactId>lombok</artifactId>
  91. </dependency>
  92. <dependency>
  93. <groupId>com.google.code.gson</groupId>
  94. <artifactId>gson</artifactId>
  95. </dependency>
  96. <dependency>
  97. <groupId>com.google.zxing</groupId>
  98. <artifactId>core</artifactId>
  99. <version>3.2.0</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>com.google.zxing</groupId>
  103. <artifactId>javase</artifactId>
  104. <version>3.2.0</version>
  105. </dependency>
  106. </dependencies>
  107. <build>
  108. <finalName>${project.artifactId}</finalName>
  109. <plugins>
  110. <plugin>
  111. <groupId>org.springframework.boot</groupId>
  112. <artifactId>spring-boot-maven-plugin</artifactId>
  113. <executions>
  114. <execution>
  115. <goals>
  116. <goal>repackage</goal>
  117. </goals>
  118. </execution>
  119. </executions>
  120. </plugin>
  121. <!-- 打包时跳过test插件,不运行test测试用例 -->
  122. <plugin>
  123. <groupId>org.apache.maven.plugins</groupId>
  124. <artifactId>maven-surefire-plugin</artifactId>
  125. <version>${maven-surefire-plugin.version}</version>
  126. <configuration>
  127. <skipTests>true</skipTests>
  128. </configuration>
  129. </plugin>
  130. <!-- docker的maven插件 -->
  131. <plugin>
  132. <groupId>com.spotify</groupId>
  133. <artifactId>dockerfile-maven-plugin</artifactId>
  134. <version>${docker.maven.verion}</version>
  135. <executions>
  136. <!--执行 mvn package 时 自动构建docker镜像并推送到仓库 -->
  137. <execution>
  138. <id>default</id>
  139. <phase>package</phase>
  140. <goals>
  141. <goal>build</goal>
  142. <goal>push</goal>
  143. </goals>
  144. </execution>
  145. </executions>
  146. <configuration>
  147. <repository>${docker.registry}/${docker.namespace}/${project.artifactId}</repository>
  148. <tag>latest</tag>
  149. <!-- 镜像服务器账号密码 -->
  150. <username>admin</username>
  151. <password>zd123456..</password>
  152. <!-- 构建参数,指定jar包名称 -->
  153. <buildArgs>
  154. <JAR_FILE>${project.artifactId}.jar</JAR_FILE>
  155. </buildArgs>
  156. </configuration>
  157. </plugin>
  158. </plugins>
  159. </build>
  160. </project>