Не удалось собрать Apache -ant -1.10.5

Я не уверен, решит ли это вашу проблему, но обычный подход состоит в том, чтобы создать мост в основном пространстве имен и просто сделать veth1_0и veth2_0членами моста.

Затем вы дали veth1и veth2правильные IP-адреса в соответствующих пространствах имен, при необходимости добавили маршрутизацию, позволили стеку IP делать свое дело и перестали беспокоиться о пакетах Ethernet. В частности, не используйте ничего похожего на pcap.

0
28.10.2020, 21:31
1 ответ

Я попытался собрать версию вручную, используя инструкции из Building Ant (Ant manual)в сочетании с Установка Apache Ant (BLFS 8.4)и получил вашу ошибку:

$ export JAVA_HOME=/path/to/my/java-11-openjdk-amd64
$./bootstrap.sh
$ bootstrap/bin/ant -f fetch.xml -Ddest=optional
...
[artifact:dependencies] Downloading: org/apache/ant/ant-antunit/1.4/ant-antunit-1.4.pom from repository central at http://repo1.maven.org/maven2/
[artifact:dependencies] Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/org/apache/ant/ant-antunit/1.4/ant-antunit-1.4.pom
[artifact:dependencies] [WARNING] Unable to get resource 'org.apache.ant:ant-antunit:pom:1.4' from repository central (http://repo1.maven.org/maven2/): Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/org/apache/ant/ant-antunit/1.4/ant-antunit-1.4.pom
[artifact:dependencies] Downloading: org/apache/ant/ant-antunit/1.4/ant-antunit-1.4.jar from repository central at http://repo1.maven.org/maven2/
[artifact:dependencies] Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/org/apache/ant/ant-antunit/1.4/ant-antunit-1.4.jar
[artifact:dependencies] [WARNING] Unable to get resource 'org.apache.ant:ant-antunit:jar:1.4' from repository central (http://repo1.maven.org/maven2/): Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/org/apache/ant/ant-antunit/1.4/ant-antunit-1.4.jar
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
...

Если вы откроете http://repo1.maven.org/maven2/org/apache/ant/ant-antunit/1.4/ant-antunit-1.4.pom, вы увидите, что https требуется.

Решение

Отредактируйте ./lib/libraries.propertiesи измените URL m2.repoс httpнаhttps(строку 29)

# Repository to use by default for fetching dependencies.
m2.repo=https://repo1.maven.org/maven2/

и запустите

bootstrap/bin/ant -f fetch.xml -Ddest=optional

снова.

1
18.03.2021, 22:54

Теги

Похожие вопросы