For example, let's say I have a Maven build file that has dependencies located in two different repositories:
<repository>
<id>id1</id>
<name>id1</name>
<url>http://localhost/mavenRepo/repository1</url>
</repository>
<repository>
<id>id2</id>
<name>id2</name>
<url>http://localhost/mavenRepo/repository2</url>
</repository>
With one dependencies from the first repository and the other from the second repository. How can I do this?