pom.xml 9.1 KB

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