https://bz.apache.org/bugzilla/show_bug.cgi?id=64323
Bug ID: 64323
Summary: Default dependency repo fails to load due to 501 error
Product: Ant
Version: 1.9.14
Hardware: PC
Status: NEW
Severity: minor
Priority: P2
Component: Build Process
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Running ant -f fetch.xml -Ddest=system during the install process as suggested
in the guide (https://ant.apache.org/manual/install.html) results in the
following error:
[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
Visiting the repo page directly results in the following message:
501 HTTPS Required.
Use https://repo1.maven.org/maven2/
More information at https://links.sonatype.com/central/501-https-required
Fetch.xml sets antunit as a target for the URL:
<target name="antunit"
description="load AntUnit library"
depends="init">
<f2 project="org.apache.ant" archive="ant-antunit"/>
</target>
The repo value is set in libraries.properties under ..\apache-ant-1.9.14\lib:
# Repository to use by default for fetching dependencies.
m2.repo=https://repo1.maven.org/maven2/
After changing m2.repo value to “https” instead of “http”, the library
dependency command completes without error.
This should be https by default.
--
You are receiving this mail because:
You are the assignee for the bug.