How to specify a repository for a dependency in Maven
Not possible. Maven checks the repositories in their declaration order until a given artifact gets resolved (or not). Some repository manager can do something approaching this though. For example, Nexus has a routes feature that does something equivalent.