Skip to content

feat(java): Support for Maven 4 settings.xml #9908

@knqyf263

Description

@knqyf263

Description

Maven 4 introduces:

  • Project-specific settings at ${session.rootdir}/.mvn/settings.xml (apache/maven@e6303aa)
  • Repositories defined directly under settings > repositories (docs)

Trivy should support both behaviors.

Expected Behavior

  • Detect and read ${session.rootdir}/.mvn/settings.xml if present
  • Support repositories defined at the root of settings.xml (settings > repositories)

Discussed in #9896

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.target/filesystemIssues relating to filesystem scanning

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions