Add postgres JDBC to uberjar, shadow to avoid global conflicts

This commit is contained in:
Mike Primm 2021-02-07 22:50:41 -06:00
parent dd5b781cd3
commit a25b22409d
2 changed files with 4 additions and 1 deletions

View file

@ -296,7 +296,7 @@ public class PostgreSQLMapStorage extends MapStorage {
connectionString = "jdbc:postgresql://" + hostname + ":" + port + "/" + database + flags;
Log.info("Opening PostgreSQL database " + hostname + ":" + port + "/" + database + " as map store");
try {
Class.forName("org.postgresql.Driver");
Class.forName("org.dynmap.org.postgresql.Driver"); // Use shaded name for our bundled driver
// Initialize/update tables, if needed
if(!initializeTables()) {
return false;