简体   繁体   English

Eclipse 中的 Maven 控制台没有输出

[英]No output to the Maven console in Eclipse

Somehow I do not get any log messages anymore in the Maven / m2e console view in Eclipse.不知何故,我在 Eclipse 的 Maven / m2e 控制台视图中不再收到任何日志消息。 This makes it difficult to see what Maven / m2e is doing.这使得很难看到 Maven / m2e 在做什么。

The first thing you should check is that you have the m2e - slf4j over logback logging plugin installed via by checking the Plugins tab in the About Eclipse dialog.您应该检查的第一件事是通过检查About Eclipse对话框中的Plugins选项卡安装了 m2e - slf4j over logback 日志记录插件。

If the plugin is not there, you can install it via Help -> Install New Software , set Work with to --All Available Sites-- , search for m2e logback or locate it manually in the category Maven Integration for Eclipse .如果插件不存在,您可以通过Help -> Install New Software安装它,将Work with设置为--All Available Sites-- ,搜索m2e logback或在Maven Integration for Eclipse类别中手动找到它。

If this is already installed, then the problem is probably that another plugin has also installed an SLF4J backend.如果已经安装了,那么问题可能是另一个插件也安装了 SLF4J 后端。 In this case, you can "hack" your Eclipse's plugin configuration to remove the second backend:在这种情况下,您可以“破解”Eclipse 的插件配置以删除第二个后端:

  • Close Eclipse关闭日食
  • Open the file configuration/org.eclipse.equinox.simpleconfigurator/bundles.info打开文件configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
  • Remove the line starting with org.slf4j.impl.log4j12删除以org.slf4j.impl.log4j12开头的行
  • Start Eclipse again再次启动 Eclipse

Source: https://bugs.eclipse.org/bugs/show_bug.cgi?id=520754#c2来源: https : //bugs.eclipse.org/bugs/show_bug.cgi?id=520754#c2

If you are on OS X, the is located inside the Eclipse.app bundle in the folder Contents/Eclipse .如果您使用的是 OS X,则位于文件夹Contents/EclipseEclipse.app包内。 On other systems, the configuration should be a subfolder of your Eclipse directory.在其他系统上, configuration应该是 Eclipse 目录的子文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM