pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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.HttpPlugin</plugin.class>
  22. <plugin.version>0.0.1</plugin.version>
  23. <plugin.provider>ahh</plugin.provider>
  24. <plugin.dependencies/>
  25. </properties>
  26. <build>
  27. <plugins>
  28. <!-- DOESN'T WORK WITH MAVEN 3 (I defined the plugin metadata in properties section)
  29. <plugin>
  30. <groupId>org.codehaus.mojo</groupId>
  31. <artifactId>properties-maven-plugin</artifactId>
  32. <version>1.0-alpha-2</version>
  33. <executions>
  34. <execution>
  35. <phase>initialize</phase>
  36. <goals>
  37. <goal>read-project-properties</goal>
  38. </goals>
  39. <configuration>
  40. <files>
  41. <file>plugin.properties</file>
  42. </files>
  43. </configuration>
  44. </execution>
  45. </executions>
  46. </plugin>
  47. -->
  48. <plugin>
  49. <groupId>org.apache.maven.plugins</groupId>
  50. <artifactId>maven-antrun-plugin</artifactId>
  51. <version>1.6</version>
  52. <executions>
  53. <execution>
  54. <id>unzip jar file</id>
  55. <phase>package</phase>
  56. <configuration>
  57. <target>
  58. <unzip src="target/${project.artifactId}-${project.version}.${project.packaging}"
  59. dest="target/plugin-classes"/>
  60. </target>
  61. </configuration>
  62. <goals>
  63. <goal>run</goal>
  64. </goals>
  65. </execution>
  66. </executions>
  67. </plugin>
  68. <plugin>
  69. <artifactId>maven-assembly-plugin</artifactId>
  70. <version>2.3</version>
  71. <configuration>
  72. <descriptors>
  73. <descriptor>
  74. src/main/assembly/assembly.xml
  75. </descriptor>
  76. </descriptors>
  77. <appendAssemblyId>false</appendAssemblyId>
  78. </configuration>
  79. <executions>
  80. <execution>
  81. <id>make-assembly</id>
  82. <phase>package</phase>
  83. <goals>
  84. <goal>attached</goal>
  85. </goals>
  86. </execution>
  87. </executions>
  88. </plugin>
  89. <plugin>
  90. <groupId>org.apache.maven.plugins</groupId>
  91. <artifactId>maven-jar-plugin</artifactId>
  92. <version>2.4</version>
  93. <configuration>
  94. <archive>
  95. <manifestEntries>
  96. <Plugin-Id>${plugin.id}</Plugin-Id>
  97. <Plugin-Class>${plugin.class}</Plugin-Class>
  98. <Plugin-Version>${plugin.version}</Plugin-Version>
  99. <Plugin-Provider>${plugin.provider}</Plugin-Provider>
  100. <Plugin-Dependencies>${plugin.dependencies}</Plugin-Dependencies>
  101. </manifestEntries>
  102. </archive>
  103. </configuration>
  104. </plugin>
  105. <plugin>
  106. <artifactId>maven-deploy-plugin</artifactId>
  107. <configuration>
  108. <skip>true</skip>
  109. </configuration>
  110. </plugin>
  111. </plugins>
  112. </build>
  113. <dependencies>
  114. <!-- 其他依赖项 -->
  115. <dependency>
  116. <groupId>org.springframework.boot</groupId>
  117. <artifactId>spring-boot-starter-web</artifactId>
  118. </dependency>
  119. <!-- PF4J Spring 集成 -->
  120. <dependency>
  121. <groupId>org.pf4j</groupId>
  122. <artifactId>pf4j-spring</artifactId>
  123. <scope>provided</scope>
  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. <version>${lombok.version}</version>
  135. <scope>provided</scope>
  136. </dependency>
  137. <dependency>
  138. <groupId>io.netty</groupId>
  139. <artifactId>netty-all</artifactId>
  140. <version>4.1.63.Final</version> <!-- 版本可根据需要调整 -->
  141. </dependency>
  142. </dependencies>
  143. </project>