PostgreSQL jdbc driver maven 'latest' points to jre7, why?

Viewed 690

The PostgreSQL jdbc driver has a sub-version for different jre-versions. The current, however, is java 8 and does not have an extra 'jre' tag.

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

I have this in my pom:

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

However, the maven version plugin returns a different version:

 [INFO] The following dependencies in Dependencies have newer versions:
[...]
[INFO]   org.postgresql:postgresql ..................... RELEASE -> 42.2.5.jre7

Returns jre7 specific.

Does anyone know why? And how to switch to the default without explicitly coding the version in the pom?

0 Answers
Related