Maven Repositories: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 25: Line 25:
     </repository>
     </repository>
</repositories>
</repositories>
...
</pre>
</pre>

Revision as of 06:54, 4 June 2016

External

Internal

Overview

A repository is used to hold build artifacts and dependencies of varying types. There are only two types of repositories: local and remote.

A local repository is a cache of the remote downloads and also contains temporary build artifacts.

A remote repository is accessed over a network protocol such as http:// or even file://. They may be set up by other organizations, or by your own organization in order to share artifacts between different development teams.

Adding a Remote Repository

...
<repositories>
    <repository>
        <id>my-internal-site</id>
        <url>http://myserver/repo</url>
    </repository>
</repositories>
...