之前使用ant成功编译了tomcat的源码(参见tomcat源码ant编译),今天想再debug一把,却发现编译失败了,如图:
![](https://img-blog.csdnimg.cn/img_convert/247c1ff34c23f8bd23774925815d47e8.png)
很明显,ant.jar引用不到了,File -> Project Structure -> Modules -> Dependencies -> 点击右边+ -> 点jar or directories,把maven仓库的ant.jar和easymock.jar引入进来:
![](https://img-blog.csdnimg.cn/img_convert/2b53321ef5fd8023131c1c106d683f77.png)
红叉叉消失,debug跑起来:
![](https://img-blog.csdnimg.cn/img_convert/fb00959fa00bdbfc9c3be633c832f2ea.png)
之前使用ant成功编译了tomcat的源码(参见tomcat源码ant编译),今天想再debug一把,却发现编译失败了,如图:
很明显,ant.jar引用不到了,File -> Project Structure -> Modules -> Dependencies -> 点击右边+ -> 点jar or directories,把maven仓库的ant.jar和easymock.jar引入进来:
红叉叉消失,debug跑起来: