Skip to content

RRF: No Catch-All available when you only want to deny some groupIds #1668

@bmarwell

Description

@bmarwell

Affected version

4.0.0-rc-4

Bug description

Use case

For a specific repository, you do not want to make requests for certain artifacts identified by groupId, e.g. invalid.mycompany.

Problem description

When creating a RRF for groupIds which are not to be loaded from a specific repository:

!invalid.mycompany

Then no artifact will be loaded at all from this repository:

[INFO] Loaded 3 group rules for remote repository maven-central
[INFO] [stdout] ?
[INFO] [stdout]   ?invalid
[INFO] [stdout]     -mycompany

[…]

[ERROR] Extension eu.maveniverse.maven.mimir:extension3:0.10.4 or one of its dependencies could not be resolved: Plugin eu.maveniverse.maven.mimir:extension3:0.10.4 or one of its dependencies could not be resolved:
	G:eu.maveniverse.maven.mimir NOT allowed from nexus-central (https://repo.company.invalid/repository/maven-central/, default, releases)

There is no (documented) catch-all either: https://maven.apache.org/resolver/remote-repository-filtering.html

Workaround

As a workaround, just define everything as allowed before that:

aopalliance
ch
eu
de
dev
com
commons-beanutils
commons-cli
commons-codec
commons-collections
commons-chain
commons-digester
commons-io
commons-jxpath
commons-lang
commons-logging
dom4j
guru
jakarta
javax
info
io
log4j
net
nl
org
oro
xerces

!invalid.mycompany

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions