2013-03-25 84 views
0

早安,保險絲ESB的OSGi:安裝運行到問題

    I downloaded the beta version of jboss fuse (jboss-fuse-6.0.0.redhat-015) and decided to try out the cbr sample.I run maven command "mvn clean install" and then started up the jboss fuse via commad line.At the karaf command line i tried to do the following 

的OSGi:安裝-s FAB:MVN:org.jboss.fuse.examples/CBR/6.0.0.redhat-015

它停留一段時間然後拋出一個錯誤

執行命令時出錯:安裝捆綁包時出錯:無法安裝捆綁fab:mvn:org.jboss.fuse.examples/cbr/6.0.0.redhat- 015

當我看起來T中的日誌文件,我看到下面的

org.sonatype.aether.resolution.ArtifactDescriptorException:無法讀取工件描述符org.jboss.fuse.examples:CBR:POM:6.0.0.redhat-015

原因:org.apache.maven.model.resolution.UnresolvableModelException:無法傳輸工件org.jboss.fuse.examples:project:pom:6.0.0.redhat-015 from repos1(http://repo.fusesource.com/nexus/content/groups/public):傳輸文件時出錯:Connection超時:連接

at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:119)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-015] 

at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:819)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-015] 

at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:670)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-015] 

at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:308)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-015] 

at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-015] 

at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:299)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-015] 

... 32 more 

產生的原因:org.sonatype.aether.resolution.ArtifactResolutionException:無法傳輸神器org.jboss .fuse.examples:項目:POM:6.0.0.redhat-015從repos1版本(http://repo.fusesource.com/nexus/content/groups/public):錯誤傳送文件:連接超時:連接

at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:488)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-015] 

at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:190)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-015] 

at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:115)[71:org.fusesource.fabric.fab.fab-osgi:7.2.0.redhat-015] 

... 37 more 

我有一個非標準的位置我的本地庫,並有我的settings.xml文件中的值。settings.xml文件也有我的公司nexus存儲庫中的路徑,我期望應用程序能夠解決上述問題。我的「組織」中還更改了以下設置。 ops4j.pax.url.mvn.cfg」文件

org.ops4j.pax.url.mvn.settings =文件:d:/Maven/settings.xml

我不知道爲什麼它是ST不適合去解決問題。

回答

0

保險絲不讀Maven的設置文件中的所有設置。您需要在etc/org.ops4j.pax.url.mvn.cfg配置文件中更改其中的一些。

另外,您可能想要使用Fuse命令config驗證最終結果:proplist --pid org.ops4j.pax.url.mvn