Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The cleanest way to do all of this is to first open the repositories tab and and then remove all existing repositories. We'll be adding a couple back in but it's cleaner if everything matches.

All Repositories ClearedImage Modified

Now that you've cleared out the repositories we'll start adding in all the repositories that are needed for cleanly building ONAP. All repositories added will be added as Proxy Repositories

...

Select 'Add...' -> 'Proxy Repository'

Nexus Add Proxy Repository.pngImage Modified

You will need to fill in the following information:

...

Select the 'Save' button as all the rest of the options will be left at their defaults.

Nexus Central Repository Configuration.pngImage Modified

Now that we've done one repository here is the information for all the repositories for which you can just take the defaults with the appropriate variables set.

Image Added

Image Added


Repository ID

...

There : SnapshotsThere is one more repository that you will want to mirror. This one needs a few extra variables set in the configuration.Repository ID: onap.snapshot

Repository Name: onap.snapshot Snapshots
Repository Policy: Snapshot
Remote Storage Locationhttps://nexus.onap.org/content/repositories/snapshots/ Not Found Cache TTL: 1 (NOTE: We have a few proxies on the same network as the master Nexus one so having a short negative TTL doesn't hurt much here. You can try adjusting this to higher values to help improve any negative caching misses)
Metadata Max Age: 5

...

You will want to press the |< button to move all of the Available Repositories into the Ordered Group Repositories box. After you have done that select opendaylight.snapshotselect Snapshot from the list and press the > button to move that back to the Available Repsositories section and press Save

Nexus Public Group Configuration.pngImage RemovedImage Added

The final step in utilizing this local proxy is modifying your personal (or build system's) .m2/settings.xml file to see it as a mirror. The following basic settings.xml file should be modified and placed in the proper place to make this work for your environment

...