Tôi muốn bao gồm trình điều khiển JDBC Postgres trong ứng dụng Java của tôi, vì vậy tôi đã thêm nó làm phụ thuộc maven. Tôi đã chọn phiên bản cuối cùng từ this list, đã xảy ra, với sự ngạc nhiên của tôi, được tổ chức bởi Atlassian. Bây giờ tôi nhận được lỗi này:Postgres JDBC phụ thuộc maven không tìm thấy
Missing artifact postgresql:postgresql:jar:9.4.1208-jdbc42-atlassian-hosted
Tôi cũng đã cố gắng một phiên bản cũ mà không được lưu trữ bởi Atlassian, nhưng có những lỗi tương! Có nơi nào khác để lấy bình từ?
Đây là pom.xml hiện tại của tôi:
<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>
Hãy thử cái này: http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.postgresql%22%20AND%20a%3A%22postgresql%22 – marstran
Có thể bạn xin vui lòng gửi pom của bạn hoặc phụ thuộc? – Dana
Tại sao bạn đang cố gắng sử dụng sự phụ thuộc của bên thứ ba, thay vì phụ thuộc maven postgresql JDBC chính thức? –