Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-494

Impossible to generate a reproducible build due to timestamp in pom.properties

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: maven-archiver-3.0.0
    • Fix Version/s: maven-archiver-3.1.0
    • Component/s: maven-archiver
    • Labels:
      None

      Description

      Try to making a pom for do a reproducible build, meaning by reproducible build the ability to produce the exact same artifact (same checksum) starting from the same code, a two different times, i had some trouble with the files generated in: /META-INF/maven/groupId/artifactId/
      in the specific the /META-INF/maven/groupId/artifactId/pom.properties contains the timestamp.

      digging in the code in the class: http://svn.apache.org/viewvc/maven/shared/tags/maven-archiver-3.0.0/src/main/java/org/apache/maven/archiver/PomPropertiesUtil.java?revision=1708674&view=markup
      line 86

      is used the java.util.Properties#store which write the timestamp in any case.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                michael-o Michael Osipov
                Reporter:
                tglman Emanuele Tagliaferri
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: