pom.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>wuye-gateway</artifactId>
  7. <groupId>com.cyzh</groupId>
  8. <version>1.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>wuye-device-gateway</artifactId>
  12. <packaging>jar</packaging>
  13. <dependencies>
  14. <!-- lombok -->
  15. <dependency>
  16. <groupId>org.projectlombok</groupId>
  17. <artifactId>lombok</artifactId>
  18. </dependency>
  19. <!-- FastDfs 客户端 -->
  20. <dependency>
  21. <groupId>com.github.tobato</groupId>
  22. <artifactId>fastdfs-client</artifactId>
  23. </dependency>
  24. <!-- Apache工具组件 -->
  25. <dependency>
  26. <groupId>commons-io</groupId>
  27. <artifactId>commons-io</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>commons-fileupload</groupId>
  31. <artifactId>commons-fileupload</artifactId>
  32. </dependency>
  33. <!-- ===================================== Spring Boot JAR ===================================== -->
  34. <!-- 测试用例 -->
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-test</artifactId>
  38. </dependency>
  39. <!-- ===================================== Modular JAR ===================================== -->
  40. <!-- core -->
  41. <dependency>
  42. <groupId>com.cyzh</groupId>
  43. <artifactId>wuye-common-core</artifactId>
  44. <version>${project.version}</version>
  45. </dependency>
  46. <!-- 权限组件 -->
  47. <dependency>
  48. <groupId>com.cyzh</groupId>
  49. <artifactId>wuye-common-security</artifactId>
  50. <version>${project.version}</version>
  51. </dependency>
  52. <!-- 设备模块 -->
  53. <dependency>
  54. <groupId>com.cyzh</groupId>
  55. <artifactId>wuye-device-api</artifactId>
  56. <version>${project.version}</version>
  57. </dependency>
  58. <!-- 统计模块 -->
  59. <dependency>
  60. <groupId>com.cyzh</groupId>
  61. <artifactId>wuye-statistics-api</artifactId>
  62. <version>${project.version}</version>
  63. </dependency>
  64. <!-- 广告模块 -->
  65. <dependency>
  66. <groupId>com.cyzh</groupId>
  67. <artifactId>wuye-ad-api</artifactId>
  68. <version>${project.version}</version>
  69. </dependency>
  70. <!-- 物业模块接口 -->
  71. <dependency>
  72. <groupId>com.cyzh</groupId>
  73. <artifactId>wuye-estate-api</artifactId>
  74. <version>${project.version}</version>
  75. </dependency>
  76. <!-- Iot物联网模块接口 -->
  77. <dependency>
  78. <groupId>com.cyzh</groupId>
  79. <artifactId>wuye-iot-api</artifactId>
  80. <version>${project.version}</version>
  81. </dependency>
  82. <!-- Iot物联网模块接口 -->
  83. <dependency>
  84. <groupId>com.cyzh</groupId>
  85. <artifactId>wuye-third-api</artifactId>
  86. <version>${project.version}</version>
  87. </dependency>
  88. <!-- 视频云模块接口 -->
  89. <dependency>
  90. <groupId>com.cyzh</groupId>
  91. <artifactId>wuye-video-cloud-api</artifactId>
  92. <version>${project.version}</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-starter-actuator</artifactId>
  97. </dependency>
  98. </dependencies>
  99. <build>
  100. <finalName>wuye-device-gateway</finalName>
  101. <pluginManagement>
  102. <plugins>
  103. <plugin>
  104. <groupId>org.springframework.boot</groupId>
  105. <artifactId>spring-boot-maven-plugin</artifactId>
  106. <version>2.0.7.RELEASE</version>
  107. <configuration>
  108. <finalName>${project.build.finalName}</finalName>
  109. <layout>ZIP</layout>
  110. <includes>
  111. <include>
  112. <groupId>nothing</groupId>
  113. <artifactId>nothing</artifactId>
  114. </include>
  115. </includes>
  116. </configuration>
  117. <executions>
  118. <execution>
  119. <goals>
  120. <goal>repackage</goal>
  121. </goals>
  122. </execution>
  123. </executions>
  124. </plugin>
  125. </plugins>
  126. </pluginManagement>
  127. <plugins>
  128. <!-- Spring Boot 打包插件( 非“Web模块”请勿引入) -->
  129. <plugin>
  130. <groupId>org.springframework.boot</groupId>
  131. <artifactId>spring-boot-maven-plugin</artifactId>
  132. </plugin>
  133. <plugin>
  134. <groupId>org.apache.maven.plugins</groupId>
  135. <artifactId>maven-dependency-plugin</artifactId>
  136. <executions>
  137. <execution>
  138. <id>copy-dependencies</id>
  139. <phase>package</phase>
  140. <goals>
  141. <goal>copy-dependencies</goal>
  142. </goals>
  143. <configuration>
  144. <!--target/lib是依赖jar包的输出目录,根据自己喜好配置-->
  145. <outputDirectory>target/lib</outputDirectory>
  146. <excludeTransitive>false</excludeTransitive>
  147. <stripVersion>false</stripVersion>
  148. <includeScope>runtime</includeScope>
  149. </configuration>
  150. </execution>
  151. </executions>
  152. </plugin>
  153. <plugin>
  154. <groupId>org.apache.maven.plugins</groupId>
  155. <artifactId>maven-resources-plugin</artifactId>
  156. <executions>
  157. <execution>
  158. <id>copy-resources</id>
  159. <phase>package</phase>
  160. <goals>
  161. <goal>copy-resources</goal>
  162. </goals>
  163. <configuration>
  164. <resources>
  165. <resource>
  166. <directory>src/main/resources</directory>
  167. </resource>
  168. </resources>
  169. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  170. </configuration>
  171. </execution>
  172. </executions>
  173. </plugin>
  174. </plugins>
  175. </build>
  176. </project>