pom.xml 5.4 KB

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