pom.xml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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" 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>cn.iocoder.boot</groupId>
  7. <artifactId>yudao-module-iot-net-components</artifactId>
  8. <version>${revision}</version>
  9. </parent>
  10. <artifactId>yudao-module-iot-net-component-server</artifactId>
  11. <packaging>jar</packaging>
  12. <name>${project.artifactId}</name>
  13. <description>
  14. IoT 网络组件的独立运行服务,用于聚合和启动多个网络组件实例。
  15. </description>
  16. <dependencies>
  17. <!-- Spring Boot 核心 -->
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-starter</artifactId>
  21. </dependency>
  22. <!-- Web 相关 -->
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-web</artifactId>
  26. </dependency>
  27. <!-- Net Component 核心 -->
  28. <dependency>
  29. <groupId>cn.iocoder.boot</groupId>
  30. <artifactId>yudao-module-iot-net-component-core</artifactId>
  31. <version>${revision}</version>
  32. </dependency>
  33. <!-- Net Component HTTP -->
  34. <dependency>
  35. <groupId>cn.iocoder.boot</groupId>
  36. <artifactId>yudao-module-iot-net-component-http</artifactId>
  37. <version>${revision}</version>
  38. </dependency>
  39. <!-- Net Component EMQX -->
  40. <dependency>
  41. <groupId>cn.iocoder.boot</groupId>
  42. <artifactId>yudao-module-iot-net-component-emqx</artifactId>
  43. <version>${revision}</version>
  44. </dependency>
  45. </dependencies>
  46. <build>
  47. <!-- 设置构建的 jar 包名 -->
  48. <finalName>${project.artifactId}</finalName>
  49. <plugins>
  50. <!-- 打包 -->
  51. <plugin>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-maven-plugin</artifactId>
  54. <version>${spring.boot.version}</version> <!-- 需要确认父 POM 中有定义 -->
  55. <executions>
  56. <execution>
  57. <goals>
  58. <goal>repackage</goal> <!-- 将引入的 jar 打入其中 -->
  59. </goals>
  60. </execution>
  61. </executions>
  62. </plugin>
  63. </plugins>
  64. </build>
  65. </project>