我在maven的pom.xml文件中添加了以下依赖项
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.0-801.jdbc4</version>
</dependency>
但是它还没有找到postgres数据库的驱动程序?
请描述一下问题出在哪里。
看起来您的repo没有请求的jar。如果是,请在pom.xml中添加一个repo标记,指向jboss或maven repo。
<project ...>
<repositories>
<repository>
<id>JBoss repository</id>
<url>http://repository.jboss.org/nexus/content/groups/public/</url>
</repository>
</repositories>
</project>
或
<project ...>
<repositories>
<repository>
<id>java.net</id>
<url>http://download.java.net/maven/2</url>
</repository>
</repositories>
</project>