pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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" xsi:schemaLocation="
  4. http://maven.apache.org/POM/4.0.0
  5. http://maven.apache.org/xsd/maven-4.0.0.xsd">
  6. <parent>
  7. <artifactId>yudao-module-iot-plugin</artifactId>
  8. <groupId>cn.iocoder.boot</groupId>
  9. <version>${revision}</version>
  10. </parent>
  11. <modelVersion>4.0.0</modelVersion>
  12. <packaging>jar</packaging>
  13. <artifactId>yudao-module-iot-plugin-http</artifactId>
  14. <version>1.0.0</version>
  15. <name>${project.artifactId}</name>
  16. <description>
  17. 物联网 插件模块 - http 插件
  18. </description>
  19. <properties>
  20. <!-- 插件相关 -->
  21. <plugin.id>${project.artifactId}</plugin.id>
  22. <plugin.class>cn.iocoder.yudao.module.iot.config.HttpVertxPlugin</plugin.class>
  23. <plugin.version>${project.version}</plugin.version>
  24. <plugin.provider>yudao</plugin.provider>
  25. <plugin.description>${project.artifactId}-${project.version}</plugin.description>
  26. <plugin.dependencies/>
  27. </properties>
  28. <build>
  29. <plugins>
  30. <!-- 插件模式 zip -->
  31. <plugin>
  32. <groupId>org.apache.maven.plugins</groupId>
  33. <artifactId>maven-antrun-plugin</artifactId>
  34. <version>1.6</version>
  35. <executions>
  36. <execution>
  37. <id>unzip jar file</id>
  38. <phase>package</phase>
  39. <configuration>
  40. <target>
  41. <unzip src="target/${project.artifactId}-${project.version}.${project.packaging}"
  42. dest="target/plugin-classes"/>
  43. </target>
  44. </configuration>
  45. <goals>
  46. <goal>run</goal>
  47. </goals>
  48. </execution>
  49. </executions>
  50. </plugin>
  51. <plugin>
  52. <artifactId>maven-assembly-plugin</artifactId>
  53. <version>2.3</version>
  54. <configuration>
  55. <descriptors>
  56. <descriptor>
  57. src/main/assembly/assembly.xml
  58. </descriptor>
  59. </descriptors>
  60. <appendAssemblyId>false</appendAssemblyId>
  61. </configuration>
  62. <executions>
  63. <execution>
  64. <id>make-assembly</id>
  65. <phase>package</phase>
  66. <goals>
  67. <goal>attached</goal>
  68. </goals>
  69. </execution>
  70. </executions>
  71. </plugin>
  72. <!-- 插件模式 jar -->
  73. <plugin>
  74. <groupId>org.apache.maven.plugins</groupId>
  75. <artifactId>maven-jar-plugin</artifactId>
  76. <version>2.4</version>
  77. <configuration>
  78. <archive>
  79. <manifestEntries>
  80. <Plugin-Id>${plugin.id}</Plugin-Id>
  81. <Plugin-Class>${plugin.class}</Plugin-Class>
  82. <Plugin-Version>${plugin.version}</Plugin-Version>
  83. <Plugin-Provider>${plugin.provider}</Plugin-Provider>
  84. <Plugin-Description>${plugin.description}</Plugin-Description>
  85. <Plugin-Dependencies>${plugin.dependencies}</Plugin-Dependencies>
  86. </manifestEntries>
  87. </archive>
  88. </configuration>
  89. </plugin>
  90. <!-- 独立模式 -->
  91. <plugin>
  92. <groupId>org.springframework.boot</groupId>
  93. <artifactId>spring-boot-maven-plugin</artifactId>
  94. <version>${spring.boot.version}</version>
  95. <executions>
  96. <execution>
  97. <goals>
  98. <goal>repackage</goal>
  99. </goals>
  100. <configuration>
  101. <classifier>-standalone</classifier>
  102. </configuration>
  103. </execution>
  104. </executions>
  105. </plugin>
  106. <plugin>
  107. <artifactId>maven-deploy-plugin</artifactId>
  108. <configuration>
  109. <skip>true</skip>
  110. </configuration>
  111. </plugin>
  112. </plugins>
  113. </build>
  114. <dependencies>
  115. <!-- 其他依赖项 -->
  116. <dependency>
  117. <groupId>org.springframework.boot</groupId>
  118. <artifactId>spring-boot-starter-web</artifactId>
  119. </dependency>
  120. <!-- PF4J Spring 集成 -->
  121. <dependency>
  122. <groupId>org.pf4j</groupId>
  123. <artifactId>pf4j-spring</artifactId>
  124. </dependency>
  125. <!-- 项目依赖 -->
  126. <dependency>
  127. <groupId>cn.iocoder.boot</groupId>
  128. <artifactId>yudao-module-iot-api</artifactId>
  129. <version>${revision}</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.projectlombok</groupId>
  133. <artifactId>lombok</artifactId>
  134. </dependency>
  135. <!-- Vert.x Web -->
  136. <dependency>
  137. <groupId>io.vertx</groupId>
  138. <artifactId>vertx-web</artifactId>
  139. </dependency>
  140. </dependencies>
  141. </project>