pom.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  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.yushu</groupId>
  7. <artifactId>iot</artifactId>
  8. <version>${revision}</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>iot-admin-server</artifactId>
  12. <packaging>jar</packaging>
  13. <name>iot-admin-server</name>
  14. <description>管理后台 Server,提供其 API 接口</description>
  15. <dependencies>
  16. <!-- Web 相关 -->
  17. <dependency>
  18. <groupId>com.yushu</groupId>
  19. <artifactId>iot-spring-boot-starter-web</artifactId>
  20. </dependency>
  21. <!-- spring boot 配置所需依赖 -->
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-configuration-processor</artifactId>
  25. <optional>true</optional>
  26. </dependency>
  27. <!-- DB 相关 -->
  28. <dependency>
  29. <groupId>com.yushu</groupId>
  30. <artifactId>iot-spring-boot-starter-mybatis</artifactId>
  31. </dependency>
  32. <!-- <dependency>-->
  33. <!-- <groupId>com.yushu</groupId>-->
  34. <!-- <artifactId>iot-spring-boot-starter-redis</artifactId>-->
  35. <!-- </dependency>-->
  36. <!-- 监控相关 -->
  37. <!-- <dependency>-->
  38. <!-- <groupId>com.yushu</groupId>-->
  39. <!-- <artifactId>iot-spring-boot-starter-monitor</artifactId>-->
  40. <!-- </dependency>-->
  41. <dependency>
  42. <groupId>de.codecentric</groupId>
  43. <artifactId>spring-boot-admin-starter-server</artifactId> <!-- 实现 Spring Boot Admin Server 服务端 -->
  44. </dependency>
  45. <!-- Test 测试相关 -->
  46. <dependency>
  47. <groupId>com.yushu</groupId>
  48. <artifactId>iot-spring-boot-starter-test</artifactId>
  49. <scope>test</scope>
  50. </dependency>
  51. <!-- 工具类相关 -->
  52. <dependency>
  53. <groupId>com.yushu</groupId>
  54. <artifactId>iot-spring-boot-starter-excel</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.apache.velocity</groupId>
  58. <artifactId>velocity-engine-core</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>cn.smallbun.screw</groupId>
  62. <artifactId>screw-core</artifactId> <!-- 实现数据库文档 -->
  63. </dependency>
  64. <!-- 工具类相关 -->
  65. <dependency>
  66. <groupId>com.google.guava</groupId>
  67. <artifactId>guava</artifactId>
  68. </dependency>
  69. <!-- TODO 后续看情况,进行调整 -->
  70. <dependency>
  71. <groupId>com.xkcoding.justauth</groupId>
  72. <artifactId>justauth-spring-boot-starter</artifactId>
  73. <version>1.4.0</version>
  74. </dependency>
  75. </dependencies>
  76. <build>
  77. <!-- 设置构建的 jar 包名 -->
  78. <finalName>${project.artifactId}</finalName>
  79. <plugins>
  80. <!-- 打包 -->
  81. <plugin>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-maven-plugin</artifactId>
  84. <version>${spring-boot-maven-plugin.version}</version>
  85. <configuration>
  86. <fork>true</fork>
  87. </configuration>
  88. <executions>
  89. <execution>
  90. <goals>
  91. <goal>repackage</goal> <!-- 将引入的 jar 打入其中 -->
  92. </goals>
  93. </execution>
  94. </executions>
  95. </plugin>
  96. <plugin>
  97. <groupId>org.apache.maven.plugins</groupId>
  98. <artifactId>maven-compiler-plugin</artifactId>
  99. <version>3.8.1</version>
  100. <configuration>
  101. <source>1.8</source>
  102. <target>1.8</target>
  103. <encoding>UTF-8</encoding>
  104. </configuration>
  105. </plugin>
  106. </plugins>
  107. </build>
  108. </project>