如何在 Eclipse 控制台中从 Maven 获取详细输出?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16898801/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 21:43:51  来源:igfitidea点击:

How do I get verbose output from Maven in the Eclipse console?

eclipsemaven-2

提问by Saltymule

I am trying to figure out why a maven project is not packaging a jar. This is a builds successfully on my coworkers computers. There are no errors when I build, but the jar is not in the destination folder. I was hoping that by getting more verbose output from the maven process, that I could determine the differences between what is happening on my installation, and on other peoples installations.

我想弄清楚为什么 Maven 项目没有打包 jar。这是在我同事的计算机上成功构建的。构建时没有错误,但 jar 不在目标文件夹中。我希望通过从 maven 进程获得更详细的输出,我可以确定我的安装和其他人的安装之间发生的事情之间的差异。

回答by xoned

Choose "Run As" -> "Maven build.." or open your Run/Debug configuration

选择“Run As”->“Maven build..”或打开你的运行/调试配置

There you can enable Debug outputor append a -Xbehind your goals.

在那里你可以启用Debug output或附加-X你的目标。