Fuse esb没有使用settings.xml

时间:2014-04-06 17:38:30

标签: java maven fuseesb jbossfuse

我想在我的本地网络控制台osgi中使用存储库安装hawtio:install mvn:io.hawt / hawtio-web / 1.2.3。此存储库不在代理之后。但我收到一个错误:

settings.xml文件:

<?xml version="1.0" encoding="UTF-8"?>

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0   http://maven.apache.org/xsd/settings-1.0.0.xsd">

<mirrors>
    <mirror>
        <id>company-nexus</id>
        <name>some name Nexus Repo</name>
        <mirrorOf>*,!np-snapshots,!public-snapshots</mirrorOf>
        <url>http:/mysite/nexus/content/groups/public</url>
    </mirror>
</mirrors>

<profiles>
    <profile>
        <id>companyRepo</id>
        <properties>
            <nexus.repo>mysite</nexus.repo>
        </properties>

        <pluginRepositories>
            <pluginRepository>
                <id>np-snapshots</id>
                <url>http://${nexus.repo}/nexus/content/groups/public</url>
                <releases>
                    <enabled>true</enabled>
                    <checksumPolicy>warn</checksumPolicy>
                </releases>
                <snapshots>
                    <enabled>true</enabled>
                    <checksumPolicy>warn</checksumPolicy>
                    <updatePolicy>always</updatePolicy>
                </snapshots>
            </pluginRepository>
            <pluginRepository>
                <id>public-snapshots</id>
                <url>http://${nexus.repo}/nexus/content/groups/public_snapshots/</url>
                <releases>
                    <enabled>true</enabled>
                    <checksumPolicy>warn</checksumPolicy>
                </releases>
                <snapshots>
                    <enabled>true</enabled>
                    <checksumPolicy>warn</checksumPolicy>
                    <updatePolicy>always</updatePolicy>
                </snapshots>
            </pluginRepository>
        </pluginRepositories>

        <repositories>
            <repository>
                <id>np-snapshots</id>
                <url>http://${nexus.repo}/nexus/content/groups/public/</url>
                <releases>
                    <enabled>true</enabled>
                    <checksumPolicy>warn</checksumPolicy>
                </releases>
                <snapshots>
                    <enabled>true</enabled>
                    <checksumPolicy>warn</checksumPolicy>
                    <updatePolicy>never</updatePolicy>
                </snapshots>
            </repository>
            <repository>
                <id>public-snapshots</id>
                <url>http://${nexus.repo}/nexus/content/groups/public_snapshots/</url>
                <releases>
                    <enabled>true</enabled>
                    <checksumPolicy>warn</checksumPolicy>
                </releases>
                <snapshots>
                    <enabled>true</enabled>
                    <checksumPolicy>warn</checksumPolicy>
                    <updatePolicy>never</updatePolicy>
                </snapshots>
            </repository>
        </repositories>
    </profile>
</profiles>

<activeProfiles>
    <!--make the profile active all the time -->
    <activeProfile>companyRepo</activeProfile>
</activeProfiles>

 <proxies>
<proxy>
    <active>true</active>
    <protocol>http</protocol>
    <host>proxy.mysite</host>
    <port>3128</port>
    <username>myProxyUsername</username>
    <password>myProxyPassword</password>
 <nonProxyHosts>nexus.mySite</nonProxyHosts>
</proxy>

org.ops4j.pax.url.mvn.cfg文件: http://pastebin.com/q5GZnVGX

错误: http://pastebin.com/3mk7DnUi

我正在使用jboss-fuse-6.0.0.redhat-024

2 个答案:

答案 0 :(得分:0)

澄清 - 您的本地存储库是否可以直接访问Internet,是否设置为镜像所有默认的fuse存储库(例如'org.ops4j.pax.url.mvn.repositories'中的存储库)?< / p>

启用调试日志记录也很有用,因为我相信您将能够看到保险丝用于解析捆绑包的存储库(例如log:set debug)

我个人试错了。首先,我将'http:/ mysite / nexus / content / groups / public'添加到'org.ops4j.pax.url.mvn.repositories'设置,从settings.xml中删除镜像,看它是否有效。如果是,则表示镜像设置存在问题。

答案 1 :(得分:0)

根据Hawito documention,您应该尝试

features:addurl mvn:io.hawt/hawtio-karaf/1.3.0/xml/features
features:install hawtio