pom.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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>game-platform</artifactId>
  7. <groupId>com.zanxiang.game</groupId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>game-platform-serve</artifactId>
  12. <properties>
  13. <maven.compiler.source>8</maven.compiler.source>
  14. <maven.compiler.target>8</maven.compiler.target>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter-actuator</artifactId>
  20. </dependency>
  21. <dependency>
  22. <groupId>org.springframework.cloud</groupId>
  23. <artifactId>spring-cloud-starter</artifactId>
  24. </dependency>
  25. <!-- spring boot默认不去扫描 bootstrap.yml文件了 -->
  26. <dependency>
  27. <groupId>org.springframework.cloud</groupId>
  28. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  29. </dependency>
  30. <!-- SpringBoot start -->
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-web</artifactId>
  34. </dependency>
  35. <!-- nacos配置中心 默认的 nacos-client 2.0.3有 bug -->
  36. <dependency>
  37. <groupId>com.alibaba.cloud</groupId>
  38. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  39. <exclusions>
  40. <exclusion>
  41. <groupId>com.alibaba.nacos</groupId>
  42. <artifactId>nacos-client</artifactId>
  43. </exclusion>
  44. </exclusions>
  45. </dependency>
  46. <!-- nacos注册中心 -->
  47. <dependency>
  48. <groupId>com.alibaba.cloud</groupId>
  49. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  50. <exclusions>
  51. <exclusion>
  52. <groupId>com.alibaba.nacos</groupId>
  53. <artifactId>nacos-client</artifactId>
  54. </exclusion>
  55. </exclusions>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.alibaba.nacos</groupId>
  59. <artifactId>nacos-client</artifactId>
  60. </dependency>
  61. <!-- dubbo -->
  62. <dependency>
  63. <groupId>org.apache.dubbo</groupId>
  64. <artifactId>dubbo-spring-boot-starter</artifactId>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.apache.dubbo</groupId>
  68. <artifactId>dubbo-metadata-definition-protobuf</artifactId>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.zanxiang.module</groupId>
  72. <artifactId>zx-web</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.zanxiang.module</groupId>
  76. <artifactId>zx-redis</artifactId>
  77. </dependency>
  78. <!-- Mybatis Plus -->
  79. <dependency>
  80. <groupId>com.baomidou</groupId>
  81. <artifactId>mybatis-plus-boot-starter</artifactId>
  82. </dependency>
  83. <!-- Mysql Connector -->
  84. <dependency>
  85. <groupId>mysql</groupId>
  86. <artifactId>mysql-connector-java</artifactId>
  87. </dependency>
  88. <!-- swagger2 -->
  89. <dependency>
  90. <groupId>io.springfox</groupId>
  91. <artifactId>springfox-swagger2</artifactId>
  92. <version>2.9.2</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>io.springfox</groupId>
  96. <artifactId>springfox-swagger-ui</artifactId>
  97. <version>2.9.2</version>
  98. </dependency>
  99. </dependencies>
  100. <build>
  101. <plugins>
  102. <!-- 不发布到 maven仓库 -->
  103. <plugin>
  104. <groupId>org.apache.maven.plugins</groupId>
  105. <artifactId>maven-deploy-plugin</artifactId>
  106. <version>2.8.2</version>
  107. <configuration>
  108. <skip>true</skip>
  109. </configuration>
  110. </plugin>
  111. <plugin>
  112. <groupId>org.apache.maven.plugins</groupId>
  113. <artifactId>maven-compiler-plugin</artifactId>
  114. <version>3.1</version>
  115. <configuration>
  116. <source>8</source>
  117. <target>8</target>
  118. <encoding>${project.build.sourceEncoding}</encoding>
  119. </configuration>
  120. </plugin>
  121. <plugin>
  122. <groupId>org.springframework.boot</groupId>
  123. <artifactId>spring-boot-maven-plugin</artifactId>
  124. <version>2.5.14</version>
  125. <configuration>
  126. <includeSystemScope>true</includeSystemScope>
  127. </configuration>
  128. <executions>
  129. <execution>
  130. <goals>
  131. <goal>repackage</goal>
  132. </goals>
  133. </execution>
  134. </executions>
  135. </plugin>
  136. </plugins>
  137. </build>
  138. </project>