pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://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.3.0.RELEASE</version>
  9. <relativePath/>
  10. </parent>
  11. <groupId>com.wx</groupId>
  12. <artifactId>recom-gorse-api</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>application</name>
  15. <description>后端API</description>
  16. <properties>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  19. <java.version>1.8</java.version>
  20. <fastjson.version>1.2.73</fastjson.version>
  21. <druid.version>1.1.6</druid.version>
  22. <mybatis.plus.version>3.1.2</mybatis.plus.version>
  23. <hutool.version>5.8.4</hutool.version>
  24. <maven-jar-plugin.version>3.0.0</maven-jar-plugin.version>
  25. <jwt.version>0.10.7</jwt.version>
  26. <neo4j.ogm.version>3.2.1</neo4j.ogm.version>
  27. </properties>
  28. <dependencies>
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-starter</artifactId>
  32. <exclusions>
  33. <exclusion>
  34. <groupId>org.apache.logging.log4j</groupId>
  35. <artifactId>log4j-api</artifactId>
  36. </exclusion>
  37. <exclusion>
  38. <groupId>org.apache.logging.log4j</groupId>
  39. <artifactId>log4j-to-slf4j</artifactId>
  40. </exclusion>
  41. </exclusions>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-starter-web</artifactId>
  46. <exclusions>
  47. <exclusion>
  48. <groupId>org.apache.logging.log4j</groupId>
  49. <artifactId>log4j-api</artifactId>
  50. </exclusion>
  51. <exclusion>
  52. <groupId>org.apache.logging.log4j</groupId>
  53. <artifactId>log4j-to-slf4j</artifactId>
  54. </exclusion>
  55. </exclusions>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-starter-validation</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-devtools</artifactId>
  64. <scope>runtime</scope>
  65. <optional>true</optional>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.springframework.boot</groupId>
  69. <artifactId>spring-boot-configuration-processor</artifactId>
  70. <optional>true</optional>
  71. </dependency>
  72. <!-- redis -->
  73. <!-- <dependency>
  74. <groupId>org.redisson</groupId>
  75. <artifactId>redisson-spring-boot-starter</artifactId>
  76. <version>3.13.1</version>
  77. </dependency> -->
  78. <dependency>
  79. <groupId>org.springframework.boot</groupId>
  80. <artifactId>spring-boot-starter-aop</artifactId>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.projectlombok</groupId>
  84. <artifactId>lombok</artifactId>
  85. <optional>true</optional>
  86. </dependency>
  87. <dependency>
  88. <groupId>mysql</groupId>
  89. <artifactId>mysql-connector-java</artifactId>
  90. </dependency>
  91. <dependency>
  92. <groupId>com.alibaba</groupId>
  93. <artifactId>fastjson</artifactId>
  94. <version>${fastjson.version}</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>com.alibaba</groupId>
  98. <artifactId>druid</artifactId>
  99. <version>${druid.version}</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>com.baomidou</groupId>
  103. <artifactId>mybatis-plus-boot-starter</artifactId>
  104. <version>${mybatis.plus.version}</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>cn.hutool</groupId>
  108. <artifactId>hutool-all</artifactId>
  109. <version>${hutool.version}</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.apache.commons</groupId>
  113. <artifactId>commons-lang3</artifactId>
  114. </dependency>
  115. <dependency>
  116. <groupId>commons-lang</groupId>
  117. <artifactId>commons-lang</artifactId>
  118. <version>2.6</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>com.google.guava</groupId>
  122. <artifactId>guava</artifactId>
  123. <version>28.0-jre</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>junit</groupId>
  127. <artifactId>junit</artifactId>
  128. <scope>test</scope>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.springframework.boot</groupId>
  132. <artifactId>spring-boot-starter-test</artifactId>
  133. <scope>test</scope>
  134. <exclusions>
  135. <exclusion>
  136. <groupId>org.junit.vintage</groupId>
  137. <artifactId>junit-vintage-engine</artifactId>
  138. </exclusion>
  139. <exclusion>
  140. <groupId>org.apache.logging.log4j</groupId>
  141. <artifactId>log4j-api</artifactId>
  142. </exclusion>
  143. <exclusion>
  144. <groupId>org.apache.logging.log4j</groupId>
  145. <artifactId>log4j-to-slf4j</artifactId>
  146. </exclusion>
  147. </exclusions>
  148. </dependency>
  149. <!--模板生成引擎 -->
  150. <dependency>
  151. <groupId>com.baomidou</groupId>
  152. <artifactId>mybatis-plus-generator</artifactId>
  153. <version>3.2.0</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>org.apache.velocity</groupId>
  157. <artifactId>velocity-engine-core</artifactId>
  158. <version>2.1</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>org.bouncycastle</groupId>
  162. <artifactId>bcprov-jdk16</artifactId>
  163. <version>1.46</version>
  164. </dependency>
  165. <!--jwt -->
  166. <dependency>
  167. <groupId>io.jsonwebtoken</groupId>
  168. <artifactId>jjwt-api</artifactId>
  169. <version>${jwt.version}</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>io.jsonwebtoken</groupId>
  173. <artifactId>jjwt-impl</artifactId>
  174. <version>${jwt.version}</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>io.jsonwebtoken</groupId>
  178. <artifactId>jjwt-jackson</artifactId>
  179. <version>${jwt.version}</version>
  180. </dependency>
  181. <!-- <dependency>
  182. <groupId>org.apache.poi</groupId>
  183. <artifactId>poi</artifactId>
  184. <version>4.1.0</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.apache.poi</groupId>
  188. <artifactId>poi-ooxml-schemas</artifactId>
  189. <version>4.1.0</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>org.apache.poi</groupId>
  193. <artifactId>poi-ooxml</artifactId>
  194. <version>4.1.0</version>
  195. </dependency>
  196. <dependency>
  197. <groupId>org.apache.poi</groupId>
  198. <artifactId>poi-scratchpad</artifactId>
  199. <version>4.1.0</version>
  200. </dependency> -->
  201. <dependency>
  202. <groupId>org.apache.poi</groupId>
  203. <artifactId>poi-scratchpad</artifactId>
  204. <version>5.0.0</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>org.apache.poi</groupId>
  208. <artifactId>poi</artifactId>
  209. <version>5.0.0</version>
  210. </dependency>
  211. <dependency>
  212. <groupId>org.apache.poi</groupId>
  213. <artifactId>poi-ooxml</artifactId>
  214. <version>5.0.0</version>
  215. </dependency>
  216. <dependency>
  217. <groupId>org.apache.xmlbeans</groupId>
  218. <artifactId>xmlbeans</artifactId>
  219. <version>5.0.0</version>
  220. </dependency>
  221. <dependency>
  222. <groupId>org.apache.poi</groupId>
  223. <artifactId>poi-ooxml-schemas</artifactId>
  224. <version>4.1.2</version>
  225. </dependency>
  226. <dependency>
  227. <groupId>net.sourceforge.javacsv</groupId>
  228. <artifactId>javacsv</artifactId>
  229. <version>2.0</version>
  230. </dependency>
  231. <dependency>
  232. <groupId>com.baomidou</groupId>
  233. <artifactId>kaptcha-spring-boot-starter</artifactId>
  234. <version>1.0.0</version>
  235. </dependency>
  236. <!--腾讯云依赖包-->
  237. <dependency>
  238. <groupId>com.tencent.cloud</groupId>
  239. <artifactId>cos-sts-java</artifactId>
  240. <version>3.0.6</version>
  241. </dependency>
  242. <dependency>
  243. <groupId>com.qcloud</groupId>
  244. <artifactId>cos_api</artifactId>
  245. <version>5.6.19</version>
  246. </dependency>
  247. <dependency>
  248. <groupId>com.google.zxing</groupId>
  249. <artifactId>core</artifactId>
  250. <version>3.4.0</version>
  251. </dependency>
  252. <dependency>
  253. <groupId>com.google.zxing</groupId>
  254. <artifactId>javase</artifactId>
  255. <version>3.4.0</version>
  256. </dependency>
  257. <dependency>
  258. <groupId>com.tencentcloudapi</groupId>
  259. <artifactId>tencentcloud-sdk-java</artifactId>
  260. <version>3.1.37</version><!-- 注:此处仅为示例版本号,请访问 https://mvnrepository.com/artifact/com.tencentcloudapi/tencentcloud-sdk-java 获取最新版本号并替换 -->
  261. </dependency>
  262. <dependency>
  263. <groupId>com.alibaba</groupId>
  264. <artifactId>easyexcel</artifactId>
  265. <version>2.1.6</version>
  266. </dependency>
  267. <dependency>
  268. <groupId>com.carrotsearch</groupId>
  269. <artifactId>hppc</artifactId>
  270. <version>0.8.2</version>
  271. </dependency>
  272. <dependency>
  273. <groupId>com.vesoft</groupId>
  274. <artifactId>client</artifactId>
  275. <version>3.0.0</version>
  276. </dependency>
  277. <dependency>
  278. <groupId>org.apache.httpcomponents</groupId>
  279. <artifactId>httpcore</artifactId>
  280. </dependency>
  281. <dependency>
  282. <groupId>org.apache.httpcomponents</groupId>
  283. <artifactId>httpclient</artifactId>
  284. </dependency>
  285. <dependency>
  286. <groupId>org.apache.httpcomponents</groupId>
  287. <artifactId>httpmime</artifactId>
  288. </dependency>
  289. </dependencies>
  290. <build>
  291. <finalName>recom-gorse</finalName>
  292. <!--需要移除的模块 -->
  293. <resources>
  294. <resource>
  295. <directory>src/main/resources</directory>
  296. <filtering>true</filtering>
  297. <excludes>
  298. <exclude>static/css/**</exclude>
  299. <exclude>static/data/**</exclude>
  300. <exclude>static/docs/**</exclude>
  301. <exclude>static/fonts/**</exclude>
  302. <exclude>static/img/**</exclude>
  303. <exclude>static/plugins/**</exclude>
  304. <exclude>static/view/**</exclude>
  305. </excludes>
  306. </resource>
  307. </resources>
  308. <plugins>
  309. <!--最后一阶段再移除模板包-->
  310. <plugin>
  311. <artifactId>maven-jar-plugin</artifactId>
  312. <configuration>
  313. <excludes>
  314. <exclude>_templates/**</exclude>
  315. </excludes>
  316. </configuration>
  317. </plugin>
  318. <plugin>
  319. <artifactId>maven-resources-plugin</artifactId>
  320. <configuration>
  321. <delimiters>
  322. <delimiter>@</delimiter>
  323. </delimiters>
  324. <useDefaultDelimiters>false</useDefaultDelimiters>
  325. </configuration>
  326. <executions>
  327. <execution>
  328. <!--转移配置-->
  329. <id>copy-application-yml</id>
  330. <phase>deploy</phase>
  331. <goals>
  332. <goal>copy-resources</goal>
  333. </goals>
  334. <configuration>
  335. <outputDirectory>${basedir}/target</outputDirectory>
  336. <resources>
  337. <resource>
  338. <directory>src/main/resources</directory>
  339. <includes>
  340. <include>config.properties</include>
  341. </includes>
  342. </resource>
  343. </resources>
  344. </configuration>
  345. </execution>
  346. <execution>
  347. <id>copy-zips</id>
  348. <phase>process-sources</phase>
  349. <goals>
  350. <goal>copy-resources</goal>
  351. </goals>
  352. <configuration>
  353. <outputDirectory>${basedir}/target/classes</outputDirectory>
  354. <resources>
  355. <!--拷贝点资源文件进jar-->
  356. </resources>
  357. </configuration>
  358. </execution>
  359. </executions>
  360. </plugin>
  361. <plugin>
  362. <artifactId>maven-compiler-plugin</artifactId>
  363. <configuration>
  364. <target>${java.version}</target>
  365. <source>${java.version}</source>
  366. <encoding>UTF-8</encoding>
  367. <showWarnings>false</showWarnings>
  368. <showDeprecation>false</showDeprecation>
  369. </configuration>
  370. </plugin>
  371. <plugin>
  372. <groupId>org.springframework.boot</groupId>
  373. <artifactId>spring-boot-maven-plugin</artifactId>
  374. <configuration>
  375. <fork>true</fork>
  376. </configuration>
  377. <executions>
  378. <execution>
  379. <goals>
  380. <goal>repackage</goal>
  381. </goals>
  382. <configuration>
  383. <mainClass>com.wx.application.Application</mainClass>
  384. </configuration>
  385. </execution>
  386. </executions>
  387. </plugin>
  388. </plugins>
  389. </build>
  390. <profiles>
  391. <profile>
  392. <id>dev</id>
  393. <properties>
  394. <jdbc_url>jdbc:mysql://43.139.83.67:13306/recom-gorse</jdbc_url>
  395. <db_username>root</db_username>
  396. <db_password>AJuSP7F7VTRvm7rk</db_password>
  397. <server_port>4026</server_port>
  398. <logs_path>./logs/</logs_path>
  399. <mybatis_plus_sql_show_format>true</mybatis_plus_sql_show_format>
  400. <upload_graph_path>D:/nebulagraph/</upload_graph_path>
  401. <zbx_path>D:/myReadCSV/southeastuniversity/jszb/</zbx_path>
  402. <nebula_grap>true</nebula_grap>
  403. <nebula_session_host>43.139.83.67</nebula_session_host>
  404. <nebula_session_port>9669</nebula_session_port>
  405. <nebula_session_username>root</nebula_session_username>
  406. <nebula_session_password>123456</nebula_session_password>
  407. </properties>
  408. <activation>
  409. <activeByDefault>true</activeByDefault>
  410. </activation>
  411. </profile>
  412. </profiles>
  413. </project>