hboutemy commented on PR #30:
URL:
https://github.com/apache/maven-artifact-plugin/pull/30#issuecomment-2027862052
> long story short it is
<project.build.outputTimestamp>${git.commit.time}</project.build.outputTimestamp>
like usages.
thanks: it's the first step into describing: then what is the symptom? what
happens when you do that, that you want to change?
> I thought about your position to say it is wrong to not hardcode it, if
this PR is really not an option, I think I could "not care" about it if the
value is automatically rewritten by a plugin.
> I'm not yet sure of the best plugin for that - artifact looks wrong,
git-commit-id too, spotless or pom rewriters don't know about last change date
so not yet fixed on where.
what I say is that using git commit is not the most efficient, because it
changes on each commit even if the jar file content does not really change:
then it forces jar update only for timestamp.
Having a value hard coded + maven-release-plugin and versions-maven-plugin
update/rewrite when version is updated is the most efficient strategy found so
far: I know it's not a usual strategy, but it never creates a different jar
when it is not necessary because its content has really changed.
But I don't fight hard against people wanting to use git commit: from a
theoretical perspective, I understand it looks more natural. If you want to go
that route, no problem. If you experience a problem maven-artifact-plugin, I
just need to see what concrete problem is caused by what goal of
maven-artifact-plugin for you when doing that strategy, to understand how to
update the code to precisely detect that case and not have unintended side
effects.
FYI, moditect uses the git commit strategy and there is no issue for them:
https://github.com/moditect/moditect =>
https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/org/moditect/moditect/README.md
--
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]