Skip to content

Commit f168b40

Browse files
authored
RRF: Place remark about broken MRMs (#1820)
* RRF: Place remark about broken MRMs In certain cases, when group/virtual repositories are involved, and MRMs leak random resources from member repositories, document the possible circumvention. * Apply suggestion from @cstamas
1 parent 50cbed3 commit f168b40

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/site/markdown/remote-repository-filtering.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,9 @@ activity:
212212
This leads to the following "constraints":
213213
* "Maven Central" is asked only for those artifacts it claims it may have (prefixes)
214214
* "Some Remote" is asked only for allowed groupIds. If it publishes prefixes, is even better: you will not ask for things it for sure does not have.
215+
216+
## Broken Maven Repository Managers
217+
218+
Users of certain Maven Repository Managers (MRM) reported issues with filtering, breaking their builds. Usually the issue involves grouped/virtual repositories where MRM leaks random resources from member repositories, like the `prefixes.txt` is. Naturally, as MRM leaks one member prefixes file, and Maven is "tricked" into belief it got proper prefixes file from remote repository, builds will fail with message like **Prefix `$PREFIX` NOT allowed from `$SERVER_ID`** (where `$PREFIX` is some artifact prefix, and `$SERVER_ID` is some remote repository ID).
219+
220+
In this case, user should disable prefix discovery by using `-Daether.remoteRepositoryFilter.prefixes.resolvePrefixFiles=false` user property to prevent Maven attempting to resolve prefixes file from such broken MRMs.

0 commit comments

Comments
 (0)