aquasecurity/trivy

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

Closed

#9989 opened on Dec 25, 2025

View on GitHub
 (3 comments) (1 reaction) (1 assignee)Go (35,000 stars) (371 forks)batch import
help wantedkind/feature

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