Maven Repositories: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Maven Concepts")
 
No edit summary
Line 1: Line 1:
=External=
* Introduction to Repositories https://maven.apache.org/guides/introduction/introduction-to-repositories.html
=Internal=
=Internal=


* [[Maven Concepts#Repositories|Maven Concepts]]
* [[Maven Concepts#Repositories|Maven Concepts]]
=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=
<pre>
...
<repositories>
    <repository>
        <id>my-internal-site</id>
        <url>http://myserver/repo</url>
    </repository>
</repositories>
</pre>

Revision as of 06:53, 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>