aquasecurity/trivy

feat(maven): add `mirrors` support for settings.xml files

Closed

#9,989 opened on Dec 25, 2025

 (3 comments) (1 reaction) (1 assignee)Go (371 forks)batch import
help wantedkind/feature

Repository metrics

Stars
 (35,000 stars)
PR merge metrics
 (Avg merge 5d 2h) (53 merged PRs in 30d)

Description

Description

We have already added repository retrieval from the profiles field. But Trivy should also check mirrors.

    <mirrors>
        <mirror>
            <id>mycompany-maven-central-mirror</id>
            <name>mycompany-maven-central-mirror</name>
            <url>https://mycompany.example.com/repository/maven-central-mirror</url>
            <mirrorOf>central</mirrorOf>
        </mirror>
    </mirrors>

Contributor guide