开发者

PlayFramework private repos

I m currently setting up play in my agency. I'd like to do some gouvernance wit开发者_C百科h the module the developpers can use.

Is it possible to host mirror repositories of the Play modules and Maven library and to configure play to only use these repositories? I have read this documentation but I didn't see how to do it?

Thanks for your responses


The key for me getting play to use my nexus repository rather than mavenCentral was to name my nexus repository in dependencies.yml as "mavenCentral":

repositories:
    - mavenCentral:
        type: iBiblio 
        root: "http://nexus.mydomain.com/nexus/content/groups/public/"
        contains:
            - com -> *
            - org -> *
            - play -> *


You can add your own local (custom) module repositories for Play, see here. On Maven dependencies, you can just deploy your own Nexus server (or equivalent).

This would let you limit the modules the devs can use.

You could also flag the dependencies.yml file in your repository as "read only" (assuming your source code repository allows it), so you can use the existing sources for modules and Jars (official Play, Maven) but devs can't change dependencies.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜