Unable to properly install binary edition of Apache Ant

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 16:09:45

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/7687383/unable-to-properly-install-binary-edition-of-apache-ant

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!