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

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

问题描述

我正在按照 响应代码的信息,><块引用>

该响应由 Apache Web 服务器在目录访问时返回列表已被禁用.

那么,启用目录列表会解决这个问题吗?如果是这样,我该如何启用它?

解决方案

似乎 Ant 正在尝试从 Internet 上的 Maven 存储库下载一些 JAR,在这种情况下是在 JBoss 的站点上.他们前一段时间更改了存储库的位置.

更改网址的方法如下:

  1. 转到您的 ant 安装文件夹.

  2. 在您喜欢的文本编辑器中打开 fetch.xml.

  3. 搜索 http://repository.jboss.org/maven2 并将其替换为https://repository.jboss.org/nexus/content/repositories/thirdparty-发布/

再次运行可选命令:

<块引用>

ant -f fetch.xml -Ddest=system

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

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?

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

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?

解决方案

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. Go to your ant installation folder.

  2. Open fetch.xml in your favorite text editor.

  3. Search for http://repository.jboss.org/maven2 and replace it with https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/

Run the optional command again:

ant -f fetch.xml -Ddest=system

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

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