You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2024/10/14 20:39:00 UTC

[jira] [Closed] (MSITE-1018) LastPublicationTimestamp shows a fixed timestamp instead of the last build date

     [ https://issues.apache.org/jira/browse/MSITE-1018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed MSITE-1018.
---------------------------------
    Resolution: Not A Problem

No bug here.
Maven Site Plugin 3.20.0+ uses the output timestamp for the "Last Published" date just like in the JAR files. If you don't change it, it won't. You have set the value in Tentacles to "1" which properly translates to 1970-01-01T00:00:01Z. Your JARs are fucked up because it is outside of the ZIP file specification:
{noformat}
osipovmi@deblndw011x:/tmp/creadur-tentacles (master *=)
$ unzip -v target/apache-tentacles-0.2-SNAPSHOT.jar
Archive:  target/apache-tentacles-0.2-SNAPSHOT.jar
 Length   Method    Size  Ratio   Date   Time   CRC-32    Name
--------  ------  ------- -----   ----   ----   ------    ----
       0  Stored        0   0%  10-14-80 19:02  00000000  META-INF/
     328  Stored      328   0%  10-14-80 19:02  00000000  META-INF/MANIFEST.MF
       0  Stored        0   0%  10-14-80 19:02  00000000  legal/
       0  Stored        0   0%  10-14-80 19:02  00000000  licenses/
{noformat}
The value leads to undefined behavior.

In Whisker you use an outdated JAR plugin, upgrade, and you use an old site plugin.

If you want to temporarily null out the timestamp, follow this: https://maven.apache.org/shared/maven-archiver/xref/org/apache/maven/archiver/MavenArchiver.html#L778

> LastPublicationTimestamp shows a fixed timestamp instead of the last build date
> -------------------------------------------------------------------------------
>
>                 Key: MSITE-1018
>                 URL: https://issues.apache.org/jira/browse/MSITE-1018
>             Project: Maven Site Plugin
>          Issue Type: Bug
>    Affects Versions: 3.20.0
>            Reporter: Philipp Ottlinger
>            Assignee: Michael Osipov
>            Priority: Major
>
> After having updated Apache Creadur Tentacles to v3.20.0 the LastPublicationDate shown is always fixed to 1970-01-01 .... in versions before the last build date was used to render this variable.
> Is there a configuration option to get this behaviour back?
> * https://github.com/apache/creadur-tentacles/blob/master/pom.xml
> * https://creadur.apache.org/tentacles/
> Apache Creadur Whisker also uses a fixed project.build.outputTimestamp value in its pom but its site renders the lastPubDate correctly:
> * https://creadur.apache.org/whisker/
> * https://github.com/apache/creadur-whisker/blob/master/pom.xml
> Thanks



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