Maven中用户友好的工件采购 [英] user friendly artifact procurement in maven

查看:134
本文介绍了Maven中用户友好的工件采购的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要有关我们团队中使用的库和框架的约定.最好是只在允许使用org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.3"之类的地方键入内容,然后自动允许此依赖项和所有传递性依赖项.哪个存储库和哪个功能支持它?我尝试了nexus的采购功能,但是它可以与已加载的工件一起使用,并且不允许/不允许传递依赖关系(IMHO nexus采购实现只是用户不友好的观点).我也尝试使用nexus的路由功能-我制定了阻止所有但..."(((?!plugins).)*)规则,但似乎只允许这样一个规则.

We need convention about libraries and frameworks we use in our team. It will be best if we just type somewhere something like "allowed to use org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.3" and then this dependency and all transitive dependencies is allowed automatically. Which repository and which capability supports it? I try procurement capability of nexus, but it works with already loaded artifacts and not allows/disallows transitive dependencies(IMHO nexus procurement implementation is just not user-friendly point of view). I also try routing capability of nexus - i make "block all but ..."( ((?!plugins).)* ) rule, but seems that only one such rule allowed.

推荐答案

建议使用 Maven Enforcer规则插件.

这篇关于Maven中用户友好的工件采购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆