Eclipse:使用 -X 开关重新运行 Maven 以启用完整的调试日志记录
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10419359/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse: Re-run Maven using the -X switch to enable full debug logging
提问by s1mm0t
I have a Maven project I'm trying to build/run in Eclipse but I'm getting the error below. How do I do what the error suggests and add the -e or X switches to try to troubleshoot this?
我有一个 Maven 项目,我试图在 Eclipse 中构建/运行,但出现以下错误。我该如何按照错误提示进行操作并添加 -e 或 X 开关以尝试解决此问题?
[ERROR] Failed to execute goal org.bsc.maven:maven-processor-plugin:2.0.5:process (process) on project glw-crm: Error executing: 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
I'm using Eclipse Indigo (64 bit) and m2e 1.0.1
我正在使用 Eclipse Indigo(64 位)和 m2e 1.0.1
回答by Fabricio Lemos
You should check Debug Output
in m2e configuration:
您应该检查Debug Output
m2e 配置:
Window -> Preferences -> Maven -> Debug Output
窗口 -> 首选项 -> Maven -> 调试输出
回答by Michael A.
As of IntelliJ 2019.2.2
截至 IntelliJ 2019.2.2
File -> Settings (Ctrl + Alt+ S) -> Build, Execution, Deployment -> Build Tools -> Maven -> Output Level: Debug
文件 -> 设置 (Ctrl + Alt+ S) -> 构建、执行、部署 -> 构建工具 -> Maven -> 输出级别:调试