-
Notifications
You must be signed in to change notification settings - Fork 142
Description
Affected version
1.9.24, 2.0.9
Bug description
Reading the documentation :
modifier (must be first, or second if negation modifier present) = is limiter (equals; by default entry is “and below this G”)
And
Line 3 means “allow org.apache.maven G and below”. Line 4 is “disallow org.apache.maven.foo” only" (so org.apache.maven.foo.bar is allowed due first line). Line 5 means “disallow org.apache.maven.indexer and below” and finally line 6 means “allow org.apache.bar ONLY” (so org.apache.bar.foo is NOT enabled).
So I expected that if I add org.apache in my groupId filtering file, then org.apache.maven will be accepted.
But when I test with maven3 3.9.11 (resolver 1.9.24) I get :
[ERROR] Plugin org.apache.maven.plugins:maven-compiler-plugin:3.13.0 or one of its dependencies could not be resolved:
[ERROR] The following artifacts could not be resolved: org.apache.maven:maven-parent:pom:41 (present, but unavailable): G:org.apache.maven NOT allowed from central (https://repo.maven.apache.org/maven2, default, releases)
And with maven4 4.0.0-rc-4 (resolver 2.0.9), I get pretty much the same:
[ERROR] Plugin org.apache.maven.plugins:maven-compiler-plugin:3.13.0 or one of its dependencies could not be resolved:
[ERROR] The following artifacts could not be resolved: org.apache.maven:maven-parent:pom:41 (present, but unavailable): G:org.apache.maven NOT allowed from central (https://repo.maven.apache.org/maven2, default, releases) (remote repositories: central (https://repo.maven.apache.org/maven2, default, releases), plexus.snapshots (https://oss.sonatype.org/content/repositories/plexus-snapshots, default, snapshots)): Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:3.13.0: One or more requests failed
Is it a bug OR did I miss something ? 🙏