So, I have the following setup in Eclipse (Java):
Not sure if this is what you're looking for. Try this -
Basically, you're exporting the Project1 dependency from project2. So any project that adds project2 as a dependency will see Project1 too without explicitly having to add it to the classpath. Eclipse will transparently do that.