我想在我的Java应用程序中包含Postgres JDBC驱动程序,因此我将其作为Maven依赖项添加。 我从此列表中选择了最新版本,令我惊讶的是,它是由Atlassian托管的。
现在我收到以下错误消息:
这是我的当前pom.xml:
我还尝试了一个不由Atlassian托管的旧版本,但是得到了相同的错误! 是否有其他适当的地方可以获取该jar文件?缺少postgresql:postgresql:jar:9.4.1208-jdbc42-atlassian-hosted
这是我的当前pom.xml:
<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>PostgresListener</groupId>
<artifactId>PostgresListener</artifactId>
<version>0.0.1-SNAPSHOT</version>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<!-- https://mvnrepository.com/artifact/postgresql/postgresql -->
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.4.1208-jdbc42-atlassian-hosted</version>
</dependency>
</dependencies>