-
Notifications
You must be signed in to change notification settings - Fork 53
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
Spotbugs Xml Output file Locked After Execution (Windows only) #517
Comments
@mcordeiro73 Please try this with modern plugins. clean 2.5 is too old to even consider looking at. Please use the latest on your plugins to see any differences. Other than that try to look at the commit history between 4.5.3 and 4.7.3 as you noted. Most likely you will discover its not likely here but more likely spotbugs. However, I cannot be 100% sure on that without seeing this with more recent plugin usage. Its bad to sit on mavens internal defaults. That will be changing fast with maven 3.9 / 4.0 series but where you are at make sure you define all the plugins being used. 2.5 for example is a decade old. The new one works differently even in case of locks which I presume is your encountered issue of sorts. |
Test simply runs through clean at end to ensure files not still open. Using 4.7.3.0, I can repeat the reported issue. The issue is gone in 4.7.3.1 and likely related to the auxpath issue.
[tests] Add integration test to check file open issues per #517
Assuming this may have been related to aux path system in logic we replaced as we did nothing for this and issue is now gone. I've wrote a unit test for this #553 to ensure it does not pop up again. I was able to confirm condition with same test using 4.7.3.0. |
When attempting to run
mvn clean verify package clean
with version 4.7.3.0 of the spotbugs-maven-plugin, I get the below error in the execution of the second clean goal.Note: This did not occur when using older versions of the spotbugs-maven-plugin (I am upgrading from version 4.5.3.0).
Some observations made while looking into this issue:
The text was updated successfully, but these errors were encountered: