If getting local repo from settings.xml, do it right#360
If getting local repo from settings.xml, do it right#360
Conversation
|
I would think the correct way to build settings is to use Though this is only used during tests, so that should be fine... |
|
Ideally, I'd drop all the deprecated stuff from maven-artifact as well (ArtifactRepo, layout...) as ultimately the goal here is "just" to get a file from local repo... To make it "proper" using SettingsBuilder and maybe SimpleLocalRepositoryManager from resolver, that would need all of maven and resolver (almost) just to perform this single thing... Maybe the UT is wrong, and all we need is just to have this commons artifact under |
|
There is an easier solution in #357, please have a look. |
|
Did you try with settings.xml having |
|
IMHO tests are wrong, local repo is used to discover path for artifacts to build classpath ... |
Yes, because the |
|
suppressed by ##366 - now pass path to local repo from executing Maven |
There are people who intentionally use non-default local repository locations, plus, they may have some expressions in the settings.xml...
So, if you do utilize code to get local repo from settings.xml, do it right. For me this whole stuff was not buildable due my (otherwise valid) settings.xml and non-default location of my local repository (that is on purpose not in default location).