Add Maven repositories for a project in Eclipse?

Savio Mathew picture Savio Mathew · Mar 15, 2013 · Viewed 82.6k times · Source

How can I add Maven repositories for a project. I'm using Eclipse Juno version: Juno Service Release 1 Build id: 20120920-0800 and using Fedora as my OS.

Answer

greenkode picture greenkode · Mar 15, 2013

You can include it in your pom.xml. Just add the repositories information inside the <project> tag

<repositories>
    <repository>
        <id>maven-restlet</id>
        <name>Public online Restlet repository</name>
        <url>http://maven.restlet.org</url>
    </repository>
</repositories>