开发者

Restricting local Nexus repository to access Central

开发者 https://www.devze.com 2023-01-06 04:02 出处:网络
We are planning to release our corporate nexus repository to the developers. The problem in hand is that, we would like to enforce standards on the versions of jars that could be downloaded from the r

We are planning to release our corporate nexus repository to the developers. The problem in hand is that, we would like to enforce standards on the versions of jars that could be downloaded from the repository. For example, If we already have Spring framework version 3 available in nexus as an organization standard, then the developers cannot download the latest version of the spring eg 3.3 using nexus unless it is approved by the technical architect.

One can say that there is no way to do it since the developers can directly point to central and download the jars. But this scenario will be handled in the daily hudson CI build which uses jars from nexus only.

Our initial proposal was to set up nexus with agreed versions of the libraries and then to change the nexus 开发者_开发问答proxy settings so that it cannot reach central. Is there a better idea than this?


Looks like you could use one of the features of Nexus Professional:

A procurement suite which allows Nexus administrators to define inclusion and exclusion rules for artifacts in proxy repositories

See the chapter on Nexus Procurement Suite from the online reference.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号