apache / apache/maven-mvnd

Double logging with a Maven Extension

Open
#1,258 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
3.5k
Forks
250
Avg merge
16h 22m
Merged PRs (30d)
36

Description

I'm building an [extension ](https://github.com/adrian-tarau/maven?tab=readme-ov-file#extension) which has a few goals in mind (one is provided by `mvnd`, which is less logging :) ), and I have an undesired side effect at the end when the extension is printing the _report_.

![Image](https://github.com/user-attachments/assets/cc54cb55-47fc-4ea0-8420-d34a858772ee)

Since this is not the standard Maven, I cannot _steal_ the logging (I also do not want that, as it will conflict with mvnd). However, I would like to detect when a build happens with `mvnd` and change the behavior a bit (like not printing the report at the end to the standard output since it is logged with regular logging). I could probably look at the source, but can you tell me what I can use (easily) to detect `mvnd`?

Thanks.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue mentions a Maven extension, mvnd, and a report printed to standard output, but names no repository files or tests. Start by tracing how the extension emits its report and how mvnd handles logging; done means identifying a supported way to detect mvnd and preventing duplicate report output without conflicting with mvnd logging.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.