pom.xml 8.8 KB

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