Rate This Document
Findability
Accuracy
Completeness
Readability

Failed to Load mojo' findbugs' When Compiling and Installing HBase

Symptom

During the HBase compilation and installation, a message is displayed indicating that the mojo 'findbugs' fails to be loaded. As a result, the default execution of findbugs-maven-plugin fails. The following message is displayed:

1
Failed to execute goal org.codehaus.mojo:findbugs-maven-plugin:3.0.0:findbugs(default) on project hbase:Execution default of goal org.codehaus.mojo:findbugs-maven Failed:Unable to load the mojo 'findbugs' in the plugin 'org.codehaus.mojo:findbugs-maven-plugin:3.0.0 '

Key Process and Cause Analysis

The findbugs-maven-plugin version is incorrect.

Conclusion and Solution

  1. Open the pom.xml file.
    1
    vi pom.xml
    
  2. Press i to enter the insert mode and change the findbugs-maven-plugin version to 3.0.4.
    1
    2
    3
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>findbugs-maven-plugin</artifactId>
    <version>3.0.4</version>
    
  3. Press Esc, type :wq!, and press Enter to save the file and exit.