pom.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>org.mylib</groupId>
  7. <artifactId>GeoLib</artifactId>
  8. <version>1.0</version>
  9. <!-- 打包类型 -->
  10. <packaging>jar</packaging>
  11. <properties>
  12. <!-- 文件拷贝时的编码 -->
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  15. <!-- 编译时的编码 -->
  16. <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  17. <!-- JAVA版本 -->
  18. <java.version>1.8</java.version>
  19. <geotools.version>28.1</geotools.version>
  20. </properties>
  21. <dependencies>
  22. <dependency>
  23. <groupId>org.geotools.jdbc</groupId>
  24. <artifactId>gt-jdbc-postgis</artifactId>
  25. <version>${geotools.version}</version>
  26. </dependency>
  27. <!-- geo-tools相关的依赖 -->
  28. <dependency>
  29. <groupId>org.geotools</groupId>
  30. <artifactId>gt-shapefile</artifactId>
  31. <version>${geotools.version}</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.geotools</groupId>
  35. <artifactId>gt-swing</artifactId>
  36. <version>${geotools.version}</version>
  37. </dependency>
  38. <!-- geojson支持 -->
  39. <dependency>
  40. <groupId>org.geotools</groupId>
  41. <artifactId>gt-geojson</artifactId>
  42. <version>${geotools.version}</version>
  43. </dependency>
  44. <!-- 绘图 -->
  45. <dependency>
  46. <groupId>org.geotools</groupId>
  47. <artifactId>gt-render</artifactId>
  48. <version>${geotools.version}</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.geotools.ogc</groupId>
  52. <artifactId>net.opengis.wfs</artifactId>
  53. <version>${geotools.version}</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.geotools</groupId>
  57. <artifactId>gt-wfs-ng</artifactId>
  58. <version>${geotools.version}</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.geotools.xsd</groupId>
  62. <artifactId>gt-xsd-wfs</artifactId>
  63. <version>${geotools.version}</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.geotools</groupId>
  67. <artifactId>gt-epsg-hsql</artifactId>
  68. <version>${geotools.version}</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.geotools</groupId>
  72. <artifactId>gt-referencing</artifactId>
  73. <version>${geotools.version}</version>
  74. </dependency>
  75. <!--geotools使用 end-->
  76. <!--geoserver使用 end-->
  77. </dependencies>
  78. <repositories><repository>
  79. <id>osgeo</id>
  80. <name>OSGeo Release Repository</name>
  81. <url>https://repo.osgeo.org/repository/release/</url>
  82. <snapshots><enabled>false</enabled></snapshots>
  83. <releases><enabled>true</enabled></releases>
  84. </repository>
  85. </repositories>
  86. <build>
  87. <plugins>
  88. <plugin>
  89. <groupId>org.apache.maven.plugins</groupId>
  90. <artifactId>maven-compiler-plugin</artifactId>
  91. <configuration>
  92. <source>1.8</source>
  93. <target>1.8</target>
  94. <encoding>UTF-8</encoding>
  95. </configuration>
  96. </plugin>
  97. </plugins>
  98. </build>
  99. </project>