Failed to execute goal org.codehaus.mojo:findbugs-maven-plugin:2.5.2:findbugs
2018-01-16 19:09
3463 查看
findbugs错误
当我使用mvn findbugs:findbugs会出现如下错误,上网上找了好久都没有,结果无意间发现是pom.xml版本号配置错了[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7.010 s [INFO] Finished at: 2018-01-16T18:48:48+08:00 [INFO] Final Memory: 20M/292M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:findbugs-maven-plugin:2.5.2:findbugs (default-cli) on project homethy-file-storage: Execution default-cli of goal org.codehaus.mojo:findbugs-maven-plugin:2.5.2:findbugs failed: Java returned: 1 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException[/code]
pom.xml配置如下(别人的配置我直接粘过来结果出现了这样的错误)<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <version>3.0.5</version> <configuration> <!-- 设置分析工作的等级,可以为Min、Default和Max --> <effort>Low</effort> <!-- Low、Medium和High (Low最严格) --> <threshold>Medium</threshold> <failOnError>true</failOnError> <includeTests>true</includeTests> <!--findbugs需要忽略的错误的配置文件--> <excludeFilterFile>findbugs/findbugs-exclude-filter.xml</excludeFilterFile> </configuration> <executions> <execution> <id>run-findbugs</id> <!-- 在package 阶段触发执行findbugs检查,比如执行 mvn clean package --> <phase>package</phase> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin>
相关文章推荐
- Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.0:deploy
- 编译spark1.6.0出现 Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:exec (sparkr-pkg)
- Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:redeploy (default-cli) on project h
- cloudstack Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (install) on projec
- [ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.5.0-rc1:compile (default) on project zeus-web: Command 解决
- Failed to execute goal org.codehaus.mojo:hibernate3-maven-plugin:2.1:hbm2ddl
- Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.1:rpm (default) on project **
- 编译spark1.6.0出现 Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:exec (sparkr-pkg)
- Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.2.3:run (default-cli) on project Maven_WebTest: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.2.3:run failed: C
- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-cli) on project standalone-pom: Unable to parse configuration of 3: mojo org.apache.maven.plugins:
- [转]maven打包报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test
- 解决:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile
- Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)
- 针对Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1的解决方案
- maven 构建编译失败:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:
- Hadoop Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8.1:jar
- 关于maven使用产生的异常之:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile
- Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile)
- maven Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4
- Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) on project