-
Notifications
You must be signed in to change notification settings - Fork 45
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
Failed to rebuild org.apache.jspwiki:jspwiki-builder:2.11.3 #662
Comments
wow, very interesting: I can reproduce the issue on my own machine as you analyzed, this is related to strict check of accepted remote repositories: in your workaround, you disabled the strict check. I'll update the buildspec in Git, because it clearly does not work as is on the extra question: while checking reproducible builds, I chose to add one layer of tracking = track which external repositories are used by the projects I rebuild, and not let Maven download anything from anywhere (just because it was a nice opportunity to do that: I chose to be picky :) ) |
rebuild JSPWiki 2.13 with #662 fix
Thanks for the response @hboutemy .
Ah I see, that makes sense.
This is indeed quite interesting. I wonder if this is a known bug for Maven that was later fixed or is it totally brand new. We would really love to know more about this Maven issue and whether could you point us to the relevant fixes in Maven Resolver if you happen to know about it?. I have tried your fix and it works smoothly. This is much better than my work around by removing settings.xml. In additions, we have also tried the rebuild on a couple more build specs and received similar issues as this case:
I plan to create separate Github issues for each, with additional details. Would this be okay for you? Or would you prefer to keep everything in one issue? Looking forward to hearing back from you. |
I can't find clear pointer, sorry, it was part of cleanup PRs, not really a precise target tracked: given we have a project that fails with older releases, we could probably take time to find the first Maven release that works, to more precisely point to the why...
one PR per fix, please, with only thanks for contributing |
Hi,
Thank you for your great work on
reproducible-central
. We have been trying to run the rebuild using Reproducible Central (RC) 's infrastructure on this build spec https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/org/apache/jspwiki/jspwiki-2.11.3.buildspec but failed. We would love to have your insights on what could be the issue and how we can resolve it.Reproducing the error
System information
Commands
Behavior
The toolchain Docker image was created successfully, but the maven build command failed with the following error
Errors and stacktraces
What we tried to resolve the issue
To resolve this issue, I removed all of the mirrors configuration in
reproducible-central/m2/settings.xml
and then run the exact rebuild command againThis time, the build passed.
Build log
Extra question
We are also curious on the reasons behind the mirror configurations in this
settings.xml
file. From my understanding, this file is copied into the Docker container where the build runs (see here), which is then used by Maven inside the container.The text was updated successfully, but these errors were encountered: