pom.xml 4.9 KB

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