2010-06-01 64 views
1

由於某種原因,Apache Maven出現此錯誤,我將Google App Engine,Spring和Tiles2添加到同一個項目中。Maven給出錯誤缺失神器

Missing artifact org.apache.commons:com.springsource.org.apache.commons.collections:jar:3.2.1:compile 

這裏是我的pom.xml在那裏我有依賴性:

<dependency> 
     <groupId>org.apache.commons</groupId> 
     <artifactId>com.springsource.org.apache.commons.collections</artifactId> 
     <version>3.2.1</version> 
     <type>pom</type> 
    </dependency> 
+0

類型的依賴'pom'?這真的是你想要的嗎? – 2010-06-01 20:31:38

+0

嗨,我刪除了那個東西 – newbie 2010-06-01 20:44:25

回答

4

我解決了這個通過添加下列庫:

<repository> 
    <id>com.springsource.repository.bundles.release</id> 
    <name>EBR Spring Release Repository</name> 
    <url>http:// repository.springsource.com/maven/bundles/release</url> 
</repository> 
<repository> 
    <id>com.springsource.repository.bundles.external</id> 
    <name>EBR External Release Repository</name> 
    <url>http:// repository.springsource.com/maven/bundles/external</url> 
</repository>