2012-07-12 67 views
3

想要使用Maven存儲庫來使用Apache commons VFS庫的任何想法? 謝謝。Apache Commons VFS Maven知識庫?

<dependency> 
     <groupId>org.apache.commons</groupId> 
     <artifactId>commons-vfs2</artifactId> 
     <version>2.1-SNAPSHOT</version> 
    </dependency> 

** **編輯:下面的資料庫正常工作:

<repository> 
     <id>commons-vfs</id> 
     <name>Apache Commons VFS Repository Group</name> 
     <url>https://repository.apache.org/content/groups/snapshots/</url> 
     <layout>default</layout> 
     <snapshots> 
      <enabled>true</enabled> 
     </snapshots> 
    </repository> 
+1

您確定artifactId? http://mvnrepository.com/artifact/org.apache.commons/commons-vfs2/2.0 – 2012-07-12 11:45:42

+1

或者它可以作爲SNAPSHOT使用:https://repository.apache.org/index.html#nexus-search;quick~commons- vfs2-distribution – 2012-07-12 11:48:21

+0

@nico_ekito你是對的:artifact id是錯誤的。我在我的問題中糾正了它,並添加了正確的Maven存儲庫。感謝您的幫助,並隨時添加一個答案,以便我可以接受它;-) – kiwifrog 2012-07-12 16:19:19

回答

1

如果你需要版本2.1-SNAPSHOT,你可以使用這個Maven倉庫:

http://repository.jboss.org/

版本2.1-SNAPSHOT實現了一些新的特點。