user friendly artifact procurement in maven

柔情痞子 提交于 2019-12-11 12:09:00

问题


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.


回答1:


Suggest using the Maven Enforcer Rules plugin.



来源:https://stackoverflow.com/questions/22011656/user-friendly-artifact-procurement-in-maven

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!