Instead of manually downloading, you can declare the dependency and let the tool fetch it.
<dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <version>42.5.0</version> </dependency> download postgresql-42.5.0.jar