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
精彩评论