You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building an 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.
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.
The text was updated successfully, but these errors were encountered:
After I pressed send, I realized I could detect when regular Maven logging is available and react to that. It might still be good to know if it runs under mvnd; I might need to make other adjustments. Somebody asked to support mvnd, so I'm trying my best.
Simplest that comes to my mind is to try to load from (plugin) classloader a class typical for mvnd and not existing in mvn, for example org.apache.maven.cli.DaemonCli? Just throwing ideas in here...
I'm building an 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.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 detectmvnd
?Thanks.
The text was updated successfully, but these errors were encountered: