pom.xml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. <groupId>com.csitc</groupId>
  7. <artifactId>cloud</artifactId>
  8. <version>${revision}</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>cloud-server</artifactId>
  12. <packaging>jar</packaging>
  13. <name>${project.artifactId}</name>
  14. <description>
  15. 后端 Server 的主项目,通过引入需要 cloud-module-xxx 的依赖,
  16. 从而实现提供 RESTful API 给 cloud-ui-admin、cloud-ui-user 等前端项目。
  17. 本质上来说,它就是个空壳(容器)!
  18. </description>
  19. <dependencies>
  20. <dependency>
  21. <groupId>com.csitc</groupId>
  22. <artifactId>cloud-module-system-biz</artifactId>
  23. <version>${revision}</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>com.csitc</groupId>
  27. <artifactId>cloud-module-infra-biz</artifactId>
  28. <version>${revision}</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>com.csitc</groupId>
  32. <artifactId>cloud-spring-boot-starter-biz-error-code</artifactId>
  33. </dependency>
  34. <!-- spring boot 配置所需依赖 -->
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-configuration-processor</artifactId>
  38. <optional>true</optional>
  39. </dependency>
  40. <dependency>
  41. <groupId>com.csitc</groupId>
  42. <artifactId>cloud-spring-boot-starter-banner</artifactId>
  43. </dependency>
  44. <!-- 服务保障相关 -->
  45. <dependency>
  46. <groupId>com.csitc</groupId>
  47. <artifactId>cloud-spring-boot-starter-protection</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.junit.jupiter</groupId>
  51. <artifactId>junit-jupiter-api</artifactId>
  52. <scope>test</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-test</artifactId>
  57. <scope>test</scope>
  58. </dependency>
  59. <dependency>
  60. <groupId>junit</groupId>
  61. <artifactId>junit</artifactId>
  62. <scope>test</scope>
  63. </dependency>
  64. </dependencies>
  65. <build>
  66. <!-- 设置构建的 jar 包名 -->
  67. <finalName>${project.artifactId}</finalName>
  68. <plugins>
  69. <!-- 打包 -->
  70. <plugin>
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-maven-plugin</artifactId>
  73. <version>2.7.8</version> <!-- 如果 spring.boot.version 版本修改,则这里也要跟着修改 -->
  74. <configuration>
  75. <fork>true</fork>
  76. </configuration>
  77. <executions>
  78. <execution>
  79. <goals>
  80. <goal>repackage</goal> <!-- 将引入的 jar 打入其中 -->
  81. </goals>
  82. </execution>
  83. </executions>
  84. </plugin>
  85. </plugins>
  86. </build>
  87. </project>