pom.xml 5.7 KB

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