Maven Failing下载JBoss依赖项 [英] Maven Failing download the JBoss dependency

查看:180
本文介绍了Maven Failing下载JBoss依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是我在代理后面的Maven设置

Below are my maven settings from behind the proxy

用户设置:

<?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">
<localRepository>D:\path\mvn_repo</localRepository>
<pluginGroups></pluginGroups>
<proxies>
<proxy>
        <active>true</active>
        <protocol>https</protocol>
        <username>myusername</username>
        <password>password</password>
        <host>myproxyhost</host>
        <port>myproxyport</port>
    </proxy>

    <proxy>
        <active>true</active>
        <protocol>http</protocol>
        <username>myusername</username>
        <password>password</password>
        <host>myproxyhost</host>
        <port>myproxyport</port>
    </proxy>
</proxies>
<servers></servers>
<mirrors></mirrors>
<profiles></profiles>
</settings>

全局设置:

<?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">
<localRepository>D:\path\mvn_repo</localRepository>
<pluginGroups></pluginGroups>
<proxies></proxies>
<servers></servers>
<mirrors></mirrors>
<profiles>
    <profile>
        <id>jboss-public-repository</id>
        <repositories>
            <repository>
                <id>jboss-public-repository-group</id>
                <name>JBoss Public Maven Repository Group</name>
                <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
                <layout>default</layout>
                <releases>
                    <enabled>true</enabled>
                    <updatePolicy>never</updatePolicy>
                </releases>
                <snapshots>
                    <enabled>true</enabled>
                    <updatePolicy>never</updatePolicy>
                </snapshots>
            </repository>
        </repositories>
        <pluginRepositories>
            <pluginRepository>
                <id>jboss-public-repository-group</id>
                <name>JBoss Public Maven Repository Group</name>
                <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
                <layout>default</layout>
                <releases>
                    <enabled>true</enabled>
                    <updatePolicy>never</updatePolicy>
                </releases>
                <snapshots>
                    <enabled>true</enabled>
                    <updatePolicy>never</updatePolicy>
                </snapshots>
            </pluginRepository>
        </pluginRepositories>
    </profile>
</profiles>
<activeProfiles>
</settings>

但是,当我尝试执行测试目标时,出现连接超时"的情况. Maven命令行和M2Eclipse都会发生这种情况.我还需要什么设置.

However I get 'Connection timed out' when I try to execute test goal. This happens with both maven command line and M2Eclipse. What more settings do I require.

推荐答案

也许您正在使用的代理需要NTLM身份验证,而maven不支持该身份验证. 您可以尝试使用CNTLM: http://cntlm.sourceforge.net/

Maybe the proxy you are using requires NTLM authentication, which maven does not support. You can try to use CNTLM: http://cntlm.sourceforge.net/

这篇关于Maven Failing下载JBoss依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆