2010-02-09 42 views

回答

3

不管這個的jboss-消息情況下,您可以手動安裝任何的jar:

mvn install:install-file -Dfile=<path-to-file> -DgroupId=<myGroup> \ 
    -DartifactId=<myArtifactId> -Dversion=<myVersion> -Dpackaging=<myPackaging> 

然後只需在<dependency>標記中使用這些值:

<dependency> 
    <groupId>myGroup</groupId> 
    <artifactId>myArtifactId</artifactId> 
    <version>myVersion</version> 
</dependency> 

http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

0

這應該做你:

<dependency> 
    <groupId>jboss.messaging</groupId> 
    <artifactId>jboss-messaging</artifactId> 
    <version>1.4.6.GA</version> 
</dependency> 
1

在這種情況下,使用repository search engine,例如:

http://mavensearch.net/search?q=jboss-messaging

我特別喜歡mavensearch.net因爲它有大量的索引庫,包括JBoss存儲庫中。

如果你能找到包含你正在尋找神器現有資源庫,喜歡在你的本地倉庫(不是便攜式的),並且使用system範圍(比惡化工件的該解決方案通過手動安裝手動安裝)。

+0

另外http://www.mvnbrowser.com/index.html很好。如果你知道一個Class的名字,但不知道哪個.jar,那麼你可以試試http://www.findjar.com/index.x –

0

Here是您提到的真正的sonatype存儲庫。另一個只是運行Nexus,並且只有中央代理。看看這個。