Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
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 <updatePolicy>always</updatePolicy> 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.
Attachments
Issue Links
- is duplicated by
-
MNG-6612 Ability to set repository of dependency
- Closed
-
MNG-7081 Proxyless Repository Content Filtering
- Closed
-
MNG-7178 Why can't Maven set content like Gradle to handle multiple repositories
- Closed
-
MNG-7461 Maven to exclude list/wildcard of groupId's or artifactId's from particular repository
- Closed
- relates to
-
MRESOLVER-274 Introduce Remote Repository Filter feature
- Closed