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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:05:55+00:00 2026-06-14T13:05:55+00:00

I’m new at Git and GitHub, though I’ve been using Eclipse for years. I

  • 0

I’m new at Git and GitHub, though I’ve been using Eclipse for years. I want to upload several of my personal Java projects to GitHub, but they form a complex tree of dependencies, which are all referenced using Eclipse project dependencies (i.e., each project has other Eclipse projects on its classpath). I’d like to avoid using Maven if possible (I use it at work, but it’s slow, buggy, and a PAIN, not to mention I’d have to run my own repository somewhere, separately from GitHub), and I’d prefer if the solution would allow users to compile the projects with or without Eclipse (possibly with Ant buildfiles or somesuch).

My question is: Is there some standard way to upload GitHub repositories with dependencies on other repositories? It seems like submodules are what I’m looking for, but would that create duplicates of every project inside every other project? Or is Maven really the best/only way to do this properly? I’d like it if users could just git clone or ant build and have all of the project’s dependencies downloaded and ready to compile, without mangling my project structure too badly.

An example of this setup: I have 3 Eclipse projects, A, B, and C. B and C are on A’s classpath, but A, B, and C are all in separate Git repositories. I would like a user to be able to git clone and ant build A, and, at some point in this process, have B and C automatically downloaded so that A will compile.

  • 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-14T13:05:57+00:00Added an answer on June 14, 2026 at 1:05 pm

    If I understand the question correctly, you want to split your project into multiple repositories, and then use some automatic mechanism to get all dependencies transitively either during git clone or during the build phase. For this reason, you want to encode this dependency information somewhere in the configuration.

    I see basically three solutions for this issue (regardless of build technology):

    1. Git submodules encode this information in the git repository. This way, you cannot checkout your projects without the dependencies. However, this may result in having the same repository downloaded multiple times, as you stated.

    2. The alternative is to encode this information in the build system. In this case, you have a separate build for each repository, while all built binaries are put into a common repository (either a Maven or an Eclipse p2 repository, or even a central FTP storage might do); dependencies are queried from this central repository during build.

    3. Or you could ask your user to ensure all required source projects are available (in Eclipse you can use a Team project set for this reason), and then build them together.

    In my experience, solution 2 or 3 are the most common ones. If you can setup any kind of repository, it is the best way, as all your projects can be built and reused independently (that is a huge plus for plug-in projects). I am sure a p2 repository can be hosted in SVN or Git, as only HTTP requests are used to download the source. I believe, the same is possible for Maven repositories, but I have not seen such a repository working.

    So, I suggest you build a p2 repository (can be done in Ant, but seems simpler in Maven Tycho), and split the projects to several repositories.

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

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I want use html5's new tag to play a wav file (currently only supported
I have been unable to fix a problem with Java Unicode and encoding. The
I have thousands of HTML files to process using Groovy/Java and I need to
I am using Paperclip to handle profile photo uploads in my app. They upload
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but

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.