All of a sudden, we get the following error message.
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':foobar:foo.bar:ideaModule'. > Could not resolve all dependencies for configuration 'detachedConfiguration2'. > Module version group:foo, module:foo.bar, version:1.0.0-SNAPSHOT, configuration:detachedConfiguration2 declares a dependency on configuration 'archives' which is not declared in the module descriptor for group:xxx, module:xxx.yyy, version:1.2.0-SNAPSHOT
xxx:xxx.yyy is an internal dependency in the same multi-module project. ideaModule tries to resolve javadoc and source jars from our nexus repository where no such artifacts are currently present due to the previously reported issue.
So while this is a side effect of another problem, it is quite strange anyway. Why are the artifacts resolved from the remote repository instead of simply created?