很多时候我们在工作或者学习的过程中总是想打开源码,但是总是打开.class文件;

1:我们可以用maven来下载第三方的开源的源码,直接点击dewnload sources通过manven下载源码

2:点击dewnload sources提示下载失败

idea maven 下载源码失败:Cannot download sources Sources not found for: xxx

3:在项目根目录下的执行命令

mvn dependency:resolve -Dclassifier=sources

4:一般执行命令后自动下载了源码,如果打开还是.calss文件,那么进行绑定

idea maven 下载源码失败:Cannot download sources Sources not found for: xxx

5:选择对应的源码,一般是xxxxx.sources格式的;就可以了

相关文章:

  • 2021-06-27
  • 2022-12-23
  • 2021-07-27
  • 2021-04-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
猜你喜欢
  • 2021-07-17
  • 2021-12-20
  • 2021-07-31
  • 2022-12-23
  • 2021-08-25
  • 2022-01-01
  • 2021-07-21
相关资源
相似解决方案