我正在尝试使用JTS Topology Suite和ItelliJ (Java),但我甚至不能运行简单的程序
我已尝试使用此POM file,但当我修改我的POM文件时,出现以下错误:
Error:(1, 1) java: package org.locationtech.jts.geom does not exist我甚至尝试用一个空类来丢弃其他问题:
import org.locationtech.jts.geom.*;
public class geo {}我应该如何在我的项目中包含JTS?
发布于 2018-12-28 17:14:53
我终于用这个POM文件完成了
<?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>
<groupId>as</groupId>
<artifactId>a</artifactId>
<version>1</version>
<dependencies>
<dependency>
<groupId>org.locationtech.jts</groupId>
<artifactId>jts-core</artifactId>
<version>1.15.1</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>locationtech-releases</id>
<url>https://repo.locationtech.org/content/groups/releases</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>jts-snapshots</id>
<url>https://repo.locationtech.org/content/repositories/jts-snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</project>https://stackoverflow.com/questions/53948165
复制相似问题