@@ -97,10 +97,6 @@ public class MavenArchiver {
9797 "${artifact.groupIdPath}/${artifact.artifactId}/" + "${artifact.baseVersion}/${artifact.artifactId}-"
9898 + "${artifact.baseVersion}${dashClassifier?}.${artifact.extension}" ;
9999
100- private static final Instant DATE_MIN = Instant .parse ("1980-01-01T00:00:02Z" );
101-
102- private static final Instant DATE_MAX = Instant .parse ("2099-12-31T23:59:59Z" );
103-
104100 private static final List <String > ARTIFACT_EXPRESSION_PREFIXES ;
105101
106102 static {
@@ -681,10 +677,7 @@ public void setBuildJdkSpecDefaultEntry(boolean buildJdkSpecDefaultEntry) {
681677 * @return the parsed timestamp as an {@code Optional<Instant>}, {@code empty} if input is {@code null} or input
682678 * contains only 1 character (not a number)
683679 * @since 3.6.0
684- * @throws IllegalArgumentException if the outputTimestamp is neither ISO 8601 nor an integer, or it's not within
685- * the valid range 1980-01-01T00:00:02Z to 2099-12-31T23:59:59Z as defined by
686- * <a href="https://pkwaredownloads.blob.core.windows.net/pem/APPNOTE.txt">ZIP application note</a>,
687- * section 4.4.6.
680+ * @throws IllegalArgumentException if the outputTimestamp is neither ISO 8601 nor an integer.
688681 * @see <a href="https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=74682318">Maven Wiki "Reproducible/Verifiable
689682 * Builds"</a>
690683 */
@@ -702,11 +695,6 @@ public static Optional<Instant> parseBuildOutputTimestamp(String outputTimestamp
702695 // Number representing seconds since the epoch
703696 if (isNumeric (outputTimestamp )) {
704697 final Instant date = Instant .ofEpochSecond (Long .parseLong (outputTimestamp ));
705-
706- if (date .isBefore (DATE_MIN ) || date .isAfter (DATE_MAX )) {
707- throw new IllegalArgumentException (
708- "'" + date + "' is not within the valid range " + DATE_MIN + " to " + DATE_MAX );
709- }
710698 return Optional .of (date );
711699 }
712700
@@ -716,11 +704,6 @@ public static Optional<Instant> parseBuildOutputTimestamp(String outputTimestamp
716704 .withOffsetSameInstant (ZoneOffset .UTC )
717705 .truncatedTo (ChronoUnit .SECONDS )
718706 .toInstant ();
719-
720- if (date .isBefore (DATE_MIN ) || date .isAfter (DATE_MAX )) {
721- throw new IllegalArgumentException (
722- "'" + date + "' is not within the valid range " + DATE_MIN + " to " + DATE_MAX );
723- }
724707 return Optional .of (date );
725708 } catch (DateTimeParseException pe ) {
726709 throw new IllegalArgumentException (
0 commit comments