eclipse下maven调试的技巧(Re-run Maven using the -X switch to enable full debug logging.)

问题描述:

在对interface子项目进行install的时候,报错:Could not resolve dependencies for project,提示找不到它所依赖的pojo,对这两个项目再三clean,install都无效,因为他们都是parent的子项目,对parent项目install同样失败,还有提示:Re-run Maven using the -X switch to enable full debug logging.

如图:eclipse下maven调试的技巧(Re-run Maven using the -X switch to enable full debug logging.)

勾选Debug Output,可以在控制台看到很详尽的日志,根据日志进行修改即可。一般多为pom文件出现问题。