pom.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <parent>
  4. <artifactId>yudao-module-iot</artifactId>
  5. <groupId>cn.iocoder.boot</groupId>
  6. <version>${revision}</version>
  7. </parent>
  8. <modelVersion>4.0.0</modelVersion>
  9. <packaging>jar</packaging>
  10. <artifactId>yudao-module-iot-gateway</artifactId>
  11. <name>${project.artifactId}</name>
  12. <description>
  13. iot 模块下,设备网关:
  14. ① 功能一:接收来自设备的消息,并进行解码(decode)后,发送到消息网关,提供给 iot-biz 进行处理
  15. ② 功能二:接收来自消息网关的消息(由 iot-biz 发送),并进行编码(encode)后,发送给设备
  16. </description>
  17. <dependencies>
  18. <dependency>
  19. <groupId>cn.iocoder.boot</groupId>
  20. <artifactId>yudao-module-iot-core</artifactId>
  21. <version>${revision}</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.springframework</groupId>
  25. <artifactId>spring-web</artifactId>
  26. </dependency>
  27. <!-- 消息队列相关 -->
  28. <dependency>
  29. <groupId>org.apache.rocketmq</groupId>
  30. <artifactId>rocketmq-spring-boot-starter</artifactId>
  31. <!-- TODO @芋艿:消息队列,后续可能去掉,默认不使用 rocketmq -->
  32. <!-- <optional>true</optional> -->
  33. </dependency>
  34. <!-- 工具类相关 -->
  35. <dependency>
  36. <groupId>io.vertx</groupId>
  37. <artifactId>vertx-web</artifactId>
  38. </dependency>
  39. <!-- MQTT 相关 -->
  40. <dependency>
  41. <groupId>io.vertx</groupId>
  42. <artifactId>vertx-mqtt</artifactId>
  43. </dependency>
  44. <!-- 测试相关 -->
  45. <dependency>
  46. <groupId>cn.iocoder.boot</groupId>
  47. <artifactId>yudao-spring-boot-starter-test</artifactId>
  48. <scope>test</scope>
  49. </dependency>
  50. </dependencies>
  51. <build>
  52. <!-- 设置构建的 jar 包名 -->
  53. <finalName>${project.artifactId}</finalName>
  54. <plugins>
  55. <!-- 打包 -->
  56. <plugin>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-maven-plugin</artifactId>
  59. <version>${spring.boot.version}</version>
  60. <executions>
  61. <execution>
  62. <goals>
  63. <goal>repackage</goal> <!-- 将引入的 jar 打入其中 -->
  64. </goals>
  65. </execution>
  66. </executions>
  67. </plugin>
  68. </plugins>
  69. </build>
  70. </project>