Use Multiple P2 Remote Repositories with the Same Base URL

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide
ft:sourceType
Paligo

When using P2-enabled repositories with multiple remote repositories that have the same base URL (e.g http://download.eclipse.org ) , you need to ensure that only 1 remote repository is created within your virtual repository (for each base URL). When creating your virtual repository, Artifactory takes care of this for you, but if you are creating the remote repositories manually, you must ensure to create only a single remote repository, and point the sub-paths accordingly in the P2 virtual repository definition.

In the example below, http://download.eclipse.org/releases/helios and http://download.eclipse.org/releases/juno were both added to the same virtual repository...repository.

MultipleRemoteSameRepo.jpg

...but in fact, the virtual repository only really includes one remote repository

VirtualP2SingleRemote.jpg