-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
Avoid MCOMPILER-485 in compiler plugin 3.10.0 #506
Conversation
Maven 3.10.0 added a feature to create missing package-info files. The feature incorrectly uses Windows-style directory separators on Windows. Other parts of the code expect to always see Unix style directory separators. Disable the new feature so that it does not break compilation. https://groups.google.com/g/jenkinsci-dev/c/077VYgtSLXo/m/6JQjJs7-AQAJ
Amending #504. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this fix the problem in git-plugin
?
I see the fix is merged, @olamy will it be released soon? ❤️ |
does this break Jenkins build or not? (sorry I do not have windauze to test that) As Jenkins is not yet build with Java 11 (neither using really soon jpms features) there is probably nothing urgent here ;) |
LOL I did not even read the content of the PR but only the comment 🤣 |
@olamy any idea when apache/maven-compiler-plugin#95 will be released? |
Released this as 4.36, along with a mojo fix from @basil. |
Avoid MCOMPILER-485 in compiler plugin 3.10.0
Maven 3.10.0 added a feature to create missing package-info files. The feature incorrectly uses Windows-style directory separators on Windows. Other parts of the code expect to always see Unix style directory separators.
Disable the new feature so that it does not break compilation. See Jenkins developer mailing list conversation for details.
I'm not expert enough in Maven development to create the integration test to confirm the issue is resolved. I assume it would require a Java package that does not have a package-info file and then a check on Windows that some internal path to the generated package-info file is using Windows directory separators.