pom.xml 5.9 KB

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