无法正常安装Apache Ant的二进制版本 [英] Unable to properly install binary edition of Apache Ant

查看:126
本文介绍了无法正常安装Apache Ant的二进制版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在下面的本教程的安装Apache Ant的二进制版本。

I'm following this tutorial to install the binary edition of Apache Ant.

不幸的是,当我到达的可选的的步骤5中,我无法得到一些资源。即,在处理的Maven工件的任务中发生错误。

Unfortunately, when I get to the "optional" step 5, I'm unable to get some resources. That is, an error occurs while processing the Maven artifact tasks.

当我尝试导航到服务器,看来他们要么下跌,或不存在。任何人都遇到这样的问题?

When I try to navigate to the servers, it appears that they are either down, or non-existent. Anyone else encounter this problem?

和我刚刚发现这个资料片有关 HTTP 403 响应code,

And I just found this piece of information regarding the HTTP 403 response code,

这响应由Apache Web服务器时,返回目录
  上市已被禁用。

This response is returned by the Apache web server when directory listings have been disabled.

所以,将使得目录列表解决这一问题?如果是这样,我怎么去实现呢?

So, would enabling directory listings fix this? And if so, how do I go about enabling that?

推荐答案

好像蚂蚁正试图从Maven仓库在互联网上下载了一些陶罐,在这种情况下,在JBoss的网站。他们前段时间改变了他们的资源库的位置。

It seems that Ant is trying to download some JARs from a Maven repository on the Internet, in this case on JBoss' site. They changed the location of their repository some time ago.

下面是如何改变的网址:

Here's how to change the URL:


  1. 转到您的蚂蚁安装文件夹。

  1. Go to your ant installation folder.

在你最喜欢的文本编辑器打开fetch.xml。

Open fetch.xml in your favorite text editor.

有关 http://repository.jboss.org/maven2 的搜索和替换的https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/

再次运行可选命令:

蚂蚁-f fetch.xml -Ddest =系统

ant -f fetch.xml -Ddest=system

这篇关于无法正常安装Apache Ant的二进制版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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