[
https://issues.apache.org/jira/browse/MNG-7437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17511099#comment-17511099
]
Giovanni van der Schelde commented on MNG-7437:
-----------------------------------------------
Perhaps it would be an idea to make the logging behaviour consistent between
optional projects and profiles?
In that case, {{-pl ?:project}} and {{-P?profile}} would both log the
information before and after the build. Instead of optional projects being
logged once at the beginning and optional profiles being logged both at the
beginning and the end. This will be in a separate ticket of course.
> Optional profiles that are not found logs warning twice
> -------------------------------------------------------
>
> Key: MNG-7437
> URL: https://issues.apache.org/jira/browse/MNG-7437
> Project: Maven
> Issue Type: Bug
> Components: Command Line, Core, Logging
> Affects Versions: 4.0.0-alpha-1
> Reporter: Giovanni van der Schelde
> Priority: Minor
> Fix For: wontfix-candidate
>
> Attachments: image-2022-03-21-21-50-55-930.png
>
>
> Maven 4 (MNG-7051) introduced optional profiles, and if such profile could
> not be found, the build continues and logs a warning.
> Whenever I run this command I noticed the warning is logged twice. Once
> before the build and once after the build. This seems unnecessary and is
> inconsistent with the behaviour of optional projects.
> !image-2022-03-21-21-50-55-930.png!
--
This message was sent by Atlassian Jira
(v8.20.1#820001)