pom.xml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.4.0</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.jkcredit.traffic.record</groupId>
  12. <artifactId>traffic-record</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>traffic-record</name>
  15. <description>Demo project for Spring Boot</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-web</artifactId>
  23. <exclusions>
  24. <exclusion>
  25. <groupId>org.apache.logging.log4j</groupId>
  26. <artifactId>log4j-api</artifactId>
  27. </exclusion>
  28. <exclusion>
  29. <groupId>org.apache.logging.log4j</groupId>
  30. <artifactId>log4j-to-slf4j</artifactId>
  31. </exclusion>
  32. </exclusions>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.projectlombok</groupId>
  36. <artifactId>lombok</artifactId>
  37. <version>1.18.10</version>
  38. <scope>provided</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.scala-lang</groupId>
  42. <artifactId>scala-library</artifactId>
  43. <version>2.11.0</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.apache.spark</groupId>
  47. <artifactId>spark-core_2.11</artifactId>
  48. <version>2.3.1</version>
  49. <exclusions>
  50. <exclusion>
  51. <artifactId>netty-all</artifactId>
  52. <groupId>io.netty</groupId>
  53. </exclusion>
  54. <exclusion>
  55. <artifactId>netty-buffer</artifactId>
  56. <groupId>io.netty</groupId>
  57. </exclusion>
  58. <exclusion>
  59. <groupId>io.netty</groupId>
  60. <artifactId>netty</artifactId>
  61. </exclusion>
  62. </exclusions>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.apache.spark</groupId>
  66. <artifactId>spark-sql_2.11</artifactId>
  67. <version>2.3.1</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.apache.spark</groupId>
  71. <artifactId>spark-hive_2.11</artifactId>
  72. <version>2.3.1</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.apache.spark</groupId>
  76. <artifactId>spark-network-common_2.11</artifactId>
  77. <version>2.3.1</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>io.netty</groupId>
  81. <artifactId>netty-all</artifactId>
  82. <version>4.1.17.Final</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.codehaus.janino</groupId>
  86. <artifactId>janino</artifactId>
  87. <version>3.0.8</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>io.netty</groupId>
  91. <artifactId>netty-buffer</artifactId>
  92. <version>4.1.17.Final</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>com.squareup.okhttp3</groupId>
  96. <artifactId>okhttp</artifactId>
  97. <version>4.7.1</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>com.alibaba</groupId>
  101. <artifactId>fastjson</artifactId>
  102. <version>1.2.70</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.slf4j</groupId>
  106. <artifactId>slf4j-api</artifactId>
  107. <version>1.7.15</version>
  108. <exclusions>
  109. <exclusion>
  110. <artifactId>netty-all</artifactId>
  111. <groupId>io.netty</groupId>
  112. </exclusion>
  113. <exclusion>
  114. <artifactId>netty-buffer</artifactId>
  115. <groupId>io.netty</groupId>
  116. </exclusion>
  117. <exclusion>
  118. <groupId>io.netty</groupId>
  119. <artifactId>netty</artifactId>
  120. </exclusion>
  121. </exclusions>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.ciphergateway</groupId>
  125. <artifactId>libCSCipher</artifactId>
  126. <version>2.2.18</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>io.netty</groupId>
  130. <artifactId>netty</artifactId>
  131. <version>3.9.9.Final</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.quartz-scheduler</groupId>
  135. <artifactId>quartz</artifactId>
  136. <version>2.3.0</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.apache.logging.log4j</groupId>
  140. <artifactId>log4j-api</artifactId>
  141. <version>2.17.0</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.apache.logging.log4j</groupId>
  145. <artifactId>log4j-to-slf4j</artifactId>
  146. <version>2.17.0</version>
  147. </dependency>
  148. </dependencies>
  149. <build>
  150. <plugins>
  151. <!-- <plugin>-->
  152. <!-- <groupId>org.springframework.boot</groupId>-->
  153. <!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
  154. <!-- <configuration>-->
  155. <!-- <excludes>-->
  156. <!-- <exclude>-->
  157. <!-- <groupId>org.projectlombok</groupId>-->
  158. <!-- <artifactId>lombok</artifactId>-->
  159. <!-- </exclude>-->
  160. <!-- </excludes>-->
  161. <!-- </configuration>-->
  162. <!-- </plugin>-->
  163. <!--设置应用 Main 参数启动依赖查找的地址指向外部 lib 文件夹-->
  164. <plugin>
  165. <groupId>org.apache.maven.plugins</groupId>
  166. <artifactId>maven-jar-plugin</artifactId>
  167. <configuration>
  168. <archive>
  169. <manifest>
  170. <addClasspath>true</addClasspath>
  171. <classpathPrefix>lib/</classpathPrefix>
  172. </manifest>
  173. </archive>
  174. </configuration>
  175. </plugin>
  176. <!--设置 SpringBoot 打包插件不包含任何 Jar 依赖包-->
  177. <plugin>
  178. <groupId>org.springframework.boot</groupId>
  179. <artifactId>spring-boot-maven-plugin</artifactId>
  180. <configuration>
  181. <includes>
  182. <include>
  183. <groupId>nothing</groupId>
  184. <artifactId>nothing</artifactId>
  185. </include>
  186. </includes>
  187. </configuration>
  188. </plugin>
  189. <!--设置将 lib 拷贝到应用 Jar 外面-->
  190. <plugin>
  191. <groupId>org.apache.maven.plugins</groupId>
  192. <artifactId>maven-dependency-plugin</artifactId>
  193. <executions>
  194. <execution>
  195. <id>copy-dependencies</id>
  196. <phase>prepare-package</phase>
  197. <goals>
  198. <goal>copy-dependencies</goal>
  199. </goals>
  200. <configuration>
  201. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  202. </configuration>
  203. </execution>
  204. </executions>
  205. </plugin>
  206. </plugins>
  207. </build>
  208. </project>