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

  • Home
  • SEARCH
  • 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 6747951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:30:26+00:00 2026-05-26T12:30:26+00:00

I have successfully created a buildfile which builds my application. There is a dependency,

  • 0

I have successfully created a buildfile which builds my application. There is a dependency, which is automatically downloaded to ~/.m2/repository/ and provided at compile time. I can now easily build the application.

The question is: how do I easily start this application with the specified dependencies in the class path?

My build file is:

repositories.remote << 'http://repo1.maven.org/maven2'

JLINE = transitive('jline:jline:jar:1.0')

define 'ishell' do
  project.version = '0.1.0'
  compile.with JLINE
  package :jar
end

Building is now easy: just “buildr”. How to run it without describing all dependencies at the command line?

  • 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-05-26T12:30:26+00:00Added an answer on May 26, 2026 at 12:30 pm

    You can add this line to the project definition in the buildfile:

      run.using :main => "org.example.Main"
    

    And now you can run the application with “buildr run”

    This is described in a well hidden place: http://buildr.apache.org/more_stuff.html#run

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

Sidebar

Related Questions

I have successfully upgraded an MFC application which was compiled with an old version
I have successfully created my data source, which is a CLR object of the
I have successfully created a asp mvc app which basically has interface, service and
I have successfully created a GMF editor which draws models based on my EMF
I have successfully created a PHP REST API which resides on my server. I
I have successfully created a Python Windows service using pywin32. In testing my application
I am using WCF for the first time. I Have successfully created the service
I have created a Java application which has the following Apache Ant build file:
I have successfully created an app that reads from a bundled .plist file and
I have successfully implemented interop beftween Win32 application and managed .Net dll as described

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.