pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. <description>
  12. zd-auth认证授权中心
  13. </description>
  14. <dependencies>
  15. <!-- SpringCloud Alibaba Nacos -->
  16. <dependency>
  17. <groupId>com.alibaba.cloud</groupId>
  18. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  19. </dependency>
  20. <!-- SpringCloud Alibaba Nacos Config -->
  21. <dependency>
  22. <groupId>com.alibaba.cloud</groupId>
  23. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  24. </dependency>
  25. <!-- zd Common Swagger -->
  26. <dependency>
  27. <groupId>com.zd</groupId>
  28. <artifactId>zd-common-swagger</artifactId>
  29. </dependency>
  30. <!-- SpringCloud Alibaba Sentinel -->
  31. <dependency>
  32. <groupId>com.alibaba.cloud</groupId>
  33. <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
  34. </dependency>
  35. <!-- SpringBoot Web -->
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter-web</artifactId>
  39. </dependency>
  40. <!-- SpringBoot Actuator -->
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-actuator</artifactId>
  44. </dependency>
  45. <!-- zd Common Security-->
  46. <dependency>
  47. <groupId>com.zd</groupId>
  48. <artifactId>zd-common-security</artifactId>
  49. <exclusions>
  50. <exclusion>
  51. <groupId>com.zd</groupId>
  52. <artifactId>zd-common-datasource</artifactId>
  53. </exclusion>
  54. </exclusions>
  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>