slachiewicz opened a new issue, #13479:
URL: https://github.com/apache/maven/issues/13479

   Maven 4 treats `-P ?id` as an optional profile (MNG-7051): activate it if it 
exists, skip it otherwise. Maven 3.9 and 3.10 read `?id` as a profile literally 
named `?id`, warn that it does not exist, and leave the real profile off. A 
build that passes `-P ?run-its` to both versions, for example a CI matrix 
running Maven 3 and 4 side by side, silently skips the profile on Maven 3 while 
still succeeding. #11098 reported the warning; its last comment describes this 
3/4 mismatch.
   
   Proposal for 3.10.x: accept `?` after the existing `+`, `-` and `!` prefixes 
in `-P`, in the same order as Maven 4, and activate or deactivate the plain id. 
A missing optional profile would still log the existing warning, since Maven 3 
does not fail on missing profiles.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to