Eclipse 测试用例test目录下不会自动编辑问题

参考转载 https://blog.csdn.net/liujw2001/article/details/24350379

今天想调试下测试用例,结果报 java.lang.ClassNotFoundException

 去编译下的target目录下发现测试用例没有进行编译。

手动mvn clean pacakge下就可以编译,但是太麻烦了,每次都有要手动编译。

 

网上搜索资料发现下面方法可行

1.当个项目配置方法

项目上右键-->properties-->java compiler-->building-->enable project specific setting-->build path problems-->选中abort   Incomplete build path/Circular dependencies  这两个选项修改为Warning

2.全局配置方法

Preferences->java->compiler->Building,其后的操作与上面的一致。

posted @ 2018-03-26 17:13  xixian87  Views(840)  Comments(0)    收藏  举报