pom.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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. </dependency>
  24. <dependency>
  25. <groupId>org.projectlombok</groupId>
  26. <artifactId>lombok</artifactId>
  27. <version>1.18.10</version>
  28. <scope>provided</scope>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.scala-lang</groupId>
  32. <artifactId>scala-library</artifactId>
  33. <version>2.11.0</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.apache.spark</groupId>
  37. <artifactId>spark-core_2.11</artifactId>
  38. <version>2.3.1</version>
  39. <exclusions>
  40. <exclusion>
  41. <artifactId>netty-all</artifactId>
  42. <groupId>io.netty</groupId>
  43. </exclusion>
  44. <exclusion>
  45. <artifactId>netty-buffer</artifactId>
  46. <groupId>io.netty</groupId>
  47. </exclusion>
  48. <exclusion>
  49. <groupId>io.netty</groupId>
  50. <artifactId>netty</artifactId>
  51. </exclusion>
  52. </exclusions>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.apache.spark</groupId>
  56. <artifactId>spark-sql_2.11</artifactId>
  57. <version>2.3.1</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.apache.spark</groupId>
  61. <artifactId>spark-hive_2.11</artifactId>
  62. <version>2.3.1</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.apache.spark</groupId>
  66. <artifactId>spark-network-common_2.11</artifactId>
  67. <version>2.3.1</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>io.netty</groupId>
  71. <artifactId>netty-all</artifactId>
  72. <version>4.1.17.Final</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.codehaus.janino</groupId>
  76. <artifactId>janino</artifactId>
  77. <version>3.0.8</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>io.netty</groupId>
  81. <artifactId>netty-buffer</artifactId>
  82. <version>4.1.17.Final</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.squareup.okhttp3</groupId>
  86. <artifactId>okhttp</artifactId>
  87. <version>4.7.1</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>com.alibaba</groupId>
  91. <artifactId>fastjson</artifactId>
  92. <version>1.2.70</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.slf4j</groupId>
  96. <artifactId>slf4j-api</artifactId>
  97. <version>1.7.15</version>
  98. <exclusions>
  99. <exclusion>
  100. <artifactId>netty-all</artifactId>
  101. <groupId>io.netty</groupId>
  102. </exclusion>
  103. <exclusion>
  104. <artifactId>netty-buffer</artifactId>
  105. <groupId>io.netty</groupId>
  106. </exclusion>
  107. <exclusion>
  108. <groupId>io.netty</groupId>
  109. <artifactId>netty</artifactId>
  110. </exclusion>
  111. </exclusions>
  112. </dependency>
  113. <dependency>
  114. <groupId>com.ciphergateway</groupId>
  115. <artifactId>libCSCipher</artifactId>
  116. <version>2.2.18</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>io.netty</groupId>
  120. <artifactId>netty</artifactId>
  121. <version>3.9.9.Final</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.quartz-scheduler</groupId>
  125. <artifactId>quartz</artifactId>
  126. <version>2.3.0</version>
  127. </dependency>
  128. </dependencies>
  129. <build>
  130. <plugins>
  131. <!-- <plugin>-->
  132. <!-- <groupId>org.springframework.boot</groupId>-->
  133. <!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
  134. <!-- <configuration>-->
  135. <!-- <excludes>-->
  136. <!-- <exclude>-->
  137. <!-- <groupId>org.projectlombok</groupId>-->
  138. <!-- <artifactId>lombok</artifactId>-->
  139. <!-- </exclude>-->
  140. <!-- </excludes>-->
  141. <!-- </configuration>-->
  142. <!-- </plugin>-->
  143. <!--设置应用 Main 参数启动依赖查找的地址指向外部 lib 文件夹-->
  144. <plugin>
  145. <groupId>org.apache.maven.plugins</groupId>
  146. <artifactId>maven-jar-plugin</artifactId>
  147. <configuration>
  148. <archive>
  149. <manifest>
  150. <addClasspath>true</addClasspath>
  151. <classpathPrefix>lib/</classpathPrefix>
  152. </manifest>
  153. </archive>
  154. </configuration>
  155. </plugin>
  156. <!--设置 SpringBoot 打包插件不包含任何 Jar 依赖包-->
  157. <plugin>
  158. <groupId>org.springframework.boot</groupId>
  159. <artifactId>spring-boot-maven-plugin</artifactId>
  160. <configuration>
  161. <includes>
  162. <include>
  163. <groupId>nothing</groupId>
  164. <artifactId>nothing</artifactId>
  165. </include>
  166. </includes>
  167. </configuration>
  168. </plugin>
  169. <!--设置将 lib 拷贝到应用 Jar 外面-->
  170. <plugin>
  171. <groupId>org.apache.maven.plugins</groupId>
  172. <artifactId>maven-dependency-plugin</artifactId>
  173. <executions>
  174. <execution>
  175. <id>copy-dependencies</id>
  176. <phase>prepare-package</phase>
  177. <goals>
  178. <goal>copy-dependencies</goal>
  179. </goals>
  180. <configuration>
  181. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  182. </configuration>
  183. </execution>
  184. </executions>
  185. </plugin>
  186. </plugins>
  187. </build>
  188. </project>