I'm writing a bitbucket server plugin that writes to an external postgresql DB. I'm using PostgreSQL JDBC and getting the following error when calling Class.forName("org.postgresql.Driver") :
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:
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.4.1212</version>
</dependency>How can I write to an external PostgreSQL DB from my plugin?