[ 
https://issues.apache.org/jira/browse/MNG-8230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17878032#comment-17878032
 ] 

Christoph Läubrich edited comment on MNG-8230 at 8/30/24 10:39 AM:
-------------------------------------------------------------------

One important part currently is that one can provide 
{code}ModelVersionProcessor{code} to supply dynamic properties with method

{code}ModelVersionProcessor.overwriteModelProperties(Properties, 
ModelBuildingRequest){code}

this allows to have computed values as well as derived from other sources e.g.

# Using a formatted date/time based on build timestamp
# Computing the sha1 hash from the checked out git repository
# ...

in contrast to User and/or SystemProperties.

Also an important part seems that these can override any specified elsewhere 
independent from current model interpolation. And as these values can also be 
project specific so should not be assumed as "global" values thats why modify 
User/System properties directly seem not suitable.

This was implemented initially here 
https://issues.apache.org/jira/projects/MNG/issues/MNG-7407


was (Author: laeubi):
One important part currently is that one can provide 
{code}ModelVersionProcessor{code} to supply dynamic properties with method

{code}ModelVersionProcessor.overwriteModelProperties(Properties, 
ModelBuildingRequest){code}

this allows to have computed values as well as derived from other sources e.g.

# Using a formatted date/time based on build timestamp
# Computing the sha1 hash from the checked out git repository
# ...

in contrast to User and/or SystemProperties.

Also an important part seems that these can override any specified elsewhere 
independent from current model interpolation. And as these values can also be 
project specific so should not be assumed as "global" values thats why modify 
User/System properties directly seem not suitable.

> Rewrite CI friendly versions
> ----------------------------
>
>                 Key: MNG-8230
>                 URL: https://issues.apache.org/jira/browse/MNG-8230
>             Project: Maven
>          Issue Type: New Feature
>    Affects Versions: 4.0.0-beta-3
>            Reporter: Guillaume Nodet
>            Priority: Major
>             Fix For: 4.0.0-beta-5
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to