pom.xml 5.9 KB

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