pom.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. <dependencies>
  13. <dependency>
  14. <groupId>org.springframework.boot</groupId>
  15. <artifactId>spring-boot-starter-actuator</artifactId>
  16. </dependency>
  17. <dependency>
  18. <groupId>org.springframework.cloud</groupId>
  19. <artifactId>spring-cloud-starter</artifactId>
  20. </dependency>
  21. <!-- spring boot默认不去扫描 bootstrap.yml文件了 -->
  22. <dependency>
  23. <groupId>org.springframework.cloud</groupId>
  24. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  25. </dependency>
  26. <!-- SpringBoot start -->
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-web</artifactId>
  30. </dependency>
  31. <!-- nacos配置中心 默认的 nacos-client 2.0.3有 bug -->
  32. <dependency>
  33. <groupId>com.alibaba.cloud</groupId>
  34. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  35. <exclusions>
  36. <exclusion>
  37. <groupId>com.alibaba.nacos</groupId>
  38. <artifactId>nacos-client</artifactId>
  39. </exclusion>
  40. </exclusions>
  41. </dependency>
  42. <!-- nacos注册中心 -->
  43. <dependency>
  44. <groupId>com.alibaba.cloud</groupId>
  45. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  46. <exclusions>
  47. <exclusion>
  48. <groupId>com.alibaba.nacos</groupId>
  49. <artifactId>nacos-client</artifactId>
  50. </exclusion>
  51. </exclusions>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.alibaba.nacos</groupId>
  55. <artifactId>nacos-client</artifactId>
  56. </dependency>
  57. <!-- dubbo -->
  58. <dependency>
  59. <groupId>org.apache.dubbo</groupId>
  60. <artifactId>dubbo-spring-boot-starter</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.apache.dubbo</groupId>
  64. <artifactId>dubbo-metadata-definition-protobuf</artifactId>
  65. </dependency>
  66. <dependency>
  67. <groupId>com.zanxiang.module</groupId>
  68. <artifactId>zx-web</artifactId>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.zanxiang.erp</groupId>
  72. <artifactId>erp-security</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-spring-boot3-starter</artifactId>
  82. </dependency>
  83. <!-- Mysql Connector -->
  84. <dependency>
  85. <groupId>com.mysql</groupId>
  86. <artifactId>mysql-connector-j</artifactId>
  87. </dependency>
  88. </dependencies>
  89. <build>
  90. <plugins>
  91. <!-- 不发布到 maven仓库 -->
  92. <plugin>
  93. <groupId>org.apache.maven.plugins</groupId>
  94. <artifactId>maven-deploy-plugin</artifactId>
  95. <version>2.8.2</version>
  96. <configuration>
  97. <skip>true</skip>
  98. </configuration>
  99. </plugin>
  100. <plugin>
  101. <groupId>org.apache.maven.plugins</groupId>
  102. <artifactId>maven-compiler-plugin</artifactId>
  103. <version>3.11.0</version>
  104. <configuration>
  105. <source>${java.version}</source>
  106. <target>${java.version}</target>
  107. <encoding>${project.build.sourceEncoding}</encoding>
  108. <fork>true</fork> <!-- 必须设为 true,否则 compilerArgs 不生效 -->
  109. <compilerArgs>
  110. <!-- 将编译器的栈大小调整为 4M 或 8M (默认通常只有 1M) -->
  111. <arg>-J-Xss4m</arg>
  112. </compilerArgs>
  113. </configuration>
  114. </plugin>
  115. <plugin>
  116. <groupId>org.springframework.boot</groupId>
  117. <artifactId>spring-boot-maven-plugin</artifactId>
  118. <version>${springboot.version}</version>
  119. <configuration>
  120. <includeSystemScope>true</includeSystemScope>
  121. </configuration>
  122. <executions>
  123. <execution>
  124. <goals>
  125. <goal>repackage</goal>
  126. </goals>
  127. </execution>
  128. </executions>
  129. </plugin>
  130. </plugins>
  131. </build>
  132. </project>