pom.xml 6.4 KB

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