I am running a spring project with maven and I am trying to use postgresql. I added a dependency on pom.xml, but when I start tomcat, I get the following error:
java.lang.ClassNotFoundException: org.postgresql.Driver
pom.xml dependency:
<dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <version>9.3-1101-jdbc41</version> </dependency>
Maven doesn't seem to load the jar, so the Driver class was not found. Any ideas?
spring maven postgresql dependencies driver
Alex
source share