Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

non-reproducible jaxb2 generated files #139

Open
hboutemy opened this issue Jan 24, 2024 · 2 comments
Open

non-reproducible jaxb2 generated files #139

hboutemy opened this issue Jan 24, 2024 · 2 comments

Comments

@hboutemy
Copy link
Member

hboutemy commented Jan 24, 2024

need to investigate if it is a problem to be solved by a Maven plugin (there are multiple?) or jaxb implementation (there are multiple?)

some documentation on reducing issues by configuration have already been provided: https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/doc/BUILDSPEC.md#avoiding-timestamps-in-jaxb-generated-content

let's start by listing concrete cases:
https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/com/io7m/certusine/com.io7m.certusine-2.0.0.diffoscope
https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/com/io7m/idstore/com.io7m.idstore-0.0.14.diffoscope
https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/com/io7m/sunburst/com.io7m.sunburst-0.0.6.diffoscope
https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/com/io7m/chione/com.io7m.chione-0.0.2.diffoscope
https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/org/apache/santuario/xmlsec/xmlsec-3.0.1.diffoscope
https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/org/apache/santuario/xmlsec/xmlsec-4.0.1.diffoscope
https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/org/apache/activemq/activemq-parent-5.17.0.diffoscope
https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/org/apache/nifi/nifi/nifi-1.19.0.diffoscope

@hboutemy
Copy link
Member Author

found 2 cases in diffoscope files listed with timestamp in generated comment:

This file was generated by the Eclipse Implementation of JAXB, v3.0.0
See https://eclipse-ee4j.github.io/jaxb-ri 

and

This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 
See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a> 

still need to check what Maven Plugin was using what jaxb implementation, and how it was calling it

@hboutemy
Copy link
Member Author

hboutemy commented Jan 24, 2024

FTR, Apache Santuario xmlsec looks like a good small project to study https://github.com/apache/santuario-xml-security-java/blob/main/pom.xml
teh project has integrated workarounds to be reproducible like apache/santuario-xml-security-java#248 , but there are multiple origins of issues at jaxb level to fix instead of a project needing to add RB workarounds in their build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant