-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
HADOOP-18718. Fix several maven build warnings #5592
Conversation
looks good. worried that a move to spotbugs may have surprises, but it is only in 1 module and that already has a spotbugs by the look of things |
Should be good, if the build doesn't complain. The findbug thing looks like a leftover to me. We don't run neither setup findbugs now in our jenkins job, we just run spotbugs |
Ya, I thought like that. Thank you, @steveloughran and @ayushtkn . |
💔 -1 overall
This message was automatically generated. |
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.
LGTM
Thank you, @ayushtkn . |
Lets wait for Steve, if he is convinced. @dongjoon-hyun would require a PR to branch-3, as well, this doesn't cherry-pick directly over there |
BTW, the current CI seems to complain for something. Let me check more while I'm here. |
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.
lgtm. do also think that we need to make sure that all surefile/failsafe uses print stack traces
@dongjoon-hyun you marked this as draft, any further pointers, it was looking good enough to me atleast to merge |
Sorry for the delay, @ayushtkn . I converted it back. |
hey, carry on without me. I'm too distracted to review anything. |
hadoop-project-dist/pom.xml
Outdated
<destDir>${project.build.directory}/api</destDir> | ||
<outputDirectory>${project.build.directory}/api</outputDirectory> |
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.
here both are defined
https://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html
Is there any behaviour change here? Both have different default values as well
cc. @GauthamBanasandra I think you were around this area, does it look good to you?
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.
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.
Shall we skip this line simply? I can revert two changes of this file to the original code.
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.
I would yes, lets not do it, similar change is there in pom.xml
So, we can go ahead without this destDir -> outputDirectory change
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.
Makes sense. Changing to outputDirectory
would be redundant.
💔 -1 overall
This message was automatically generated. |
I updated the code and PR description by removing |
💔 -1 overall
This message was automatically generated. |
290f339
to
c5ef569
Compare
💔 -1 overall
This message was automatically generated. |
Thank you, @GauthamBanasandra . |
<tasks> | ||
<task> | ||
<copy file="src/main/resources/hdfs-rbf-default.xml" todir="src/site/resources"/> | ||
<copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/> | ||
</tasks> | ||
</task> |
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.
Was supposed to use target, right?
From the description
Use target instead of tasks.
Other places you moved tasks -> target only. Any specific reason here?
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.
My bad. You are right. I fixed it.
💔 -1 overall
This message was automatically generated. |
Thank you so much, @ayushtkn , @steveloughran , @GauthamBanasandra . |
…y Dongjoon Hyun. Reviewed-by: Gautham B A <[email protected]> Signed-off-by: Ayush Saxena <[email protected]> (cherry picked from commit fb16e00) Conflicts: hadoop-tools/hadoop-federation-balance/pom.xml
Description of PR
This PR aims to fix the following build warnings which are a subset of the full warnings on Maven 3.9.1.
cyclonedx-maven-plugin
version is added.Use spotbugs-maven-plugin instead of findbugs-maven-plugin
, removefindbug-maven-plugin
.target
instead oftasks
.systemPropertyVariables
instead ofsystemProperties
.How was this patch tested?
Pass the CI and do the manual tests.
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?