問題描述
Множныя рэпазітары Maven3 (Maven3 multiple repos)
I'm new to Maven. I have a POM that does not specify a repo, and I want to download Spring's mobile stuff, and the maven directions specify a repo:
<repository>
<id>springsource‑repo</id>
<name>SpringSource Repository</name>
<url>http://repo.springsource.org/release</url>
and
<repository>
<id>springsource‑milestone</id>
<name>SpringSource Milestone Repository</name>
<url>http://repo.springsource.org/milestone</url>
How do I edit my POM to use these repos for the Spring mobile dependencies, but keep on using the master repo for the other dependencies?
‑‑‑‑‑
參考解法
方法 1:
Did you try out adding repositories tag as mentioned in maven.apache.org/guides/mini/guide‑multiple‑repositories.html