I'm working on an External System integration. I have some questions about importing multi-module projects.
Edit: I have simplified the question
Imagine I have a project A and a project B. The user has linked both of these projects explicitly. I would like to create a dependency between them, say because project B represents artifact foo:bar:1.0.0 and project A has a dependency on that artifact. The maven integration will detect this case and create a module dependency rather than a library, which is really useful for editing. My leiningen integration does this too, but it pre-dates the External System API and doesn't use it either.
In this case, I can't see a way to do this, because resolveProjectInfo() will be called twice, once for each linked project. When it's called I have no access to wider project context, so when project A is resolved there's no way to know that there's a project B representing that artifact.