> Op 22 okt 2025 om 00:00 heeft Jörg Schaible <[email protected]> 
> het volgende geschreven:
> 
> HI,
> 
> currently I try to upgrade the maven-javadoc-plugin from version 3.2.0 to
> 3.12.0, but with the new version the build fails:
> ============ %< ===========
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-
> plugin:3.12.0:jar (attach-javadocs) on project xstream: Execution attach-
> javadocs of goal org.apache.maven.plugins:maven-javadoc-plugin:3.12.0:jar
> failed: '1970-01-01T00:00:01Z' is not within the valid range
> 1980-01-01T00:00:02Z to 2099-12-31T23:59:59Z -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal
> org.apache.maven.plugins:maven-javadoc-plugin:3.12.0:jar (attach-javadocs) on
> project xstream: Execution attach-javadocs of goal
> org.apache.maven.plugins:maven-javadoc-plugin:3.12.0:jar failed:
> '1970-01-01T00:00:01Z' is not within the valid range 1980-01-01T00:00:02Z to
> 2099-12-31T23:59:59Z
>    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2
> (MojoExecutor.java:333)
> [...]
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution attach-
> javadocs of goal org.apache.maven.plugins:maven-javadoc-plugin:3.12.0:jar
> failed: '1970-01-01T00:00:01Z' is not within the valid range
> 1980-01-01T00:00:02Z to 2099-12-31T23:59:59Z
>    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
> (DefaultBuildPluginManager.java:133)
>    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2
> (MojoExecutor.java:328)
> [...]
> Caused by: java.lang.IllegalArgumentException: '1970-01-01T00:00:01Z' is not
> within the valid range 1980-01-01T00:00:02Z to 2099-12-31T23:59:59Z
>    at org.apache.maven.archiver.MavenArchiver.parseBuildOutputTimestamp
> (MavenArchiver.java:777)
>    at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.getBottomText
> (AbstractJavadocMojo.java:2679)
>    at
> org.apache.maven.plugins.javadoc.AbstractJavadocMojo.addStandardDocletOptions
> (AbstractJavadocMojo.java:4693)
>    at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeReport
> (AbstractJavadocMojo.java:1984)
>    at org.apache.maven.plugins.javadoc.JavadocJarMojo.doExecute
> (JavadocJarMojo.java:215)
>    at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.execute
> (AbstractJavadocMojo.java:1851)
>    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
> (DefaultBuildPluginManager.java:126)
>    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2
> (MojoExecutor.java:328)
> ============ %< ===========
> 
> Has someone a clue, what the Maven archiver tries toparse here and why this is
> caused now?

My gut feel: your project is instructing maven to create a reproducible build

https://maven.apache.org/guides/mini/guide-reproducible-builds.html

with an instructed build timestamp (property project.build.outputTimestamp)  
that falls outside the range of supported timestamps by the maven archiver (as 
the zip file format does not support those timestamps)

> 
> Regards,
> Jörg
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

Reply via email to