Am 2019-10-06 um 09:35 schrieb Hervé BOUTEMY:
Le samedi 5 octobre 2019, 22:46:20 CEST Michael Osipov a écrit :
Am 2019-10-05 um 22:10 schrieb Hervé BOUTEMY:
Le samedi 5 octobre 2019 20:41:40 CEST, vous avez écrit :
Am 2019-10-05 um 19:52 schrieb Hervé BOUTEMY:
based on the feedback I got, I updated the proposal:
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=7468231
8
The archives entries timestamp is now configured with
project.build.outputTimestamp property, in ISO-8601 format <project>
<properties>
<project.build.outputTimestamp>2019-10-02T08:04:00Z</project.build
.ou
tputTimestamp>>
</properties>
</project>
The shared components, plugins, parent poms and Maven core branches have
been updated to match this new proposal
If no one objects, next week-end, I'll start the (heavy) release train
to
bring (binary) Reproducible Builds plugins to general availability
Really, really nice work..
thank you, it required a lot of energy for a long period of time...
I do like <project.build.outputTimestamp>. Why did you make it a String?
Why not go directly with Instant? It gives your ISO 8601 for free
I tried to explain it in https://issues.apache.org/jira/browse/MSHARED-837
Plexus Date injection support is really limited: could not match the
requirements
yyyy-MM-dd'T'HH:mm:ssXXX and SimpleDateFormat will do the trick. It also
will require to change the converter of course.
Alternatively, you could try
https://commons.apache.org/proper/commons-lang/javadocs/api-release/src-html
/org/apache/commons/lang3/time/DateFormatUtils.html#line.72 which I have
added long time ago.
the question is not about coding the date format: it's already done in
maven-archiver
https://github.com/apache/maven-archiver/commit/5f07f227aa89e0bb4163c125a46fbd4c78445301
The commit contains some flaws. I will leave comments there.
the question, as you perfectly asked initially, is: do you have an idea on how
to have the direct Date injection, instead of having a String in the plugin
parameter?
I assumed the DateConverter will do as soon as you say:
@Parameter
Date myDate;
Won't it?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org