pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  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.1.4.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.shcd.gh</groupId>
  12. <artifactId>timework</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>timework</name>
  15. <properties>
  16. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  18. <java.version>1.8</java.version>
  19. <commons-lang3.version>3.4</commons-lang3.version>
  20. <jwt.version>3.2.0</jwt.version>
  21. <guava.version>27.0.1-jre</guava.version>
  22. <fastjson.version>1.2.83</fastjson.version>
  23. <skipTests>true</skipTests> <!--mvn命令打包跳过test-->
  24. <kotlin.version>1.3.71</kotlin.version>
  25. <geotools.version>28-SNAPSHOT</geotools.version>
  26. </properties>
  27. <dependencies>
  28. <dependency>
  29. <groupId>com.xuxueli</groupId>
  30. <artifactId>xxl-job-core</artifactId>
  31. <version>2.1.2</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.geotools</groupId>
  35. <artifactId>gt-geojson</artifactId>
  36. <version>27.2</version>
  37. </dependency>
  38. <!-- https://mvnrepository.com/artifact/org.locationtech.jts/jts-core -->
  39. <dependency>
  40. <groupId>org.locationtech.jts</groupId>
  41. <artifactId>jts-core</artifactId>
  42. <version>1.19.0</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.geotools</groupId>
  46. <artifactId>gt-shapefile</artifactId>
  47. <version>${geotools.version}</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.geotools</groupId>
  51. <artifactId>gt-swing</artifactId>
  52. <version>${geotools.version}</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.geotools</groupId>
  56. <artifactId>gt-epsg-hsql</artifactId>
  57. <version>${geotools.version}</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.apache.commons</groupId>
  61. <artifactId>commons-io</artifactId>
  62. <version>1.3.2</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>com.hikvision.ga</groupId>
  66. <artifactId>artemis-http-client</artifactId>
  67. <version>1.1.3</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-starter-webflux</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.baomidou</groupId>
  75. <artifactId>mybatis-plus-boot-starter</artifactId>
  76. <version>3.4.1</version>
  77. </dependency>
  78. <!--数据库连接驱动 连接配置修改时间-->
  79. <!--模板引擎-->
  80. <dependency>
  81. <groupId>org.apache.velocity</groupId>
  82. <artifactId>velocity-engine-core</artifactId>
  83. <version>2.2</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>com.baomidou</groupId>
  87. <artifactId>mybatis-plus-generator</artifactId>
  88. <version>3.3.0</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.springframework.boot</groupId>
  92. <artifactId>spring-boot-starter-freemarker</artifactId>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-starter-aop</artifactId>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.shanghaigeography</groupId>
  100. <artifactId>Infrastructure</artifactId>
  101. <version>1.1-SNAPSHOT</version>
  102. <scope>system</scope>
  103. <systemPath>${project.basedir}/libs/Infrastructure-1.1-SNAPSHOT.jar</systemPath>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.springframework.boot</groupId>
  107. <artifactId>spring-boot-starter</artifactId>
  108. <scope>test</scope>
  109. </dependency>
  110. <dependency>
  111. <groupId>net.java.dev.jna</groupId>
  112. <artifactId>jna</artifactId>
  113. <scope>system</scope>
  114. <systemPath>${pom.basedir}/libs/jna.jar</systemPath>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.springframework.boot</groupId>
  118. <artifactId>spring-boot-starter-logging</artifactId>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.springframework.boot</groupId>
  122. <artifactId>spring-boot-starter-test</artifactId>
  123. <scope>test</scope>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.springframework.boot</groupId>
  127. <artifactId>spring-boot-starter-web</artifactId>
  128. </dependency>
  129. <!--移除内嵌的Tomcat-->
  130. <dependency>
  131. <groupId>org.springframework.boot</groupId>
  132. <artifactId>spring-boot-starter-tomcat</artifactId>
  133. <!-- <scope>provided</scope>-->
  134. </dependency>
  135. <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
  136. <dependency>
  137. <groupId>org.apache.commons</groupId>
  138. <artifactId>commons-lang3</artifactId>
  139. <version>${commons-lang3.version}</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>com.alibaba</groupId>
  143. <artifactId>fastjson</artifactId>
  144. <version>${fastjson.version}</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.springframework.boot</groupId>
  148. <artifactId>spring-boot</artifactId>
  149. </dependency>
  150. <dependency>
  151. <groupId>de.codecentric</groupId>
  152. <artifactId>spring-boot-admin-starter-client</artifactId>
  153. <version>2.2.1</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>org.springframework.boot</groupId>
  157. <artifactId>spring-boot-autoconfigure</artifactId>
  158. </dependency>
  159. <dependency>
  160. <groupId>com.oracle</groupId>
  161. <artifactId>ojdbc6</artifactId>
  162. <version>11.2.0.4.0</version>
  163. <scope>system</scope>
  164. <systemPath>${pom.basedir}/libs/ojdbc6.jar</systemPath>
  165. </dependency>
  166. <!-- redis-->
  167. <dependency>
  168. <groupId>org.springframework.boot</groupId>
  169. <artifactId>spring-boot-starter-data-redis</artifactId>
  170. </dependency>
  171. <!-- https://mvnrepository.com/artifact/org.json/json -->
  172. <dependency>
  173. <groupId>org.json</groupId>
  174. <artifactId>json</artifactId>
  175. <version>20180813</version>
  176. </dependency>
  177. <!-- https://mvnrepository.com/artifact/net.sf.json-lib/json-lib -->
  178. <dependency>
  179. <groupId>net.sf.json-lib</groupId>
  180. <artifactId>json-lib</artifactId>
  181. <version>2.4</version>
  182. <classifier>jdk15</classifier>
  183. </dependency>
  184. <!-- https://mvnrepository.com/artifact/log4j/log4j -->
  185. <dependency>
  186. <groupId>log4j</groupId>
  187. <artifactId>log4j</artifactId>
  188. <version>1.2.17</version>
  189. </dependency>
  190. <dependency>
  191. <groupId>commons-httpclient</groupId>
  192. <artifactId>commons-httpclient</artifactId>
  193. <version>3.1</version>
  194. </dependency>
  195. <dependency>
  196. <groupId>com.github.pagehelper</groupId>
  197. <artifactId>pagehelper-spring-boot-starter</artifactId>
  198. <version>1.2.13</version>
  199. </dependency>
  200. <!--lombok 在实体类上面添加@Data 可以自动生成get、set、toString等方法-->
  201. <dependency>
  202. <groupId>org.projectlombok</groupId>
  203. <artifactId>lombok</artifactId>
  204. <version>1.16.10</version>
  205. </dependency>
  206. <!-- httpClient -->
  207. <dependency>
  208. <groupId>org.apache.httpcomponents</groupId>
  209. <artifactId>httpclient</artifactId>
  210. <version>4.5.2</version>
  211. </dependency>
  212. <dependency>
  213. <groupId>org.junit.jupiter</groupId>
  214. <artifactId>junit-jupiter</artifactId>
  215. <version>RELEASE</version>
  216. <scope>compile</scope>
  217. </dependency>
  218. <dependency>
  219. <groupId>cn.hutool</groupId>
  220. <artifactId>hutool-all</artifactId>
  221. <version>5.5.2</version>
  222. </dependency>
  223. <!-- Pull in as a traditional dependency -->
  224. <dependency>
  225. <groupId>com.konghq</groupId>
  226. <artifactId>unirest-java</artifactId>
  227. <version>3.11.11</version>
  228. </dependency>
  229. <!-- OR as a snazzy new standalone jar with shaded dependencies -->
  230. <dependency>
  231. <groupId>com.konghq</groupId>
  232. <artifactId>unirest-java</artifactId>
  233. <version>3.11.11</version>
  234. <classifier>standalone</classifier>
  235. </dependency>
  236. </dependencies>
  237. <repositories>
  238. <repository>
  239. <id>osgeo</id>
  240. <name>OSGeo Release Repository</name>
  241. <url>https://repo.osgeo.org/repository/release/</url>
  242. <snapshots>
  243. <enabled>false</enabled>
  244. </snapshots>
  245. <releases>
  246. <enabled>true</enabled>
  247. </releases>
  248. </repository>
  249. <repository>
  250. <id>osgeo-snapshot</id>
  251. <name>OSGeo Snapshot Repository</name>
  252. <url>https://repo.osgeo.org/repository/snapshot/</url>
  253. <snapshots>
  254. <enabled>true</enabled>
  255. </snapshots>
  256. <releases>
  257. <enabled>false</enabled>
  258. </releases>
  259. </repository>
  260. </repositories>
  261. <profiles>
  262. <profile>
  263. <!-- 本地开发环境 -->
  264. <id>dev</id>
  265. <properties>
  266. <profiles.active>dev</profiles.active>
  267. </properties>
  268. </profile>
  269. <profile>
  270. <!-- 测试环境 -->
  271. <id>test</id>
  272. <properties>
  273. <profiles.active>test</profiles.active>
  274. </properties>
  275. </profile>
  276. </profiles>
  277. <build>
  278. <finalName>DredgingImport</finalName>
  279. <plugins>
  280. <plugin>
  281. <groupId>org.springframework.boot</groupId>
  282. <artifactId>spring-boot-maven-plugin</artifactId>
  283. <version>2.0.3.RELEASE</version>
  284. <configuration>
  285. <includeSystemScope>true</includeSystemScope>
  286. <mainClass>com.shcd.GHJGApplication</mainClass>
  287. </configuration>
  288. <executions>
  289. <execution>
  290. <goals>
  291. <goal>repackage</goal>
  292. </goals>
  293. </execution>
  294. </executions>
  295. </plugin>
  296. <plugin>
  297. <groupId>org.apache.maven.plugins</groupId>
  298. <artifactId>maven-dependency-plugin</artifactId>
  299. <version>2.10</version>
  300. <executions>
  301. <execution>
  302. <id>copy-dependencies</id>
  303. <phase>compile</phase>
  304. <goals>
  305. <goal>copy-dependencies</goal>
  306. </goals>
  307. <configuration>
  308. <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/lib</outputDirectory>
  309. <includeScope>system</includeScope>
  310. </configuration>
  311. </execution>
  312. </executions>
  313. </plugin>
  314. <plugin>
  315. <groupId>org.jetbrains.kotlin</groupId>
  316. <artifactId>kotlin-maven-plugin</artifactId>
  317. <version>${kotlin.version}</version>
  318. <executions>
  319. <execution>
  320. <id>compile</id>
  321. <phase>compile</phase>
  322. <goals>
  323. <goal>compile</goal>
  324. </goals>
  325. </execution>
  326. <execution>
  327. <id>test-compile</id>
  328. <phase>test-compile</phase>
  329. <goals>
  330. <goal>test-compile</goal>
  331. </goals>
  332. </execution>
  333. </executions>
  334. <configuration>
  335. <jvmTarget>1.8</jvmTarget>
  336. </configuration>
  337. </plugin>
  338. <plugin>
  339. <groupId>org.apache.maven.plugins</groupId>
  340. <artifactId>maven-compiler-plugin</artifactId>
  341. <version>3.8.1</version>
  342. <executions>
  343. <execution>
  344. <id>compile</id>
  345. <phase>compile</phase>
  346. <goals>
  347. <goal>compile</goal>
  348. </goals>
  349. </execution>
  350. <execution>
  351. <id>testCompile</id>
  352. <phase>test-compile</phase>
  353. <goals>
  354. <goal>testCompile</goal>
  355. </goals>
  356. </execution>
  357. </executions>
  358. <configuration>
  359. <source>1.8</source>
  360. <target>1.8</target>
  361. <encoding>UTF-8</encoding>
  362. </configuration>
  363. </plugin>
  364. </plugins>
  365. <resources>
  366. <resource>
  367. <directory>src/main/java</directory>
  368. <!-- 此配置不可缺,否则mybatis的Mapper.xml将会丢失 -->
  369. <includes>
  370. <include>**/*.xml</include>
  371. </includes>
  372. </resource>
  373. <resource>
  374. <!--打包时先排除不必要的文件,想要指定加入的再下面的resource指定-->
  375. <directory>${project.basedir}/src/main/resources</directory>
  376. <excludes>
  377. <exclude>profile/**</exclude>
  378. </excludes>
  379. </resource>
  380. <resource>
  381. <!-- 根据不同的环境,把对应文件夹里的配置文件打包-->
  382. <directory>${project.basedir}/src/main/resources/profile/${profiles.active}</directory>
  383. <filtering>true</filtering>
  384. </resource>
  385. </resources>
  386. </build>
  387. </project>