Am 07/06/16 um 22:41 schrieb Stuart McCulloch:
> On Wednesday, 6 July 2016 at 20:46, Karl Heinz Marbaise wrote:
>> Hi to all Maven users,
>>  
>> If you like to help making the next Maven release better it would be  
>> nice if you could help a little bit.
>>  
>> Please be aware of this *** This is not an official release ***
>>  
>> I have created downloadable packages which are available from here:
>>  
>> Windows: https://s.apache.org/qDs1
>> Linux/Mac: https://s.apache.org/Sn7X
>>  
>> Every kind of feedback is helpful.
>>  
>> Important hint:
>>  
>> Based on the following issue  
>> https://issues.apache.org/jira/browse/MNG-5227 the optional flag in a  
>> dependencyManagement was simply ignored with previous Maven versions.  
>> This Maven version starts to handle that correct. If you have problems  
>> with that please report.
>>  
>>  
> 
> I believe this build (git hash 227085283b6379038ec16f4cf9ad2e8869cef694) 
> doesn’t actually contain the fix for MNG-5227. The previous testing snapshot 
> built from 644ac9c40ad41bf61e3b099918af33b8eb950621 did contain the fix for 
> MNG-5227, but the fix was reverted to avoid breaking builds which relied on 
> the old behaviour.
> 
> (this is just based on my reading of the commit history)  

There is MNG-5935 which is fixed and has an impact on the optional flag
in dependency management. See this commit and its message.
<https://git-wip-us.apache.org/repos/asf?p=maven.git;a=commit;h=184f58ff83a6d043c695a07f1b1ae89630f6bc9e>
and there is MNG-5227 which has an impact on the optional flag in
dependency management. See this commit and its message.
<https://git-wip-us.apache.org/repos/asf?p=maven.git;a=commit;h=09bfdee699443b2482d2427b5eff7226768b340a>.
Someone on dev@ has reported that he is using the optional flag in
dependency management (setting it to true) and that he has noticed that
this starts working in 3.4-SNAPSHOT for him. I haven't asked if he
noticed it is not working before. What is important to know is that
before the fix for MNG-5935 all managed dependencies were implicitly
managing optional to false. Aether got updated to change the optional
flag from 'boolean' to 'Boolean' and Maven has not been updated to
reflect that. So instead of passing 'null' to Aether, it passed 'false'
meaning 'manage the optional flag to false' where it should have passed
'null' meaning 'do not manage the optional flag in any way'.

Regards,
-- 
Christian


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to