I have a project that needs to fetch artifacts from two different repos. And even the artifacts inside the repos have dependencies to one another. For example, my project might depend on artifact A (in repo 1), which depends on artifact B( in repo 2), which again depends on artifact C (in repo 1 again).
I am having a lot of trouble configuring my settings.xml to make it work (For example mvn always tries to go to repo 1 for artifact B, which is wrong). Anybody got a clue how exaclty this is decided in maven?