pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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-speaker</artifactId>
  12. <description>
  13. zd-speaker 喇叭系统
  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. <!-- SpringBoot Actuator -->
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-actuator</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-web</artifactId>
  34. </dependency>
  35. <!-- zd Common Log -->
  36. <dependency>
  37. <groupId>com.zd</groupId>
  38. <artifactId>zd-common-log</artifactId>
  39. </dependency>
  40. <!-- zd Common Swagger -->
  41. <dependency>
  42. <groupId>com.zd</groupId>
  43. <artifactId>zd-common-swagger</artifactId>
  44. </dependency>
  45. <!-- zd Common redis -->
  46. <dependency>
  47. <groupId>com.zd</groupId>
  48. <artifactId>zd-common-redis</artifactId>
  49. </dependency>
  50. <!-- zd okhttp -->
  51. <dependency>
  52. <groupId>com.squareup.okhttp3</groupId>
  53. <artifactId>okhttp</artifactId>
  54. <version>3.10.0</version>
  55. </dependency>
  56. </dependencies>
  57. <build>
  58. <finalName>${project.artifactId}</finalName>
  59. <plugins>
  60. <plugin>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-maven-plugin</artifactId>
  63. <executions>
  64. <execution>
  65. <goals>
  66. <goal>repackage</goal>
  67. </goals>
  68. </execution>
  69. </executions>
  70. </plugin>
  71. <!-- 打包时跳过test插件,不运行test测试用例 -->
  72. <plugin>
  73. <groupId>org.apache.maven.plugins</groupId>
  74. <artifactId>maven-surefire-plugin</artifactId>
  75. <version>${maven-surefire-plugin.version}</version>
  76. <configuration>
  77. <skipTests>true</skipTests>
  78. </configuration>
  79. </plugin>
  80. <!-- docker的maven插件 -->
  81. <!-- <plugin>-->
  82. <!-- <groupId>io.fabric8</groupId>-->
  83. <!-- <artifactId>docker-maven-plugin</artifactId>-->
  84. <!-- <version>${docker.maven.verion}</version>-->
  85. <!-- <executions>-->
  86. <!-- &lt;!&ndash;执行 mvn package 时 自动构建docker镜像并推送到仓库 &ndash;&gt;-->
  87. <!-- <execution>-->
  88. <!-- <id>default</id>-->
  89. <!-- <phase>package</phase>-->
  90. <!-- <goals>-->
  91. <!-- <goal>remove</goal>-->
  92. <!-- <goal>build</goal>-->
  93. <!-- <goal>push</goal>-->
  94. <!-- </goals>-->
  95. <!-- </execution>-->
  96. <!-- </executions>-->
  97. <!-- <configuration>-->
  98. <!-- &lt;!&ndash; docker主机 &ndash;&gt;-->
  99. <!-- <dockerHost>tcp://192.168.1.88:2375</dockerHost>-->
  100. <!-- <authConfig>-->
  101. <!-- &lt;!&ndash; registry服务的认证&ndash;&gt;-->
  102. <!-- <username>${docker.registry.username}</username>-->
  103. <!-- <password>${docker.registry.password}</password>-->
  104. <!-- </authConfig>-->
  105. <!-- <images>-->
  106. <!-- <image>-->
  107. <!-- &lt;!&ndash; [命名空间] / [镜像名称:版本号] &ndash;&gt;-->
  108. <!-- <name>${docker.registry}/${docker.namespace}/${project.artifactId}</name>-->
  109. <!-- &lt;!&ndash; 仓库地址 &ndash;&gt;-->
  110. <!-- <registry>${docker.registry}</registry>-->
  111. <!-- <build>-->
  112. <!-- <dockerFile>${project.basedir}/Dockerfile</dockerFile>-->
  113. <!-- <tags>-->
  114. <!-- <tag>${project.version}</tag>-->
  115. <!-- </tags>-->
  116. <!-- </build>-->
  117. <!-- </image>-->
  118. <!-- </images>-->
  119. <!-- <buildArgs>-->
  120. <!-- &lt;!&ndash; dockerfile参数,指定jar路径 &ndash;&gt;-->
  121. <!-- <JAR_FILE>${project.artifactId}.jar</JAR_FILE>-->
  122. <!-- </buildArgs>-->
  123. <!-- </configuration>-->
  124. <!-- </plugin>-->
  125. </plugins>
  126. </build>
  127. </project>