Local Repository

Local repositories can be configured for a specific project group's use. This is where the artifacts used for building the projects can be found instead of the default ($USER_HOME/.m2/repository).

Click the Local Repositories link under the Administration section

Local Repositories

You will see all the local repositories that have been created.

To display:

In this screen you can add/edit/delete/purge a local repository.

You can purge a repository if it has a default Purge Configuration, otherwise the purge icon is disabled.

disabled purge icon

Adding / Editing a Local Repository

All fields are mandatory.

  • Name: must be a unique repository name.
  • Location: must be the absolute path of a unique repository location.
  • Layout: "default" or "legacy". Default layout is for maven2, while legacy layout is for maven1.

    Adding a local repository will automatically create a default Purge Configuration for that repository.

    If you're using distributed builds, you must configure a localRepository with the same name in the build agent's configuration file where the location is the local path to the local repository in the build agent machine. See Distributed Builds for more details.

Default

The default local repository location comes from the settings of the user running Continuum. The location cannot be edited within Continuum, but can be changed by specifying it in ~/.m2/settings.xml.

On Windows 7, you can pass the argument -Duser.home=C:\Users\<Username>\ to the JVM explicitly. Since running Continuum as an Administrator will give you a different user.home value.