pom.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.1.3.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>cn.minbb</groupId>
  12. <artifactId>IoT</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>IoT</name>
  15. <description>Iot project for Spring Boot</description>
  16. <packaging>war</packaging>
  17. <properties>
  18. <java.version>1.8</java.version>
  19. </properties>
  20. <dependencies>
  21. <!-- Tomcat -->
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-tomcat</artifactId>
  25. <scope>provided</scope>
  26. </dependency>
  27. <!-- Web -->
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-web</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-starter-test</artifactId>
  35. <scope>test</scope>
  36. </dependency>
  37. <!-- MySQL -->
  38. <dependency>
  39. <groupId>mysql</groupId>
  40. <artifactId>mysql-connector-java</artifactId>
  41. <scope>runtime</scope>
  42. </dependency>
  43. <!-- JPA -->
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-starter-data-jpa</artifactId>
  47. </dependency>
  48. <!-- 模板引擎 -->
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  52. </dependency>
  53. <!-- 避免 layout:fragment 失效 -->
  54. <dependency>
  55. <groupId>nz.net.ultraq.thymeleaf</groupId>
  56. <artifactId>thymeleaf-layout-dialect</artifactId>
  57. <version>2.3.0</version>
  58. </dependency>
  59. <!-- Swagger2 -->
  60. <dependency>
  61. <groupId>io.springfox</groupId>
  62. <artifactId>springfox-swagger-ui</artifactId>
  63. <version>2.7.0</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>io.springfox</groupId>
  67. <artifactId>springfox-swagger2</artifactId>
  68. <version>2.7.0</version>
  69. </dependency>
  70. <!-- FastJSON -->
  71. <dependency>
  72. <groupId>com.alibaba</groupId>
  73. <artifactId>fastjson</artifactId>
  74. <version>1.2.38</version>
  75. </dependency>
  76. <!-- WebSocket -->
  77. <dependency>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-starter-websocket</artifactId>
  80. <exclusions>
  81. <exclusion>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-starter-tomcat</artifactId>
  84. </exclusion>
  85. </exclusions>
  86. </dependency>
  87. <!-- MQTT -->
  88. <dependency>
  89. <groupId>org.springframework.boot</groupId>
  90. <artifactId>spring-boot-starter-integration</artifactId>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.springframework.integration</groupId>
  94. <artifactId>spring-integration-stream</artifactId>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.springframework.integration</groupId>
  98. <artifactId>spring-integration-mqtt</artifactId>
  99. </dependency>
  100. <!-- 热部署-->
  101. <dependency>
  102. <groupId>org.springframework.boot</groupId>
  103. <artifactId>spring-boot-devtools</artifactId>
  104. <scope>runtime</scope>
  105. </dependency>
  106. <!-- lombok -->
  107. <dependency>
  108. <groupId>org.projectlombok</groupId>
  109. <artifactId>lombok</artifactId>
  110. <optional>true</optional>
  111. </dependency>
  112. </dependencies>
  113. <build>
  114. <plugins>
  115. <plugin>
  116. <groupId>org.springframework.boot</groupId>
  117. <artifactId>spring-boot-maven-plugin</artifactId>
  118. </plugin>
  119. </plugins>
  120. </build>
  121. </project>