开发者

Best way to separate storing of dependent artifacts for projects and plugins

开发者 https://www.devze.com 2023-02-28 04:03 出处:网络
In maven 3 we can separate the dependent artifacts for projects and plugins. What is the best way to do this with a repo manager (nexus ...) if you have proxied and hosted repos? Any examples how def

In maven 3 we can separate the dependent artifacts for projects and plugins.

What is the best way to do this with a repo manager (nexus ...) if you have proxied and hosted repos? Any examples how define this in settings.xml/pom.xml?

Must a duplicate every proxied repo for plugin a开发者_如何学Cnd project dependencies?


Using Artifactory, you may create virtual repositories that aggregate "real" (local\remote) repositories and have one virtual repository aggregate only plugin repositories and another to aggregate only standard library repositories.

As you've already guessed, if you must have a strong separation between plugin and lib dependencies from a proxied remote repository, you'll need to create a duplicate definition for each one and add them to their respective virtual repositories.

Once this setup is done, simply reference the URLs of the virtual repositories in your settings.xml\pom.xml

0

精彩评论

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

关注公众号