maven 中执行checkstyle 异常 , 是啥原因呀?

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了maven 中执行checkstyle 异常 , 是啥原因呀?相关的知识,希望对你有一定的参考价值。

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.sfpay.module:cbe-front:war:1.0
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.slf4j:slf4j-log4j12:jar -> duplicate declaration of version $slf4j.version @ line 78, column 15
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 137, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building cbe-front 1.0
[INFO] ------------------------------------------------------------------------
[WARNING] The artifact aspectj:aspectjweaver:jar:1.5.4 has been relocated to org.aspectj:aspectjweaver:jar:1.5.4
[WARNING] The artifact jdom:jdom:jar:1.1 has been relocated to org.jdom:jdom:jar:1.1
[INFO]
[INFO] --- maven-checkstyle-plugin:2.3:checkstyle (default-cli) @ cbe-front ---
[INFO] There are 10064 checkstyle errors.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.571s
[INFO] Finished at: Fri Dec 19 18:23:24 CST 2014
[INFO] Final Memory: 6M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.3:checkstyle (default-cli) on project cbe-front: An error has occurred in Checkstyle report generation. NullPointerException -> [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/MojoExecutionException

参考技术A 醉卧沙场君莫笑 参考技术B mvn install -Dmaven.test.skip=true

参考技术C 你这个问题解决了没?求帮助

以上是关于maven 中执行checkstyle 异常 , 是啥原因呀?的主要内容,如果未能解决你的问题,请参考以下文章

解决Checkstyle File Name 异常的问题

NetBeans (maven) 项目:checkstyle-beans vs maven-checkstyle-plugin

如何从 checkstyle 插件检查中排除 module-info.java?

Maven CheckStyle Plugin集成

maven-checkstyle-plugin配置关闭

Checkstyle 与 PMD