[ https://issues.apache.org/jira/browse/MENFORCER-496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17829685#comment-17829685 ]
Konrad Windszus commented on MENFORCER-496: ------------------------------------------- This is already possible via {{requireNoRepositories}} (https://maven.apache.org/enforcer/enforcer-rules/requireNoRepositories.html) with parameter {{allowedRepositories}}. > Add rule to enforce a specific repository id > -------------------------------------------- > > Key: MENFORCER-496 > URL: https://issues.apache.org/jira/browse/MENFORCER-496 > Project: Maven Enforcer Plugin > Issue Type: Improvement > Components: Standard Rules > Reporter: Konrad Windszus > Priority: Major > > Very often in corporate environments a MRM is used which requires certain > credentials (maintained per id in {{settings.xml}}) both for uploading as > well as for downloading artifacts. It is crucial that both the repository > within [distribution managment|https://maven.apache.org/pom.html#Repository] > as well as the [repository for downloading > dependencies|https://maven.apache.org/pom.html#Repositories] from that MRM > uses a certain id. > It would be beneficial to be able to enforce a certain id for repository URLs > matching a certain pattern. -- This message was sent by Atlassian Jira (v8.20.10#820010)