You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tamas Cservenak (Jira)" <ji...@apache.org> on 2024/02/15 21:07:00 UTC
[jira] [Commented] (MRESOLVER-497) Investigate possible solutions for build number diffs on deploy
[ https://issues.apache.org/jira/browse/MRESOLVER-497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17817782#comment-17817782 ]
Tamas Cservenak commented on MRESOLVER-497:
-------------------------------------------
Some solutions:
* use "root" POM buildNumber (memoize it), as most probably it is the "oldest" (biggest buildNo)
* make possible to pass in via user property the buildNo user wants and use that: it could allow to "align" all the build numbers, if user chooses max + 1
> Investigate possible solutions for build number diffs on deploy
> ---------------------------------------------------------------
>
> Key: MRESOLVER-497
> URL: https://issues.apache.org/jira/browse/MRESOLVER-497
> Project: Maven Resolver
> Issue Type: Task
> Components: Resolver
> Reporter: Tamas Cservenak
> Priority: Major
> Fix For: 2.0.0
>
>
> The "snapshot freeze" is a common practice during development: simply use a timestamped snapshot as dependency version instead of "-SNAPSHOT" ending one to "freeze" given snapshot deploy.
> This works for simple cases (one dependency, or "aligned" reactor).
> But take a look at Resolver itself: it has new-old and added-gone-readded modules, and their build numbers are different.
> Problem is, that while timestamp is _same_ (deduced from session start), the build number is determined from remote repository (deploy target) state.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)