[MNG-6763] Restrict repositories to specific groupIds
- Dominant language
- Java
- Stars
- 5.3k
- Forks
- 3.1k
- Avg merge
- 20h 42m
- Merged PRs (30d)
- 297
Description
**[dennis lucero](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=striderapache)** opened **[MNG-6763](https://issues.apache.org/jira/browse/MNG-6763?redirect=false)** and commented
It should be possible to restrict the repositories specified in settings.xml to specific groupIds. Looking at https://maven.apache.org/ref/3.6.2/maven-settings/settings.html#class_repository, it seems this is currently not the case.
Background: We use Nexus to host our own artifacts. The settings.xml contains our Nexus repository with \always\ because sometimes a project is built while a dependency is not yet in our Nexus repo – without updatePolicy, it would take 24 hours or manual deletion of metadata to make Maven re-check for the missing dependency.
Additionally, we use versions-maven-plugin:2.7:display-dependency-updates in our build process.
This results in lots of queries (more than 300 in a simple Dropwizard project) to our repo which will never succeed. If we could specify that our repo only supplies groupIds beginning with org.example, Maven could skip update checks for groupIds starting with com.fasterxml.jackson and so on, speeding up the build process.
---
**Issue Links:**
- [MNG-6612](https://issues.apache.org/jira/browse/MNG-6612) Ability to set repository of dependency
(_**"is duplicated by"**_)
- [MNG-7081](https://issues.apache.org/jira/browse/MNG-7081) Proxyless Repository Content Filtering
(_**"is duplicated by"**_)
- [MNG-7178](https://issues.apache.org/jira/browse/MNG-7178) Why can't Maven set content like Gradle to handle multiple repositories
(_**"is duplicated by"**_)
- [MNG-7461](https://issues.apache.org/jira/browse/MNG-7461) Maven to exclude list/wildcard of groupId's or artifactId's from particular repository
(_**"is duplicated by"**_)
- [MRESOLVER-274](https://issues.apache.org/jira/browse/MRESOLVER-274) Introduce Remote Repository Filter feature
6 votes, 12 watchers
Contributor guide
Assessment
This issue has not been assessed yet.