pom.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.1.2.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <modelVersion>4.0.0</modelVersion>
  12. <packaging>pom</packaging>
  13. <modules>
  14. <module>../csc-szls-common-utils</module>
  15. <module>../csc-szls-eureka</module>
  16. <module>../csc-szls-gateway</module>
  17. <module>../csc-szls-oauth</module>
  18. <module>../csc-szls-system-manage</module>
  19. <module>../csc-szls-config-server</module>
  20. <module>../csc-szls-business</module>
  21. <module>../csc-szls-message</module>
  22. </modules>
  23. <groupId>com.unissoft</groupId>
  24. <artifactId>csc-szls-parent</artifactId>
  25. <version>1.0-SNAPSHOT</version>
  26. <description>父工程</description>
  27. <!--版本-->
  28. <properties>
  29. <java.version>1.8</java.version>
  30. <spring-cloud.version>Greenwich.RELEASE</spring-cloud.version>
  31. <platform-bom.version>Cairo-RELEASE</platform-bom.version>
  32. <swagger.version>2.9.2</swagger.version>
  33. </properties>
  34. <!--子项目可直接用-->
  35. <dependencies>
  36. <!-- springboot实现热部署 -->
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-devtools</artifactId>
  40. <optional>true</optional>
  41. </dependency>
  42. <dependency>
  43. <groupId>cn.hutool</groupId>
  44. <artifactId>hutool-all</artifactId>
  45. <version>5.3.6</version>
  46. </dependency>
  47. <!--org.json-->
  48. <dependency>
  49. <groupId>org.json</groupId>
  50. <artifactId>json</artifactId>
  51. <version>20180813</version>
  52. </dependency>
  53. <!--对象 json转换-->
  54. <dependency>
  55. <groupId>com.alibaba</groupId>
  56. <artifactId>fastjson</artifactId>
  57. <version>1.2.37</version>
  58. </dependency>
  59. </dependencies>
  60. <!--子项目要引入依赖(填写groupId,artifactId)才可以用-->
  61. <dependencyManagement>
  62. <dependencies>
  63. <!--Spring Cloud 版本系列-->
  64. <dependency>
  65. <groupId>org.springframework.cloud</groupId>
  66. <artifactId>spring-cloud-dependencies</artifactId>
  67. <version>${spring-cloud.version}</version>
  68. <type>pom</type>
  69. <scope>import</scope>
  70. </dependency>
  71. <!--swagger-->
  72. <dependency>
  73. <groupId>io.springfox</groupId>
  74. <artifactId>springfox-swagger2</artifactId>
  75. <version>${swagger.version}</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>io.springfox</groupId>
  79. <artifactId>springfox-swagger-ui</artifactId>
  80. <version>${swagger.version}</version>
  81. </dependency>
  82. <!-- mybatisplus与springboot整合 -->
  83. <dependency>
  84. <groupId>com.baomidou</groupId>
  85. <artifactId>mybatis-plus-boot-starter</artifactId>
  86. <version>3.4.1</version>
  87. </dependency>
  88. <!-- springboot整合mybatis(核心就这一个) -->
  89. <!-- 注意顺序,这个一定要放在最下面 -->
  90. <dependency>
  91. <groupId>org.mybatis.spring.boot</groupId>
  92. <artifactId>mybatis-spring-boot-starter</artifactId>
  93. <version>2.0.1</version>
  94. </dependency>
  95. <!--使用security-jwt-->
  96. <dependency>
  97. <groupId>org.springframework.security</groupId>
  98. <artifactId>spring-security-jwt</artifactId>
  99. <version>1.0.10.RELEASE</version>
  100. </dependency>
  101. </dependencies>
  102. </dependencyManagement>
  103. <build>
  104. <plugins>
  105. <plugin>
  106. <groupId>org.springframework.boot</groupId>
  107. <artifactId>spring-boot-maven-plugin</artifactId>
  108. <!-- 这块一定要配置否则打jar的时候会说找不到主类 -->
  109. <configuration>
  110. <mainClass>com.lock.platform.LockApplication</mainClass>
  111. </configuration>
  112. </plugin>
  113. </plugins>
  114. </build>
  115. <!-- 有些依赖可能下载不到,用这个地址试下 -->
  116. <repositories>
  117. <repository>
  118. <id>spring-snapshots</id>
  119. <name>Spring Snapshots</name>
  120. <url>https://repo.spring.io/snapshot</url>
  121. <snapshots>
  122. <enabled>true</enabled>
  123. </snapshots>
  124. </repository>
  125. <repository>
  126. <id>spring-milestones</id>
  127. <name>Spring Milestones</name>
  128. <url>https://repo.spring.io/milestone</url>
  129. </repository>
  130. </repositories>
  131. </project>