Skip to content

Logging from Lucene not collected to Maven logs #7120

@OrangeDog

Description

@OrangeDog

Describe the bug
These logs from Apache Lucene are going direct to console instead of via Maven's logging.

[INFO] Finished Version Filter Analyzer (0 seconds)
Oct 30, 2024 5:07:44 PM org.apache.lucene.store.MemorySegmentIndexInputProvider <init>
INFO: Using MemorySegmentIndexInput with Java 21 or later; to disable start with -Dorg.apache.lucene.store.MMapDirectory.enableMemorySegments=false
Oct 30, 2024 5:07:44 PM org.apache.lucene.internal.vectorization.VectorizationProvider lookup
WARNING: Java vector incubator module is not readable. For optimal vector performance, pass '--add-modules jdk.incubator.vector' to enable Vector API.
[INFO] Created CPE Index (1 seconds)

Version of dependency-check used
Maven plugin 11.1.0 (on JDK 21)

Expected behavior

[INFO] Finished Version Filter Analyzer (0 seconds)
[INFO] Using MemorySegmentIndexInput with Java 21 or later; to disable start with -Dorg.apache.lucene.store.MMapDirectory.enableMemorySegments=false
[WARNING] Java vector incubator module is not readable. For optimal vector performance, pass '--add-modules jdk.incubator.vector' to enable Vector API.
[INFO] Created CPE Index (1 seconds)

(but also there should not be warnings during standard operation)

Additional information
Presumably there is an SLF4J bridge or some internal config missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions