Lars Corneliussen I looked in mojo sources of maven-dependency-plugin:sources, It use the same maven artifact resolver, and provide all remote repositories from the project, therefore It try to resolve source artifacts from all repositories.
So, I have no idea how to resolve PDBs from the same repo the dll was resolved from.
Notes: I see that maven source resolver also ignore ArtifactResolutionException (it's seem to be a connection error) when try to resolve source artifacts. How do you think, should you ignore it in PDB artifact contributor also?
My question is: why we need to limit resolving PDBs artifacts to one repo? Why if I have to repositories external and internal, external contains all artifacts without sources(PDBs) and internal the same artifacts with sources, and we have a project which have reference to these repositories. So if artifact will be resolved from external repository we cannot be able to resolve PDB artifact in this case.