早上好,
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:install -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
当我查看日志文件时,我看到以下内容
org.sonatype.aether.resolution.ArtifactDescriptorException:无法读取 org.jboss.fuse.examples:cbr:pom:6.0.0.redhat-015 的工件描述符
原因:org.apache.maven.model.resolution.UnresolvableModelException: 无法从 repos1 传输工件 org.jboss.fuse.examples:project:pom:6.0.0.redhat-015 ( http://repo.fusesource.com /nexus/content/groups/public):传输文件时出错:连接超时:连接
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: 无法从 repos1 ( http://repo.fusesource.com/nexus传输工件 org.jboss.fuse.examples:project:pom:6.0.0.redhat-015 /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 文件还具有我的公司关系存储库的路径,我希望应用程序从中提取/解决上述问题。我还在“org.ops4j.pax.url.mvn.cfg”文件中更改了以下设置
org.ops4j.pax.url.mvn.settings=file:D:/Maven/settings.xml
我不确定为什么它仍然要通过 fusesource 来解决问题。