The P2 source may be used when building eclipse RCP projects with MAVEN management:http://download.eclipse.org/releases/mars/
Intranet users will definitely want to be able to pass the Nexus Server Proxy, just like other maven sources.
This can be achieved by installing the P2 plugin to the Nexus: "Nexus-p2-repository-plugin" and "Nexus-p2-bridge-plugin"
Nexus Pro has these two plugins by default, and the Nexus OSS version needs to be downloaded manually.
--------------------------------------------------------------------------------------------------------------- ---------------------------------------------
1. Download plugins
To access the Central Warehouse search page: https://search.maven.org/
Search for "NEXUS-P2" and you can see the following search results:
Click "All" after "Nexus-p2-repository-plugin" and "Nexus-p2-bridge-plugin" respectively, then download the latest "Bundle.zip". Take "Nexus-p2-repository-plugin" as an example:
There will be two zip packages at this time: "Nexus-p2-repository-plugin-2.12.1-01-bundle.zip" and "Nexus-p2-bridge-plugin-2.12.1-01-bundle.zip"
Unzip the two packages into the Nexus plugin directory: ${nexus_installdir}/nexus/web-inf/plugin-repository
Then restart the Nexus Service: Service Nexus restart or./nexus restart
So the P2 plug-in will be installed.
2. Configure the Nexus agent Eclipse P2 source
Log in to the Nexus site with the administrator and add a new agent repository (proxy Repository):
Modify the following content:
Repository Id:eclipse-p2-repo
Repository Name:eclipse-p2-repo
Provider:p2
Remote Storage location:http://download.eclipse.org/releases/mars/
Click the "Save" button to finish adding the P2 agent repository.
This P2 's agent repository automatically generates an address, for example: http://${ip}:8081/nexus/content/repositories/eclipse-p2-repo/
Intranet users can access the Eclipse P2 source from this address.
Nexus Repository Manager OSS agent P2 source