(In case it matters, these are Java Android projects)

Project A is a library project.

Project B depends on A. For ease of project management across the board for other people instead of just me, A is contained within B via a git submodule.

This means, if I want to make changes to both A and B, I will have the following:

  1. Project A itself
  2. Project B
  3. B's submodule of A, let's call it A'. Same code, same project name, different location on disk.

Ideally I would like to be able to meet the following conditions:

  1. Be able to modify A itself directly within Eclipse.
  2. Be able to modify B and have it build, referencing A', all within Eclipse.
  3. I don't really need A' as an imported project / no need to modify it, but I'd like it to automatically build its jar file and have that be referenced by B.

What I've tried:

  1. Simply importing both A and A': Doesn't work, because Eclipse cannot import two projects with the same name. I can't simply change the name either because it's a submodule; would have to do that every git update, unacceptable.
  2. Adding External Library reference to A', keeping it out of Eclipse entirely: actually not too bad of a solution, but requires at least one external build of it from the command line (using ant) before it will work...not the most convenient.
  3. Doing a Source Link: Not the cleanest because A (and subsequently A') have multiple source folders within them, so I'd have to update each time I
Edit
Report