Postgres JDBC maven dependency not found

dbeaver maven artifact 'maven:/net.postgis:postgis-jdbc:release' not found
pom postgres jdbc
pom.xml postgresql dependency
maven postgresql 10 dependency
postgres jdbc driver
maven repository
psql dependency
gradle postgresql jdbc driver

I wanted to include Postgres JDBC driver in my Java application, so I added it as maven dependency. I chose the last version from this list, which happened to be, to my astonishment, hosted by Atlassian. Now I am receiving this error:

Missing artifact postgresql:postgresql:jar:9.4.1208-jdbc42-atlassian-hosted

I also tried an older version that is not hosted by Atlassian, but got the same error! Is there another proper place to get the jar from?

This is my current 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>

What exactly do you have in your pom.xml file?

Should be something like:

<!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
<dependency>
    <groupId>org.postgresql</groupId>
    <artifactId>postgresql</artifactId>
    <version>9.4.1212</version>
</dependency>

Make sure you're using org.postgresql as the groupId, instead of postgresql.

Postgresql driver not found for maven dependency, Maybe you should clean your maven repository cache or delete the folders manually and retry. Maven wasn't recognizing the new dependency I have added to pom. xml, so I added it through 'Dependency view' from the xml and that did the trick. You need to place a copy of the jar in the tomcat/lib folder. I am running a spring project with maven and I am trying to use postgresql. I've added the dependency to pom.xml, but at tomcat startup, I get the following error: java.lang.ClassNotFoundException

Should be:

<dependency>
    <groupId>org.postgresql</groupId>
    <artifactId>postgresql</artifactId>
</dependency>

Do not put the version. Let Maven does that itself

New dbeaver installation: Error connection to Postgresql missing net , I am trying to connect to postgresql on windows. I click on new connection then on driver propertied I get error resolving dependencies: Maven artifact Error connection to Postgresql missing net.postgis:postgis-jdbc:RELEASE[2.2.1] #3780 Maybe the redshift driver is missing from maven repositories? PostgreSQL: Up and Running: A Practical Guide to the Advanced Open Source Database (2017) by Regina O. Obe, Leo S. Hsu

Just downgrade the version of postgresql

PostgreSQL JDBC Driver, Get the JDBC Driver Maven dependency list, which includes Oracle, SQL Server, PostgreSQL, MySQL, Db2, Informix, Firebird, HSQLDB, H2,� The PostgreSQL Driver is available on Maven Central, so us the following dependency: <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <version>${postgresql.version}</version> </dependency> This Maven Central link will tell you which is the latest version of the PostgreSQL JDBC artifact. SQL Server

JDBC Driver Maven dependency list, java.lang.ClassNotFoundException: org.postgresql.Driver not found. I've tried adding the following to my pom.xml but it results in the plugin failing to install: By default log4j 1.2.15 version adds all above 3 dependencies. Same for zookeeper 3.3.2 version. How to fix this this permanently? There are two options. Option-1. Just upgrade log4j and zookeeper to latest version. log4j 1.2.16 and zookeeper 3.4.9 doesn’t have these dependencies. Option-2. Add below exclusions code to your project’s pom

Solved: How can I resolve "org.postgresql.Driver" not foun, This page contains the latest release of PostgreSQL JDBC driver maven/Gradle dependency. 2018-07-12 17:06:17.220 - Create display 2018-07-12 17:06:17.887 - DBeaver 5.1.0 is starting 2018-07-12 17:06:17.889 - OS: Linux 4.14.39-1-MANJARO (amd64) 2018-07-12 17:06:17.889 - Java version: 1.8.0_172 by Oracle Corporation (64bit) 2018-07-12 17:06:17.890 - Install path: '/usr/lib/dbeaver' 2018-07-12 17:06:17.890 - Instance path: 'file:/home

PostgreSQL JDBC Driver Maven Dependency, I've added the dependency to pom.xml, but at tomcat startup, I get the following error: java.lang.ClassNotFoundException: org.postgresql.Driver pom.xml� > so when you extract the war where is the postgresql jar ? > > If this is a webapp then it has to be in a specific place. > > DAve > > On Mon, Jul 27, 2009 at 1:57 PM, John Dunlap <[hidden email] > <mailto:[hidden email]>> wrote: > > This is the classpath that maven is using, > > [myusername@myhostname myproject]$ mvn cpprinter:print > [INFO] Scanning for projects

Comments
  • Try this one: search.maven.org/…
  • Could you please post your pom or dependency?
  • Why are you trying to use a third-party dependency, instead of the official postgresql JDBC maven dependency?
  • Where is the official one, I found this on the mvnrepository.com, that is a part of my question: is there a better repository/host.
  • mvnrepository.com is just a view (index) of repo1.maven.org (and some other non-standard repository, like that one from Atlassian), but to answer your question: it is here: mvnrepository.com/artifact/org.postgresql/postgresql
  • This one worked, but how did you find it? A google search wont get me to it!
  • @AHH jdbc.postgresql.org/download.html, links to Maven using the link search.maven.org/…