pom.xml 6.6 KB

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