315 lines
8.6 KiB
XML
315 lines
8.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||
<modelVersion>4.0.0</modelVersion>
|
||
<parent>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-parent</artifactId>
|
||
<version>2.3.0.RELEASE</version>
|
||
<relativePath/> <!-- lookup parent from repository -->
|
||
</parent>
|
||
<groupId>cn.edu.whu</groupId>
|
||
<artifactId>boot</artifactId>
|
||
<version>3.0</version>
|
||
<name>Android</name>
|
||
<!--打包放开-->
|
||
<!--<packaging>war</packaging>-->
|
||
<packaging>jar</packaging>
|
||
<description>Demo project for Spring Boot</description>
|
||
|
||
<properties>
|
||
<java.version>1.8</java.version>
|
||
<maven.compiler.source>1.8</maven.compiler.source>
|
||
<maven.compiler.target>1.8</maven.compiler.target>
|
||
<!-- <geotools.version>20.3</geotools.version>-->
|
||
<geotools.version>25.2</geotools.version>
|
||
</properties>
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-web</artifactId>
|
||
<!--打包放开-->
|
||
<!--去除内嵌tomcat-->
|
||
<!--<exclusions>-->
|
||
<!--<exclusion>-->
|
||
<!--<groupId>org.springframework.boot</groupId>-->
|
||
<!--<artifactId>spring-boot-starter-tomcat</artifactId>-->
|
||
<!--</exclusion>-->
|
||
<!--</exclusions>-->
|
||
</dependency>
|
||
|
||
<!--这里指定打war包的时不再需要tomcat相关的包,但是本地运行时必须注释掉,否则会报错-->
|
||
<!--<dependency>-->
|
||
<!--<groupId>org.springframework.boot</groupId>-->
|
||
<!--<artifactId>spring-boot-starter-tomcat</artifactId>-->
|
||
<!--<version>1.3.5.RELEASE</version>-->
|
||
<!--<scope>provided</scope>-->
|
||
<!--</dependency>-->
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-aop</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>jakarta.validation</groupId>
|
||
<artifactId>jakarta.validation-api</artifactId>
|
||
</dependency>
|
||
|
||
|
||
<!--Hutool Java工具包-->
|
||
<dependency>
|
||
<groupId>cn.hutool</groupId>
|
||
<artifactId>hutool-all</artifactId>
|
||
<version>4.5.7</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-test</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>fastjson</artifactId>
|
||
<version>1.2.44</version>
|
||
</dependency>
|
||
|
||
<!-- JDOM 和 dom4j 写 XML文件依赖 -->
|
||
<dependency>
|
||
<groupId>org.jdom</groupId>
|
||
<artifactId>jdom</artifactId>
|
||
<version>1.1</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.dom4j</groupId>
|
||
<artifactId>dom4j</artifactId>
|
||
<version>2.1.1</version>
|
||
</dependency>
|
||
|
||
<!-- 本次数据库使用 porstgre数据库 和 MyBatis访问数据库 -->
|
||
<dependency>
|
||
<groupId>org.postgresql</groupId>
|
||
<artifactId>postgresql</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.mybatis.spring.boot</groupId>
|
||
<artifactId>mybatis-spring-boot-starter</artifactId>
|
||
<version>1.3.1</version>
|
||
</dependency>
|
||
|
||
<!-- PageHelper分页查询-->
|
||
<dependency>
|
||
<groupId>com.github.pagehelper</groupId>
|
||
<artifactId>pagehelper-spring-boot-starter</artifactId>
|
||
<version>1.2.3</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>commons-codec</groupId>
|
||
<artifactId>commons-codec</artifactId>
|
||
<version>1.9</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.apache.commons</groupId>
|
||
<artifactId>commons-lang3</artifactId>
|
||
<version>3.8.1</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>commons-io</groupId>
|
||
<artifactId>commons-io</artifactId>
|
||
<version>2.6</version>
|
||
</dependency>
|
||
|
||
<!--文件夹压缩与解压-->
|
||
<dependency>
|
||
<groupId>net.lingala.zip4j</groupId>
|
||
<artifactId>zip4j</artifactId>
|
||
<version>1.3.2</version>
|
||
</dependency>
|
||
|
||
<!-- session -->
|
||
<dependency>
|
||
<groupId>org.springframework.session</groupId>
|
||
<artifactId>spring-session-core</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.session</groupId>
|
||
<artifactId>spring-session-jdbc</artifactId>
|
||
</dependency>
|
||
<!-- Shiro -->
|
||
<dependency>
|
||
<groupId>org.apache.shiro</groupId>
|
||
<artifactId>shiro-spring-boot-web-starter</artifactId>
|
||
<version>1.4.0</version>
|
||
</dependency>
|
||
<!-- Gson -->
|
||
<dependency>
|
||
<groupId>com.google.code.gson</groupId>
|
||
<artifactId>gson</artifactId>
|
||
<version>2.8.5</version>
|
||
</dependency>
|
||
<!-- Mail -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-mail</artifactId>
|
||
</dependency>
|
||
|
||
<!-- ESRI geometry -->
|
||
<!-- For reading Shapefile -->
|
||
<dependency>
|
||
<groupId>com.esri.geometry</groupId>
|
||
<artifactId>esri-geometry-api</artifactId>
|
||
<version>2.2.2</version>
|
||
</dependency>
|
||
|
||
<!-- For geometry operations -->
|
||
<dependency>
|
||
<groupId>org.locationtech.jts</groupId>
|
||
<artifactId>jts-core</artifactId>
|
||
<version>1.18.2</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.apache.commons</groupId>
|
||
<artifactId>commons-math3</artifactId>
|
||
<version>3.6.1</version>
|
||
</dependency>
|
||
|
||
<!-- GeoJSON -->
|
||
<dependency>
|
||
<groupId>de.grundid.opendatalab</groupId>
|
||
<artifactId>geojson-jackson</artifactId>
|
||
<version>1.8.1</version>
|
||
</dependency>
|
||
|
||
<!-- 导入配置文件处理器,配置文件进行绑定时就会有提示 -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-websocket</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-cache</artifactId>
|
||
</dependency>
|
||
|
||
<!--读写Excel文件-->
|
||
<dependency>
|
||
<groupId>org.apache.poi</groupId>
|
||
<artifactId>poi-ooxml</artifactId>
|
||
<version>4.1.0</version>
|
||
</dependency>
|
||
|
||
<!--GeoTools读写shp相关依赖-->
|
||
<dependency>
|
||
<groupId>org.geotools</groupId>
|
||
<artifactId>gt-shapefile</artifactId>
|
||
<version>${geotools.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.geotools</groupId>
|
||
<artifactId>gt-opengis</artifactId>
|
||
<version>${geotools.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.geotools</groupId>
|
||
<artifactId>gt-main</artifactId>
|
||
<version>${geotools.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.geotools</groupId>
|
||
<artifactId>gt-epsg-hsql</artifactId>
|
||
<version>${geotools.version}</version>
|
||
</dependency>
|
||
<!-- https://mvnrepository.com/artifact/org.geotools/gt-geojson -->
|
||
<dependency>
|
||
<groupId>org.geotools</groupId>
|
||
<artifactId>gt-geojson</artifactId>
|
||
<version>${geotools.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.gdal</groupId>
|
||
<artifactId>gdal</artifactId>
|
||
<version>3.10.3</version>
|
||
</dependency>
|
||
<!-- <dependency>-->
|
||
<!-- <groupId>com.vividsolutions</groupId>-->
|
||
<!-- <artifactId>jts</artifactId>-->
|
||
<!-- <version>1.13</version>-->
|
||
<!-- </dependency>-->
|
||
|
||
<dependency>
|
||
<groupId>com.opencsv</groupId>
|
||
<artifactId>opencsv</artifactId>
|
||
<version>4.6</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.jooq</groupId>
|
||
<artifactId>jooq</artifactId>
|
||
<version>3.14.15</version>
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
|
||
<!--上面gt-geojson添加依赖遇到not fount,可手动配置maven repository解决 -->
|
||
<repositories>
|
||
<repository>
|
||
<id>osgeo</id>
|
||
<name>OSGeo Release Repository</name>
|
||
<url>https://repo.osgeo.org/repository/release/</url>
|
||
<snapshots><enabled>false</enabled></snapshots>
|
||
<releases><enabled>true</enabled></releases>
|
||
</repository>
|
||
<repository>
|
||
<id>osgeo-snapshot</id>
|
||
<name>OSGeo Snapshot Repository</name>
|
||
<url>https://repo.osgeo.org/repository/snapshot/</url>
|
||
<snapshots><enabled>true</enabled></snapshots>
|
||
<releases><enabled>false</enabled></releases>
|
||
</repository>
|
||
</repositories>
|
||
|
||
<build>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
</plugin>
|
||
|
||
<!--避免编译war出现test的错误-->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-surefire-plugin</artifactId>
|
||
<configuration>
|
||
<skip>true</skip>
|
||
</configuration>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
</project>
|