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

flatten output is not reproducible #256

Closed
hboutemy opened this issue Feb 24, 2022 · 1 comment
Closed

flatten output is not reproducible #256

hboutemy opened this issue Feb 24, 2022 · 1 comment

Comments

@hboutemy
Copy link
Member

for example exclusions gavs in https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/org/apache/camel/camel/camel-3.13.0.diffoscope

@hboutemy
Copy link
Member Author

trying to analyze: issue happens only with exclusions in dependencies
flatten-plugin writes the pom with MavenXpp3Writer class that writes exclusions in a reproducible way: https://maven.apache.org/ref/3.8.5/maven-model/xref/org/apache/maven/model/io/xpp3/MavenXpp3Writer.html#L766
BUT the class itself does not do the same order before and after 3.8.1: for example in Maven 3.6.3 (that is used by rebuild.sh), order is opposite https://maven.apache.org/ref/3.6.3/maven-model/xref/org/apache/maven/model/io/xpp3/MavenXpp3Writer.html#L766

consequences:

  1. no issue in flatten-maven-plugin
  2. it's a question of choice of Maven version: with 3.8.2+, it writes groupId then artifactId, with 3.8.1- it writes artifactId then groupId

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

No branches or pull requests

1 participant