LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-28-2020, 01:51 PM   #1
SINISTER750
Member
 
Registered: Sep 2020
Posts: 53

Rep: Reputation: Disabled
Unable to build Apache-ant-1.10.5


I'm trying to build BLFS 8.4
An error occurs when trying to download the runtime dependencies using the fetch.xml ant build script:

Code:
bootstrap/bin/ant -f fetch.xml -Ddest=optional
Error:
Code:
BUILD FAILED
/sources/BLFS/apache-ant-1.10.5/fetch.xml:212: The following error occurred while executing this line:
sources/BLFS/apache-ant-1.10.5/fetch.xml:122: Unable to resolve artifact: Missing:
--------
1) org.apache.ant:ant-antunit:jar:1.4

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.ant -DartifactId=ant-antunit -Dversion=1.4 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:

mvn deploy:deploy-file -DgroupId=org.apache.net -DartifactId=ant-antunit -Dversion=1.4 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.apache.maven:super-pom:pom:2.0
2) org.apache.ant:ant-antunit:jar:1.4

----------
1 required artifact is missing.

for artifact:
org.apache.maven:super-pom:pom:2.0

from the specified remote repositories:
central (http://repo1.maven.org/maven2/)
Due to hardware limitations I am building BLFS 8.4 on the host machine.

Last edited by SINISTER750; 10-28-2020 at 01:53 PM. Reason: Typing mistake
 
Old 10-29-2020, 01:54 AM   #2
SINISTER750
Member
 
Registered: Sep 2020
Posts: 53

Original Poster
Rep: Reputation: Disabled
Solution
Edit ./lib/libraries.properties and change the m2.repo URL from http to https (line 29)

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

And run

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

Again
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] installing apache ANT, can't create /usr/local/ant folder per ANT's manual jclark978 Linux - Newbie 1 12-11-2011 02:00 AM
How to setup ANT to build C++ project? ggyyree Programming 1 11-05-2009 09:44 PM
Automated build system - Using Trac0.11, buildbot and or ant? suggestions or howtos. Lantzvillian Linux - Server 1 07-07-2008 04:05 PM
How to use "ant" from J2EE SDK instead of installed ant in Fedora ? pcuongx Linux - Server 2 02-27-2007 04:45 AM
javadoc in ANT build file mcanallyd Linux - General 0 01-14-2007 03:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration