当前位置:   article > 正文

geotools相关maven 引入_geotools maven

geotools maven
  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>org.geotools</groupId>
  6. <artifactId>tutorial1</artifactId>
  7. <version>1.0-SNAPSHOT</version>
  8. <name>tutorial1</name>
  9. <!-- FIXME change it to the project's website -->
  10. <url>http://www.example.com</url>
  11. <properties>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <maven.compiler.source>1.7</maven.compiler.source>
  14. <maven.compiler.target>1.7</maven.compiler.target>
  15. <geotools.version>29-SNAPSHOT</geotools.version>
  16. <maven.deploy.skip>true</maven.deploy.skip>
  17. </properties>
  18. <repositories>
  19. <repository>
  20. <id>maven2-repository.dev.java.net</id>
  21. <name>Java.net repository</name>
  22. <url>http://download.java.net/maven/2</url>
  23. </repository>
  24. <!-- <repository>-->
  25. <!-- <id>osgeo</id>-->
  26. <!-- <name>OSGeo Release Repository</name>-->
  27. <!-- <url> https://repo.osgeo.org/repository/release/</url>-->
  28. <!-- <snapshots><enabled>false</enabled></snapshots>-->
  29. <!-- <releases><enabled>true</enabled></releases>-->
  30. <!-- </repository>-->
  31. <repository>
  32. <id>osgeo</id>
  33. <name>Open Source Geospatial Foundation Repository</name>
  34. <url>http://download.osgeo.org/webdav/geotools/</url>
  35. </repository>
  36. <repository>
  37. <id>osgeo-snapshot</id>
  38. <name>OSGeo Release Repository</name>
  39. <url> https://repo.osgeo.org/repository/snapshot/</url>
  40. <snapshots><enabled>true</enabled></snapshots>
  41. <releases><enabled>false</enabled></releases>
  42. </repository>
  43. <repository>
  44. <snapshots>
  45. <enabled>true</enabled>
  46. </snapshots>
  47. <id>boundless</id>
  48. <name>Boundless Maven Repository</name>
  49. <url>http://repo.boundlessgeo.com/main</url>
  50. </repository>
  51. </repositories>
  52. <dependencies>
  53. <dependency>
  54. <groupId>junit</groupId>
  55. <artifactId>junit</artifactId>
  56. <version>4.11</version>
  57. <scope>test</scope>
  58. </dependency>
  59. <dependency>
  60. <groupId>junit</groupId>
  61. <artifactId>junit</artifactId>
  62. <version>4.13.2</version>
  63. <scope>test</scope>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.geotools</groupId>
  67. <artifactId>gt-shapefile</artifactId>
  68. <version>${geotools.version}</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.geotools</groupId>
  72. <artifactId>gt-swing</artifactId>
  73. <version>${geotools.version}</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.geotools</groupId>
  77. <artifactId>gt-geotiff</artifactId>
  78. <version>${geotools.version}</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.geotools</groupId>
  82. <artifactId>gt-geojson</artifactId>
  83. <version>${geotools.version}</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.geotools.jdbc</groupId>
  87. <artifactId>gt-jdbc-postgis</artifactId>
  88. <version>${geotools.version}</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.geotools</groupId>
  92. <artifactId>gt-cql</artifactId>
  93. <version>${geotools.version}</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.geotools</groupId>
  97. <artifactId>gt-epsg-hsql</artifactId>
  98. <version>${geotools.version}</version>
  99. </dependency>
  100. <!-- <dependency>-->
  101. <!-- <groupId>org.wololo</groupId>-->
  102. <!-- <artifactId>jts2geojson</artifactId>-->
  103. <!-- <version>0.17.0</version>-->
  104. <!-- </dependency>-->
  105. </dependencies>
  106. <build>
  107. <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
  108. <plugins>
  109. <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
  110. <plugin>
  111. <artifactId>maven-clean-plugin</artifactId>
  112. <version>3.1.0</version>
  113. </plugin>
  114. <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
  115. <plugin>
  116. <artifactId>maven-resources-plugin</artifactId>
  117. <version>3.0.2</version>
  118. </plugin>
  119. <plugin>
  120. <artifactId>maven-compiler-plugin</artifactId>
  121. <version>3.8.0</version>
  122. </plugin>
  123. <plugin>
  124. <artifactId>maven-surefire-plugin</artifactId>
  125. <version>2.22.1</version>
  126. </plugin>
  127. <plugin>
  128. <artifactId>maven-jar-plugin</artifactId>
  129. <version>3.0.2</version>
  130. </plugin>
  131. <plugin>
  132. <artifactId>maven-install-plugin</artifactId>
  133. <version>2.5.2</version>
  134. </plugin>
  135. <plugin>
  136. <artifactId>maven-deploy-plugin</artifactId>
  137. <version>2.8.2</version>
  138. </plugin>
  139. <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
  140. <plugin>
  141. <artifactId>maven-site-plugin</artifactId>
  142. <version>3.7.1</version>
  143. </plugin>
  144. <plugin>
  145. <artifactId>maven-project-info-reports-plugin</artifactId>
  146. <version>3.0.0</version>
  147. </plugin>
  148. <plugin>
  149. <inherited>true</inherited>
  150. <groupId>org.apache.maven.plugins</groupId>
  151. <artifactId>maven-compiler-plugin</artifactId>
  152. <version>3.10.1</version>
  153. <configuration>
  154. <source>1.8</source>
  155. <target>1.8</target>
  156. </configuration>
  157. </plugin>
  158. </plugins>
  159. </pluginManagement>
  160. <plugins>
  161. <plugin>
  162. <groupId>org.apache.maven.plugins</groupId>
  163. <artifactId>maven-compiler-plugin</artifactId>
  164. <configuration>
  165. <source>8</source>
  166. <target>8</target>
  167. </configuration>
  168. </plugin>
  169. </plugins>
  170. </build>
  171. </project>
创建项目命令
mvn archetype:generate -DgroupId=org.geotools -DartifactId=tutorial -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/476143
推荐阅读
相关标签
  

闽ICP备14008679号