之前使用ant成功编译了tomcat的源码(参见tomcat源码ant编译),今天想再debug一把,却发现编译失败了,如图:

tomcat源码缺少ant包编译失败问题解决

 

 

  很明显,ant.jar引用不到了,File -> Project Structure -> Modules -> Dependencies -> 点击右边+ -> 点jar or directories,把maven仓库的ant.jar和easymock.jar引入进来:

tomcat源码缺少ant包编译失败问题解决

 

 

  红叉叉消失,debug跑起来:

tomcat源码缺少ant包编译失败问题解决

 

相关文章:

  • 2022-01-10
  • 2021-05-28
  • 2022-01-08
  • 2021-08-15
  • 2022-12-23
  • 2021-04-23
  • 2021-09-08
  • 2021-09-03
猜你喜欢
  • 2021-07-04
  • 2021-06-01
  • 2022-12-23
  • 2022-01-05
  • 2019-07-22
  • 2020-11-01
  • 2022-12-23
相关资源
相似解决方案