Maven 2 Maven未能下载JBoss依赖项

Maven 2 Maven未能下载JBoss依赖项,maven-2,jboss,m2eclipse,Maven 2,Jboss,M2eclipse,下面是我在代理后面的maven设置 用户设置: <?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/

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

用户设置:

<?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>

D:\path\mvn\u repo
真的
https
我的用户名
密码
粘虫宿主
吡咯烷酮
真的
http
我的用户名
密码
粘虫宿主
吡咯烷酮
全局设置:

<?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>

D:\path\mvn\u repo
jboss公共存储库
jboss公共存储库组
JBoss公共Maven存储库组
https://repository.jboss.org/nexus/content/groups/public-jboss/
违约
真的
从未
真的
从未
jboss公共存储库组
JBoss公共Maven存储库组
https://repository.jboss.org/nexus/content/groups/public-jboss/
违约
真的
从未
真的
从未
然而,当我试图执行测试目标时,我得到了“连接超时”。
maven命令行和M2Eclipse都会发生这种情况。我还需要什么设置。

可能您使用的代理需要NTLM身份验证,而maven不支持。 您可以尝试使用CNTLM:
可能您使用的代理需要NTLM身份验证,而maven不支持。 您可以尝试使用CNTLM:

JBoss存储库于2011年6月被移动,导致许多其他用户遇到您描述的问题。很可能您需要更改pom中的URL

有关详细信息,请参阅


  • 以及与上述“相关”的其他答案
  • 适用于maven用户的JBoss wiki:

另外,在进行更改时,请确保检查所有包含的POM,否则,损坏的JBoss URL可能会从这些POM中滑过并杀死您的构建。JBoss存储库已于2011年6月移动,导致许多其他用户遇到您描述的问题。很可能您需要更改pom中的URL

有关详细信息,请参阅


  • 以及与上述“相关”的其他答案
  • 适用于maven用户的JBoss wiki:
另外,在进行更改时,请确保检查所有包含的POM,否则,损坏的JBossURL可能会从这些POM中滑过并杀死您的构建