pom.xml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. <!-- Modbus 相关 -->
  45. <dependency>
  46. <groupId>com.ghgande</groupId>
  47. <artifactId>j2mod</artifactId>
  48. </dependency>
  49. <!-- CoAP 相关 - Eclipse Californium -->
  50. <dependency>
  51. <groupId>org.eclipse.californium</groupId>
  52. <artifactId>californium-core</artifactId>
  53. </dependency>
  54. <!-- 测试相关 -->
  55. <dependency>
  56. <groupId>cn.iocoder.boot</groupId>
  57. <artifactId>yudao-spring-boot-starter-test</artifactId>
  58. <scope>test</scope>
  59. </dependency>
  60. </dependencies>
  61. <build>
  62. <!-- 设置构建的 jar 包名 -->
  63. <finalName>${project.artifactId}</finalName>
  64. <plugins>
  65. <!-- 打包 -->
  66. <plugin>
  67. <groupId>org.springframework.boot</groupId>
  68. <artifactId>spring-boot-maven-plugin</artifactId>
  69. <version>${spring.boot.version}</version>
  70. <executions>
  71. <execution>
  72. <goals>
  73. <goal>repackage</goal> <!-- 将引入的 jar 打入其中 -->
  74. </goals>
  75. </execution>
  76. </executions>
  77. </plugin>
  78. </plugins>
  79. </build>
  80. </project>