Repository: buildr Updated Branches: refs/heads/master 2f1437922 -> 6eb4586d3
Add mirrors documentation after BUILDR-476 Project: http://git-wip-us.apache.org/repos/asf/buildr/repo Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/6eb4586d Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/6eb4586d Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/6eb4586d Branch: refs/heads/master Commit: 6eb4586d32a4e258868d627bc2c400cbcce522c3 Parents: 2f14379 Author: Antoine Toulme <[email protected]> Authored: Sat Aug 13 23:37:56 2016 -0700 Committer: Antoine Toulme <[email protected]> Committed: Sat Aug 13 23:37:56 2016 -0700 ---------------------------------------------------------------------- doc/artifacts.textile | 14 ++++++++++++++ doc/settings_profiles.textile | 4 ++++ 2 files changed, 18 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/buildr/blob/6eb4586d/doc/artifacts.textile ---------------------------------------------------------------------- diff --git a/doc/artifacts.textile b/doc/artifacts.textile index 5303e60..4ee1f3f 100644 --- a/doc/artifacts.textile +++ b/doc/artifacts.textile @@ -145,6 +145,20 @@ Buildr downloads artifacts when it needs to use them, for example, to compile a $ buildr artifacts {% endhighlight %} +h3(#mirrors). Mirrors + +You can specify mirrors to override remote repositories. This is useful when you use a Nexus proxy or Artifactory, for example. + +You can use the same syntax as @repositories.remote@, for example: + +{% highlight ruby %} +repositories.mirrors << 'http://corporateserver001.com/repository' +{% endhighlight %} + +This is even more useful when you place this in your user settings. + +See the "Settings/Profiles section":/settings_profiles.html. + h2(#downloading). Downloading Artifacts http://git-wip-us.apache.org/repos/asf/buildr/blob/6eb4586d/doc/settings_profiles.textile ---------------------------------------------------------------------- diff --git a/doc/settings_profiles.textile b/doc/settings_profiles.textile index 52bd8ab..59afa7f 100644 --- a/doc/settings_profiles.textile +++ b/doc/settings_profiles.textile @@ -81,6 +81,10 @@ repositories: remote: - https://intra.net/maven2 - http://example.com + + # specify the corporate mirror + mirrors: + - http://www.corporateserver001.com/repo release_to: url: http://intra.net/maven2
