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 4010352
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:59:20+00:00 2026-05-20T08:59:20+00:00

I am rather noob at java jars deployment. I have following scenario: I have

  • 0

I am rather noob at java jars deployment. I have following scenario:
I have about 6 projects in eclipse and they are of various types (core project for common interfaces, projects containing osgi bundles, project with tests, project with servlets for web deployment).

I have growing problem of getting anything deployed quickly, today I am faced with OSGi bundle deployments, I want to quickly and reliably package my bundle and deploy it into container. Up to this day i was just doing it stupidly by exporting jar through eclipse and then editing the manifest.

I think the best way (without too much work) would be using one big Ant buildfile with targets that will solve things I need most urgently (createing OSGi bundles now) and then move more build logic, step by step, from eclipse into build file (i understand there is a easy way to run ant targets through eclipse and even replace autoprojectbuild logic of eclipse with custom build file).

So this is my plan:

1) create 1 master build file with everything in src directory (containing all projects)

2) create task for building project with OSGi bundle. Using manifest.txt with handcrafted manifest for my bundle and Copy Paste (via ant task) all jars, needed in this bundle and use Bundle-ClassPath to declare my inner bundle dependencies

3) create JUnit test runners as custom targets

4) create other targets for building various projects

5) finally before release, create big target “dist” to package whole software

So my 2 questions are:

Is this plan of mine good (in terms of development time and reasonable complexity)?

Are there any drawbacks using 1 big buildfile? I read part of Ant in Action book but it looks like multiple build files just causes more complications (it’s not easy to declare dependencies between projects. OTH with 1 big file i can use target depends attribute).

  • 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-20T08:59:21+00:00Added an answer on May 20, 2026 at 8:59 am

    Having a scripted build/deployment is almost always a good step. It just opens up many more possibilities for automating not just deployments, but test builds, continuous integration, etc. Personally I wouldnt get too hung up on trying to get the integration between eclipse (your IDE) and the build tool. If it works easily clicking something in eclipse, great, but its probably worth the effort becomming comfortable running the script from the command line. Separating these two concerns (development experience, from build lifecycle) will also open up more options if you find that ant isnt the right tool for your project, or maybe even you might want to move to a different IDE one day.

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

Sidebar

Related Questions

I have a rather large file (150 million lines of 10 chars). I need
I'd rather not have to resort to calling the command line. I'm looking for
We have a rather simple site (minimal JS) with plain html and CSS. It
I have a rather classic UI situation - two ListBoxes named SelectedItems and AvailableItems
Complete sql noob here. Trying to think about a way to store some data
I have a rather simple threading question. I'm writing a simple utility that will
I have a rather complex data structure I've implemented in Perl. This has been
Rather than population said DOM object with an external page such as HTML CFM
Rather than scraping a Ruby version of this algorithm off the net I wanted
A rather odd experience. Using the latest PDK (v7.3) from ActiveState, I used perlctrl

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.