You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tamas Cservenak (Jira)" <ji...@apache.org> on 2023/01/04 22:08:00 UTC

[jira] [Closed] (MRESOLVER-309) PrefixesRemoteRepositoryFilterSource aborts the build while it should not

     [ https://issues.apache.org/jira/browse/MRESOLVER-309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tamas Cservenak closed MRESOLVER-309.
-------------------------------------
    Resolution: Fixed

> PrefixesRemoteRepositoryFilterSource aborts the build while it should not
> -------------------------------------------------------------------------
>
>                 Key: MRESOLVER-309
>                 URL: https://issues.apache.org/jira/browse/MRESOLVER-309
>             Project: Maven Resolver
>          Issue Type: Bug
>            Reporter: Tamas Cservenak
>            Assignee: Tamas Cservenak
>            Priority: Blocker
>             Fix For: 1.9.3
>
>
> The PrefixesRemoteRepositoryFilterSource caches layouts, and it is to jumpy when a non existent (or unsupported) layout like "legacy" is stepped on, as PrefixesRemoteRepositoryFilterSource.cacheLayout will wrap the NoRepositoryLayoutException into RuntimeException that will "bubble up" to surface, stopping the build.
> What really should happen is that in this case filter "stands off", as transfer will anyway fail (due unsupported layout), but it will fail gracefully, while it MAY succeed using other remote repository.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)