elek opened a new pull request #1878:
URL: https://github.com/apache/ozone/pull/1878


   ## What changes were proposed in this pull request?
   
   Execution the spotbugs check script fails locally. If some other resource 
files are already generated in an empty project, spotbugs expected real source 
files:
   
   ```
   [INFO] --------------< org.apache.hadoop:hadoop-ozone-datanode 
>---------------
   [INFO] Building Apache Hadoop Ozone Datanode 1.1.0-SNAPSHOT             
[32/40]
   [INFO] --------------------------------[ jar 
]---------------------------------
   [INFO] 
   ...
   [INFO] 
   [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ 
hadoop-ozone-datanode ---
   [INFO] No sources to compile
   [INFO] 
   [INFO] --- spotbugs-maven-plugin:3.1.12:spotbugs (default-cli) @ 
hadoop-ozone-datanode ---
   [INFO] Fork Value is true
        [java] Exception in thread "main" java.io.IOException: No files to 
analyze could be opened
        [java]  at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:274)
        [java]  at edu.umd.cs.findbugs.FindBugs.runMain(FindBugs.java:401)
        [java]  at edu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:1185)
   [INFO] 
   ```
   
   It's more safe to turn off explicitly the spotbugs check for the empty 
`hadoop-ozone-datanode` project (note: source code of the datanode is in the 
`hadoop-hdds-container-service` project) 
   
   ## How was this patch tested?
   
   `mvn spotbugs:check` and `./hadoop-ozone/dev-support/checks/findbugs.sh` 
from my local working directory.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org
For additional commands, e-mail: issues-h...@ozone.apache.org

Reply via email to