NES for PostgreSQL JDBC Driver 42.3.x Setup
Installation and configuration guide for NES for PostgreSQL JDBC Driver 42.3.x
Setup Instructions
NES for PostgreSQL JDBC Driver 42.3.x requires Java 8+.
Configure Registry
Create or update your registry configuration:
<settings>
<servers>
<server>
<id>herodevs-nes-registry</id>
<username>any_text_here_not_used</username>
<password>YOUR_NES_ACCESS_TOKEN</password>
</server>
</servers>
</settings>
See the guides for Sonatype Nexus or JFrog Artifactory for setup to the HeroDevs NES registry.
Update Build Configuration
Add the NES repository and dependencies to your build configuration. NES for PostgreSQL JDBC Driver keeps the upstream org.postgresql Maven coordinates and publishes a single postgresql artifact, so only the version changes.
Look up a specific artifact version in the "NES Maven Artifacts: Paid Versions" table.
In a Spring Boot application that uses Spring Boot dependency management, set the postgresql.version property to apply the NES version to every artifact that Spring Boot manages. See Spring Boot Dependency Management for details.
<properties>
<postgresql.version>42.3.10-pgjdbc-42.3.12</postgresql.version>
</properties>
<!-- Add NES repository -->
<repositories>
<repository>
<id>herodevs-nes-registry</id>
<url>https://registry.nes.herodevs.com/maven</url>
</repository>
</repositories>
Otherwise, add the NES dependencies directly to your build configuration:
<!-- Update the PostgreSQL JDBC Driver dependency version -->
<dependencies>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.3.10-pgjdbc-42.3.12</version><!-- Updated Version -->
</dependency>
</dependencies>
<!-- Add NES repository -->
<repositories>
<repository>
<id>herodevs-nes-registry</id>
<url>https://registry.nes.herodevs.com/maven</url>
</repository>
</repositories>
Build
In order to remove potential obstacles before building your project, make sure the following domains are whitelisted by your firewall/networking team:
registry.nes.herodevs.comassets.nes.herodevs.com
This will ensure that your network/firewall allows connection to our registry.
Run your build tool:
mvn clean package
Verification
To verify your installation, check that:
- Dependencies are downloaded successfully
- No version conflicts are reported in your build
- Your application starts without errors
SCRAM Iteration Limit
The fix for CVE-2026-42198 adds a connection property, scramMaxIterations, that caps the PBKDF2 iteration count the driver accepts during SCRAM authentication. The default is 100000. When a server advertises a higher count, the driver refuses the handshake instead of computing the password proof.
Most deployments need no change, because PostgreSQL's own scram_iterations default is 4096. If you connect to a server configured above the cap, raise scramMaxIterations to match that server rather than lowering the server setting. Setting it to 0 disables the cap; a negative value is rejected.
jdbc:postgresql://localhost:5432/mydb?scramMaxIterations=200000
The property is also available on BaseDataSource, so PGSimpleDataSource and PGPoolingDataSource expose it as setScramMaxIterations(int).
Manual Downloads
The direct download URLs for NES for PostgreSQL JDBC Driver packages follow this format:
| Portion | Value |
|---|---|
| base_url | https://registry.nes.herodevs.com/maven/org/postgresql/ |
| package_name | postgresql |
| version | 42.3.10-pgjdbc-42.3.12 |
| filename | package_name + version + extension |