pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <parent>
  5. <groupId>com.zd</groupId>
  6. <artifactId>zd</artifactId>
  7. <version>3.1.0</version>
  8. </parent>
  9. <modelVersion>4.0.0</modelVersion>
  10. <artifactId>zd-auth</artifactId>
  11. <packaging>jar</packaging>
  12. <description>认证中心</description>
  13. <dependencies>
  14. <!-- SpringCloud Alibaba Nacos -->
  15. <dependency>
  16. <groupId>com.alibaba.cloud</groupId>
  17. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  18. </dependency>
  19. <!-- SpringCloud Alibaba Nacos Config -->
  20. <dependency>
  21. <groupId>com.alibaba.cloud</groupId>
  22. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  23. </dependency>
  24. <!-- zd Common Swagger -->
  25. <dependency>
  26. <groupId>com.zd</groupId>
  27. <artifactId>zd-common-swagger</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 Web -->
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-web</artifactId>
  38. </dependency>
  39. <!-- SpringBoot Actuator -->
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-actuator</artifactId>
  43. </dependency>
  44. <!-- zd Common Security-->
  45. <dependency>
  46. <groupId>com.zd</groupId>
  47. <artifactId>zd-common-security</artifactId>
  48. <exclusions>
  49. <exclusion>
  50. <groupId>com.zd</groupId>
  51. <artifactId>zd-common-datasource</artifactId>
  52. </exclusion>
  53. </exclusions>
  54. </dependency>
  55. </dependencies>
  56. <build>
  57. <finalName>${project.artifactId}</finalName>
  58. <plugins>
  59. <plugin>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-maven-plugin</artifactId>
  62. <executions>
  63. <execution>
  64. <goals>
  65. <goal>repackage</goal>
  66. </goals>
  67. </execution>
  68. </executions>
  69. </plugin>
  70. <!-- 打包时跳过test插件,不运行test测试用例 -->
  71. <plugin>
  72. <groupId>org.apache.maven.plugins</groupId>
  73. <artifactId>maven-surefire-plugin</artifactId>
  74. <version>${maven-surefire-plugin.version}</version>
  75. <configuration>
  76. <skipTests>true</skipTests>
  77. </configuration>
  78. </plugin>
  79. <!-- docker的maven插件 -->
  80. <!-- <plugin>-->
  81. <!-- <groupId>io.fabric8</groupId>-->
  82. <!-- <artifactId>docker-maven-plugin</artifactId>-->
  83. <!-- <version>${docker.maven.verion}</version>-->
  84. <!-- <executions>-->
  85. <!-- &lt;!&ndash;执行 mvn package 时 自动构建docker镜像并推送到仓库 &ndash;&gt;-->
  86. <!-- <execution>-->
  87. <!-- <id>default</id>-->
  88. <!-- <phase>package</phase>-->
  89. <!-- <goals>-->
  90. <!-- <goal>remove</goal>-->
  91. <!-- <goal>build</goal>-->
  92. <!-- <goal>push</goal>-->
  93. <!-- </goals>-->
  94. <!-- </execution>-->
  95. <!-- </executions>-->
  96. <!-- <configuration>-->
  97. <!-- &lt;!&ndash; docker主机 &ndash;&gt;-->
  98. <!-- <dockerHost>tcp://192.168.1.88:2375</dockerHost>-->
  99. <!-- <authConfig>-->
  100. <!-- &lt;!&ndash; registry服务的认证&ndash;&gt;-->
  101. <!-- <username>${docker.registry.username}</username>-->
  102. <!-- <password>${docker.registry.password}</password>-->
  103. <!-- </authConfig>-->
  104. <!-- <images>-->
  105. <!-- <image>-->
  106. <!-- &lt;!&ndash; [命名空间] / [镜像名称:版本号] &ndash;&gt;-->
  107. <!-- <name>${docker.registry}/${docker.namespace}/${project.artifactId}</name>-->
  108. <!-- &lt;!&ndash; 仓库地址 &ndash;&gt;-->
  109. <!-- <registry>${docker.registry}</registry>-->
  110. <!-- <build>-->
  111. <!-- <dockerFile>${project.basedir}/Dockerfile</dockerFile>-->
  112. <!-- <tags>-->
  113. <!-- <tag>${project.version}</tag>-->
  114. <!-- </tags>-->
  115. <!-- </build>-->
  116. <!-- </image>-->
  117. <!-- </images>-->
  118. <!-- <buildArgs>-->
  119. <!-- &lt;!&ndash; dockerfile参数,指定jar路径 &ndash;&gt;-->
  120. <!-- <JAR_FILE>${project.artifactId}.jar</JAR_FILE>-->
  121. <!-- </buildArgs>-->
  122. <!-- </configuration>-->
  123. <!-- </plugin>-->
  124. </plugins>
  125. </build>
  126. </project>