Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8968913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:31:12+00:00 2026-06-15T17:31:12+00:00

When trying to build this project: project_layout = Layout.new project_layout[:source,:main,:java] = ‘src’ project_layout[:source,:test,:java] =

  • 0

When trying to build this project:

project_layout = Layout.new
project_layout[:source,:main,:java] = 'src'
project_layout[:source,:test,:java] = 'test'

define 'hausaufgaben', :layout => project_layout do
    project.version = '1.0'
    package :jar
end

I’m getting this error:

RuntimeError : Unable to download org.apache.ant:ant:jar:1.8.3. No remote repositories defined.

From this message I gather that buildr uses ant internally (strange, I’d have thought it uses Rake for building). The Quickstart doesn’t mention this. What’s even more annoying is that I already have ant (1.8.2 rather than 1.8.3, but that shouldn’t make such a huge difference), and strangely enough there are no complaints as long as buildr doesn’t find any java files (tested this by leaving the layout at its default value).

Now to the actual question: Do I have to add a repository where buildr can find ant, or can I do this otherwise?

For the record: I installed buildr with jruby -S gem install buildr and run it with jruby -S buildr package.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:31:13+00:00Added an answer on June 15, 2026 at 5:31 pm

    Buildr uses Rake to do task dependency evaluation and execution. However, Rake doesn’t have any knowledge of how to build Java projects specifically. Rather than re-writing every task it supports in ruby, Buildr uses ant tasks to implement some of its own tasks. (One I can think of off hand is running JUnit tests; I’m sure there are others.) So, Buildr needs Ant.

    You can either add the appropriate remote repository or ensure that the correct version of the ant jar is in the m2 cache on every machine that will use your buildfile. For the artifact in your error message, the expected path would be $HOME/.m2/repository/org/apache/ant/ant/1.8.3/ant-1.8.3.jar.

    Note that ant is likely not the only dependency that buildr will attempt to download. You’ll have to do this manual resolution for each dependency if you don’t want to have a remote repository defined.

    (Note that if you run buildr in a directory without a buildfile, it will offer to generate one for you. The one it generates will have an appropriate remote repository set up.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build this layout: I have this at this time: http://jsfiddle.net/Gh6mB/12/ The
I'm trying to build in my Layout this kind of line: Total......................1000 I need
I'm trying out log4j in a simple test app. I create a new Java
I'm trying to build an open source project in Sharpdevelop, but the tests don't
I am trying to build a very simple C++ unit test project. The setup
I am trying to build a Flex project with flash builder 4.6. This project
I'm trying to build a Python package for this project that includes the .json
I'm trying to build a new .NET C++ project from scratch. I am planning
Trying to build openssl-fips-2.0 with NDK, before I was lucky found this link and
i am trying to build simple php crawler for this purpose i am getting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.