Maven试图下载文件,它也没有访问权限

时间:2014-01-02 17:27:45

标签: eclipse maven maven-2 maven-dependency-plugin

我正在尝试构建我的maven项目,每次构建时都会出现以下错误:

  

拒绝访问   http://repository.jboss.com/maven2/org/eclipse/jdt/core/3.2.3.v_686_R32x/core-3.2.3.v_686_R32x.pom

我试图强行清理并安装。我也尝试吹掉.m2 / repository中的文件夹。当我尝试构建时,我看到了这一点:

  

下载:   http://repository.jboss.com/maven2/org/eclipse/jdt/core/3.2.3.v_686_R32x/core-3.2.3.v_686_R32x.pom

     

下载:   http://maven.softeu.cz/org/eclipse/jdt/core/3.2.3.v_686_R32x/core-3.2.3.v_686_R32x.pom

我的pom.xml依赖关系如下所示:

<dependencies>
    <dependency>
        <groupId>org.jahia.server</groupId>
        <artifactId>jahia-impl</artifactId>
        <version>6.0.0-EE</version>
        <scope>provided</scope>
        <exclusions>
            <exclusion>
                <artifactId>castor</artifactId>
                <groupId>org.codehaus.castor</groupId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>org.jahia.server</groupId>
        <artifactId>jahia-taglib</artifactId>
        <version>6.0.0-EE</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>com.jcraft</groupId>
        <artifactId>jsch</artifactId>
        <version>0.1.42</version>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>org.apache.ant</groupId>
        <artifactId>ant-jsch</artifactId>
        <version>1.8.1</version>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.4</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-test</artifactId>
        <version>2.5.5</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.codehaus.castor</groupId>
        <artifactId>castor-core</artifactId>
        <version>1.3.1</version>
    </dependency>
    <dependency>
        <groupId>org.codehaus.castor</groupId>
        <artifactId>castor-xml</artifactId>
        <version>1.3.1</version>
    </dependency>
    <dependency>
        <groupId>org.jsoup</groupId>
        <artifactId>jsoup</artifactId>
        <version>1.6.3</version>
    </dependency>
    <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpclient</artifactId>
        <version>4.2.1</version>
    </dependency>
    <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-lang3</artifactId>
        <version>3.1</version>
    </dependency>

如何让maven不要试图下载或自己包含它?!

由于

1 个答案:

答案 0 :(得分:2)

IIRC这是JBoss的旧/禁用回购。他们搬到了Nexus。有关所有详细信息,请参阅https://community.jboss.org/wiki/MavenRepository