gis数据导入mysql
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

189 lines
6.7 KiB

  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.appleyk</groupId>
  6. <artifactId>gis_geotools</artifactId>
  7. <version>0.1.1-SNAPSHOT</version>
  8. <packaging>war</packaging>
  9. <name>gis_geotools</name>
  10. <description>spring-boot集成geotools工具包,实现将几何对象写进Shapefile【文件】并读取和显示</description>
  11. <parent>
  12. <groupId>org.springframework.boot</groupId>
  13. <artifactId>spring-boot-starter-parent</artifactId>
  14. <version>2.1.4.RELEASE</version>
  15. <relativePath/> <!-- lookup parent from repository -->
  16. </parent>
  17. <properties>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  20. <java.version>1.8</java.version>
  21. <geotools.version>20.0</geotools.version>
  22. <postgresql.version>42.1.4</postgresql.version>
  23. <jackson.version>2.11.2</jackson.version>
  24. <fastjson.version>1.2.74</fastjson.version>
  25. </properties>
  26. <repositories>
  27. <repository>
  28. <id>osgeo</id>
  29. <name>OSGeo Release Repository</name>
  30. <url>https://repo.osgeo.org/repository/release/</url>
  31. <snapshots>
  32. <enabled>false</enabled>
  33. </snapshots>
  34. <releases>
  35. <enabled>true</enabled>
  36. </releases>
  37. </repository>
  38. <repository>
  39. <id>osgeo-snapshot</id>
  40. <name>OSGeo Snapshot Repository</name>
  41. <url>https://repo.osgeo.org/repository/snapshot/</url>
  42. <snapshots>
  43. <enabled>true</enabled>
  44. </snapshots>
  45. <releases>
  46. <enabled>false</enabled>
  47. </releases>
  48. </repository>
  49. </repositories>
  50. <!-- Starter POMs是可以包含到应用中的一个方便的依赖关系描述符集合 -->
  51. <!-- 该Starters包含很多你搭建项目, 快速运行所需的依赖, 并提供一致的, 管理的传递依赖集。 -->
  52. <!-- 大多数的web应用都使用spring-boot-starter-web模块进行快速搭建和运行。 -->
  53. <!-- spring-boot-starter-web -->
  54. <!-- 对全栈web开发的支持, 包括Tomcat和 spring-webmvc -->
  55. <dependencies>
  56. <dependency>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-starter-web</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-starter-test</artifactId>
  63. <scope>test</scope>
  64. </dependency>
  65. <!-- JUnit单元测试 -->
  66. <dependency>
  67. <groupId>junit</groupId>
  68. <artifactId>junit</artifactId>
  69. </dependency>
  70. <!-- 添加GeoTools依赖 -->
  71. <dependency>
  72. <groupId>org.geotools</groupId>
  73. <artifactId>gt-shapefile</artifactId>
  74. <version>${geotools.version}</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.geotools</groupId>
  78. <artifactId>gt-swing</artifactId>
  79. <version>${geotools.version}</version>
  80. </dependency>
  81. <!-- wkt转geojson -->
  82. <dependency>
  83. <groupId>org.geotools</groupId>
  84. <artifactId>gt-geojson</artifactId>
  85. <version>${geotools.version}</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.geotools.jdbc</groupId>
  89. <artifactId>gt-jdbc-mysql</artifactId>
  90. <version>${geotools.version}</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>mysql</groupId>
  94. <artifactId>mysql-connector-java</artifactId>
  95. <version>5.1.25</version>
  96. </dependency>
  97. <!-- 阿里JSON解析器 -->
  98. <dependency>
  99. <groupId>com.alibaba</groupId>
  100. <artifactId>fastjson</artifactId>
  101. <version>${fastjson.version}</version>
  102. </dependency>
  103. <!-- jackson -->
  104. <dependency>
  105. <groupId>com.fasterxml.jackson.core</groupId>
  106. <artifactId>jackson-core</artifactId>
  107. <version>${jackson.version}</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.fasterxml.jackson.core</groupId>
  111. <artifactId>jackson-annotations</artifactId>
  112. <version>${jackson.version}</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>com.fasterxml.jackson.core</groupId>
  116. <artifactId>jackson-databind</artifactId>
  117. <version>${jackson.version}</version>
  118. </dependency>
  119. </dependencies>
  120. <!-- Spring Boot包含一个Maven插件, 它可以将项目打包成一个可执行jar -->
  121. <build>
  122. <!-- 解决配置资源文件被漏掉问题 -->
  123. <resources>
  124. <!-- 如果出现thymeleaf无法渲染html模板,请加上这个 -->
  125. <resource>
  126. <directory>src/main/resources</directory>
  127. </resource>
  128. <resource>
  129. <directory>src/main/resources</directory>
  130. <includes>
  131. <include>**/*.properties</include>
  132. <include>**/*.xml</include>
  133. </includes>
  134. <filtering>false</filtering>
  135. </resource>
  136. <resource>
  137. <directory>src/main/java</directory>
  138. <includes>
  139. <include>**/*.properties</include>
  140. <include>**/*.xml</include>
  141. </includes>
  142. <filtering>false</filtering>
  143. </resource>
  144. </resources>
  145. <plugins>
  146. <plugin>
  147. <groupId>org.springframework.boot</groupId>
  148. <artifactId>spring-boot-maven-plugin</artifactId>
  149. <configuration>
  150. <fork>true</fork>
  151. </configuration>
  152. </plugin>
  153. <!-- boot-maven插件 -->
  154. <plugin>
  155. <groupId>org.springframework.boot</groupId>
  156. <artifactId>spring-boot-maven-plugin</artifactId>
  157. </plugin>
  158. <plugin>
  159. <groupId>org.apache.maven.plugins</groupId>
  160. <artifactId>maven-surefire-plugin</artifactId>
  161. <configuration>
  162. <includes>
  163. <include>**/*Documentation.java</include>
  164. </includes>
  165. </configuration>
  166. </plugin>
  167. </plugins>
  168. </build>
  169. </project>