pom.xml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  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. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.yihu.jw</groupId>
  8. <artifactId>wlyy-parent-pom</artifactId>
  9. <version>2.0.0</version>
  10. <relativePath>../../wlyy-parent-pom/pom.xml</relativePath>
  11. </parent>
  12. <groupId>com.yihu.jw</groupId>
  13. <artifactId>svr-cloud-device</artifactId>
  14. <packaging>jar</packaging>
  15. <version>${parent.version}</version>
  16. <dependencies>
  17. <dependency>
  18. <groupId>com.sun.jna</groupId>
  19. <artifactId>jna</artifactId>
  20. <version>1</version>
  21. <scope>system</scope>
  22. <systemPath>${basedir}/src/main/libs/jna.jar</systemPath>
  23. </dependency>
  24. <dependency>
  25. <groupId>com.jacob</groupId>
  26. <artifactId>jacob</artifactId>
  27. <version>1</version>
  28. <scope>system</scope>
  29. <systemPath>${basedir}/src/main/libs/jacob.jar</systemPath>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-websocket</artifactId>
  34. </dependency>
  35. <!-- 支持Tomcat启动 -->
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter-web</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-data-redis</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-starter-activemq</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.json</groupId>
  50. <artifactId>json</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.yihu.jw</groupId>
  54. <artifactId>common-entity</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.yihu.jw</groupId>
  58. <artifactId>common-rest-model</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>com.yihu.jw</groupId>
  62. <artifactId>common-request-mapping</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>com.yihu.jw</groupId>
  66. <artifactId>common-exception</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>com.yihu.jw</groupId>
  70. <artifactId>common-util</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.yihu.jw</groupId>
  74. <artifactId>common-web</artifactId>
  75. </dependency>
  76. <!-- Jzkl Starter -->
  77. <dependency>
  78. <groupId>com.yihu</groupId>
  79. <artifactId>swagger-starter</artifactId>
  80. <version>2.0.0</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>com.yihu</groupId>
  84. <artifactId>mysql-starter</artifactId>
  85. <version>2.0.0</version>
  86. <exclusions>
  87. <exclusion>
  88. <groupId>org.apache.tomcat</groupId>
  89. <artifactId>tomcat-jdbc</artifactId>
  90. </exclusion>
  91. </exclusions>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.zaxxer</groupId>
  95. <artifactId>HikariCP</artifactId>
  96. <!-- <scope>runtime</scope> -->
  97. </dependency>
  98. <dependency>
  99. <groupId>com.hikvision.ga</groupId>
  100. <artifactId>artemis-http-client</artifactId>
  101. <version>1.1.3</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>io.github.swagger2markup</groupId>
  105. <artifactId>swagger2markup</artifactId>
  106. <version>1.3.2</version>
  107. <exclusions>
  108. <exclusion>
  109. <artifactId>mailapi</artifactId>
  110. <groupId>javax.mail</groupId>
  111. </exclusion>
  112. </exclusions>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.springframework.security</groupId>
  116. <artifactId>spring-security-core</artifactId>
  117. <version>RELEASE</version>
  118. <scope>compile</scope>
  119. </dependency>
  120. <dependency>
  121. <groupId>junit</groupId>
  122. <artifactId>junit</artifactId>
  123. <version>4.12</version>
  124. <scope>test</scope>
  125. </dependency>
  126. <dependency>
  127. <groupId>net.sf.json-lib</groupId>
  128. <artifactId>json-lib</artifactId>
  129. <version>2.4</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.yihu.jw</groupId>
  133. <artifactId>im-service</artifactId>
  134. <version>2.0.0</version>
  135. <exclusions>
  136. <exclusion>
  137. <groupId>xalan</groupId>
  138. <artifactId>xalan</artifactId>
  139. </exclusion>
  140. </exclusions>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.bouncycastle</groupId>
  144. <artifactId>bcprov-ext-jdk16</artifactId>
  145. <version>1.46</version>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.apache.hadoop</groupId>
  149. <artifactId>hadoop-yarn-api</artifactId>
  150. <version>2.7.3</version>
  151. <scope>compile</scope>
  152. </dependency>
  153. <dependency>
  154. <groupId>com.yihu.jw</groupId>
  155. <artifactId>push-service</artifactId>
  156. <version>2.0.0</version>
  157. <scope>compile</scope>
  158. </dependency>
  159. <dependency>
  160. <groupId>org.eclipse.paho</groupId>
  161. <artifactId>org.eclipse.paho.client.mqttv3</artifactId>
  162. <version>1.2.5</version>
  163. </dependency>
  164. </dependencies>
  165. <build>
  166. <finalName>svr-cloud-device-test</finalName>
  167. <plugins>
  168. <plugin>
  169. <groupId>org.apache.maven.plugins</groupId>
  170. <artifactId>maven-jar-plugin</artifactId>
  171. <configuration>
  172. <archive>
  173. <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
  174. <addMavenDescriptor>false</addMavenDescriptor>
  175. <manifest>
  176. <!-- 是否要把第三方jar加入到类构建路径 -->
  177. <addClasspath>true</addClasspath>
  178. <!-- 外部依赖jar包的最终位置 -->
  179. <classpathPrefix>lib/</classpathPrefix>
  180. <mainClass>com.yihu.SvrCloudDeviceApplication</mainClass>
  181. </manifest>
  182. <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
  183. </archive>
  184. </configuration>
  185. </plugin>
  186. <!--拷贝依赖到jar外面的lib目录-->
  187. <plugin>
  188. <groupId>org.apache.maven.plugins</groupId>
  189. <artifactId>maven-dependency-plugin</artifactId>
  190. <executions>
  191. <execution>
  192. <id>copy-lib</id>
  193. <phase>package</phase>
  194. <goals>
  195. <goal>copy-dependencies</goal>
  196. </goals>
  197. <configuration>
  198. <!-- 依赖包输出目录,将来不打进jar包里 -->
  199. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  200. <excludeTransitive>false</excludeTransitive>
  201. <stripVersion>false</stripVersion>
  202. <includeScope>runtime</includeScope>
  203. </configuration>
  204. </execution>
  205. </executions>
  206. </plugin>
  207. <!--指定配置文件,将resources打成外部resource-->
  208. <plugin>
  209. <groupId>org.apache.maven.plugins</groupId>
  210. <artifactId>maven-jar-plugin</artifactId>
  211. <configuration>
  212. <archive>
  213. <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
  214. <manifestEntries>
  215. <Class-Path>resources/</Class-Path>
  216. </manifestEntries>
  217. </archive>
  218. <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
  219. <excludes>
  220. <exclude>**/*.yml</exclude>
  221. <exclude>**/*.xml</exclude>
  222. </excludes>
  223. </configuration>
  224. </plugin>
  225. <!-- 拷贝资源文件 外面的resource目录-->
  226. <plugin>
  227. <artifactId>maven-resources-plugin</artifactId>
  228. <executions>
  229. <execution>
  230. <id>copy-dependencies</id>
  231. <phase>package</phase>
  232. <goals>
  233. <goal>copy-resources</goal>
  234. </goals>
  235. <configuration>
  236. <!-- 资源文件输出目录 -->
  237. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  238. <resources>
  239. <resource>
  240. <directory>src/main/resources</directory>
  241. </resource>
  242. </resources>
  243. </configuration>
  244. </execution>
  245. </executions>
  246. </plugin>
  247. </plugins>
  248. </build>
  249. </project>