在eclipse中使用mvn进行spring开发时,修改pom.xml后提示如下信息:
Missing artifact com.mchange.c3p0:com.springsource.com.mchange.v2.c3p0:jar:0.9.1.2 Missing artifact org.apache.commons:com.springsource.org.apache.commons.logging:jar:1.1.1 Missing artifact org.apache.log4j:com.springsource.org.apache.log4j:jar:1.2.15
在stackoverflow查了下发现在pom.xml添加如下仓库即可,原始链接
<repositories> <repository> <id>com.springsource.repository.bundles.release</id> <name>EBR Spring Release Repository</name> <url>http://repository.springsource.com/maven/bundles/release</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> <repository> <id>com.springsource.repository.bundles.external</id> <name>EBR External Release Repository</name> <url>http://repository.springsource.com/maven/bundles/external</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories>
时间: 2024-11-08 21:56:30