...
Page properties | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
- Timestamps:
- Timestamp in pom.properties generated by maven-archiver (MSHARED-494
)
- Timestamp in plugin.xml and plugin-help.xml descriptors generated by maven-plugin-tools-generator (MPLUGIN-326
)
- Timestamp in MANIFEST.MF (Bnd-LastModified) generated by Felix maven-bundle-plugin
- Timestamps in ZIP/JAR files: file last modification time/date in central directory and file entry headers + possible optional fields "X5455_ExtendedTimestamp" (PLEXUS-ARCHIVER-48)
- Timestamps in generated javadoc HTML files (can be disabled with javadoc options "notimestamp" and "bottom")
- Timestamps in bytecode generated from Groovy code (added by GroovyClassLoader.addTimeStamp())
- Timestamp in pom.properties generated by maven-archiver (MSHARED-494
- Username:
- Username in MANIFEST.MF (Built-By) generated by maven-archiver (MSHARED-661
)
- UID/GID in tar file entries
- Username in MANIFEST.MF (Built-By) generated by maven-archiver (MSHARED-661
- Ordering:
- Order of the file entries in a ZIP/JAR file (depends on file system order)
- Order of the entries in the MANIFEST (MSHARED-511
)
- Order of goals in plugin.xml generated by maven-plugin-tools (MPLUGIN-261 )
- Order of the methods of the ObjectFactory.java file generated by JAXB/xjc (JAXB-598 )
- Order of components in META-INF/plexus/components.xml generated by plexus metadata
- Tools Versions:
- exact JDK version used to build in MANIFEST.MF (Build-Jdk) generated by maven-archiver (MSHARED-797 )
Notice that keeping the major version of the JDK used still makes sense, since it has an influence on generated bytecode: with the same source code and defined -target version, javac from JDK 6, 7, 8, ... do not produce the same bytecode. If we want to isolate the generated binary from JDK used, the compiler used will have to not be javac provided by running JDK (see Using Non-Javac Compilers) - exact Maven version used to build in MANIFEST.MF (Created-By) generated by maven-archiver (MSHARED-799 )
- exact Maven version used to build in META-INF/.../pom.properties generated by maven-archiver (MSHARED-800 )
- exact JDK version used to build in MANIFEST.MF (Build-Jdk) generated by maven-archiver (MSHARED-797 )
Line endings is also a problem, and even if we could force given line endings for build-generated text files (MANIFEST, pom.properties...), it would be hazardous to try to change the line endings of the resource files.
...
issue tracking | description | |
---|---|---|
| maven-archiver adds "Built-By: <username>" Manifest entry: the entry was removed | |
| META-INF/MANIFEST.MF | maven-archiver adds "Built-Jdk: <detailed java version>" Manifest entry: better replaced with "Built-Jdk: <java specification version>" |
META-INF/maven/$groupId/$artifactId/pom.properties | Timestamp in pom.properties | |
META-INF/maven/$groupId/$artifactId/pom.properties | Maven version in pom.properties | |
META-INF/maven/plugin.xml | generated plugin.xml is non-deterministic | |
META-INF/maven/plugin.xml META-INF/maven/$groupId/$artifactId/plugin-help.xml | Timestamp in plugin.xml and plugin-help.xml descriptors generated by maven-plugin-tools-generator | |
plexus-containers | META-INF/plexus/components.xml | sort components when generating META-INF/plexus/components.xml |
META-INF/MANIFEST.MF | "Private-Package" manifest entry content (created by felix:bundle) has not the same order between builds | |
META-INF/sisu/javax.inject.Named | META-INF/sisu/javax.inject.Named content (created by sisu-maven-plugin) has non reproducible order for content | |
zip entries timestamp and order | ||
plexus-archiver issue #48 | avoid timestamp issues in archives created by plexus-archiver (widely used in Maven plugins creating jar, zip, war, tar... archives) | |
sort zip entries to make zip entries order reproducible | ||
support SOURCE_DATE_EPOCH environment variable or equivalent: see https://reproducible-builds.org/docs/timestamps/ | ||
MSOURCES-120 | apply reproducible zip (entries order and timestamp) to maven-source-plugin | |
MJAR-263 | apply reproducible zip (entries order and timestamp) to maven-jar-plugin | |
issues fixed in maven-archiver will have to be picked by 9 other plugins managed by Apache Maven team (acr, ear, ejb, jlink, rar, war, site, javadoc, assembly) and perhaps other plugins managed outside Apache Maven team |
...