pom.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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-forward</artifactId>
  12. <properties>
  13. <maven.compiler.source>8</maven.compiler.source>
  14. <maven.compiler.target>8</maven.compiler.target>
  15. </properties>
  16. <dependencies>
  17. <!-- SpringCloud Alibaba Nacos -->
  18. <dependency>
  19. <groupId>com.alibaba.cloud</groupId>
  20. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  21. </dependency>
  22. <!-- SpringCloud Alibaba Nacos Config -->
  23. <dependency>
  24. <groupId>com.alibaba.cloud</groupId>
  25. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  26. </dependency>
  27. <!-- SpringCloud Alibaba Sentinel -->
  28. <dependency>
  29. <groupId>com.alibaba.cloud</groupId>
  30. <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
  31. </dependency>
  32. <!-- SpringBoot Actuator -->
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-actuator</artifactId>
  36. </dependency>
  37. <!-- Swagger UI -->
  38. <!-- <dependency>-->
  39. <!-- <groupId>io.springfox</groupId>-->
  40. <!-- <artifactId>springfox-swagger-ui</artifactId>-->
  41. <!-- <version>${swagger.fox.version}</version>-->
  42. <!-- </dependency>-->
  43. <!-- &lt;!&ndash; zd Common Log &ndash;&gt;-->
  44. <!-- <dependency>-->
  45. <!-- <groupId>com.zd</groupId>-->
  46. <!-- <artifactId>zd-common-log</artifactId>-->
  47. <!-- </dependency>-->
  48. <!-- zd Common Swagger -->
  49. <dependency>
  50. <groupId>com.zd</groupId>
  51. <artifactId>zd-common-swagger</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.zd</groupId>
  55. <artifactId>zd-common-security</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-starter-test</artifactId>
  60. <scope>test</scope>
  61. <exclusions>
  62. <exclusion>
  63. <groupId>org.junit.vintage</groupId>
  64. <artifactId>junit-vintage-engine</artifactId>
  65. </exclusion>
  66. </exclusions>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-configuration-processor</artifactId>
  71. <optional>true</optional>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.zd</groupId>
  75. <artifactId>zd-common-mqtt</artifactId>
  76. </dependency>
  77. <!-- https://mvnrepository.com/artifact/org.bytedeco/ffmpeg-platform -->
  78. <dependency>
  79. <groupId>org.bytedeco</groupId>
  80. <artifactId>ffmpeg-platform</artifactId>
  81. <version>5.0-1.5.7</version>
  82. </dependency>
  83. <!-- https://mvnrepository.com/artifact/org.bytedeco/javacv -->
  84. <dependency>
  85. <groupId>org.bytedeco</groupId>
  86. <artifactId>javacv</artifactId>
  87. <version>1.5.7</version>
  88. </dependency>
  89. </dependencies>
  90. <build>
  91. <finalName>${project.artifactId}</finalName>
  92. <plugins>
  93. <plugin>
  94. <groupId>org.springframework.boot</groupId>
  95. <artifactId>spring-boot-maven-plugin</artifactId>
  96. <executions>
  97. <execution>
  98. <goals>
  99. <goal>repackage</goal>
  100. </goals>
  101. </execution>
  102. </executions>
  103. </plugin>
  104. <!-- 打包时跳过test插件,不运行test测试用例 -->
  105. <plugin>
  106. <groupId>org.apache.maven.plugins</groupId>
  107. <artifactId>maven-surefire-plugin</artifactId>
  108. <version>${maven-surefire-plugin.version}</version>
  109. <configuration>
  110. <skipTests>true</skipTests>
  111. </configuration>
  112. </plugin>
  113. <!-- docker的maven插件 -->
  114. <!-- <plugin>-->
  115. <!-- <groupId>com.spotify</groupId>-->
  116. <!-- <artifactId>dockerfile-maven-plugin</artifactId>-->
  117. <!-- <version>${docker.maven.verion}</version>-->
  118. <!-- <executions>-->
  119. <!-- &lt;!&ndash;执行 mvn package 时 自动构建docker镜像并推送到仓库 &ndash;&gt;-->
  120. <!-- <execution>-->
  121. <!-- <id>default</id>-->
  122. <!-- <phase>package</phase>-->
  123. <!-- <goals>-->
  124. <!-- <goal>build</goal>-->
  125. <!-- <goal>push</goal>-->
  126. <!-- </goals>-->
  127. <!-- </execution>-->
  128. <!-- </executions>-->
  129. <!-- <configuration>-->
  130. <!-- <repository>${docker.registry}/${docker.namespace}/${project.artifactId}</repository>-->
  131. <!-- <tag>latest</tag>-->
  132. <!-- &lt;!&ndash; 镜像服务器账号密码 &ndash;&gt;-->
  133. <!-- <username>admin</username>-->
  134. <!-- <password>zd123456..</password>-->
  135. <!-- &lt;!&ndash; 构建参数,指定jar包名称 &ndash;&gt;-->
  136. <!-- <buildArgs>-->
  137. <!-- <JAR_FILE>${project.artifactId}.jar</JAR_FILE>-->
  138. <!-- </buildArgs>-->
  139. <!-- </configuration>-->
  140. <!-- </plugin>-->
  141. </plugins>
  142. </build>
  143. </project>