[英]Eclipse Main program Launch error
我有一个Maven项目(Swing客户端),在其中有一个名为ClientContainerLauncher的类文件,主要方法如下所示,
/**
* The main to launch a client CDI container from the command line.
*
* @param args Command line arguments.
* @throws Exception If the client CDI container fails to launch.
*/
public static void main(final String[] args) throws Exception {
ClientContainerLauncher launcher = new ClientContainerLauncher();
launcher.launch();
}
当我启动调试/运行时,出现以下错误,
生成配置是我的其他Maven项目之一,但是当前项目与生成配置项目没有依赖性,但是会引发此错误。 即使将其添加为依赖项(生成配置)项目后,我也遇到相同的错误。
我试图进行Maven更新,清理项目和调试/运行,但是没有任何效果。 我该如何解决。 帮我。
Eclipse有时会对Maven项目做一些奇怪的事情。 以下是一些线索:
> Close project
) 。 Maven > update
:这告诉m2eclipse插件基于pom.xml文件更新Eclipse项目配置。 您可以在generated-configuration
上尝试使用它(实际上,每次对pom进行重要更改时,都应习惯使用它)。 Run as > Maven install
将其安装到本地存储库中。
generated-configuration
上运行它,也generated-configuration
在当前项目上运行它。 我不确定这些方法是否会有帮助,但这是我可以根据当前信息提出的最佳建议。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.