想看代码的源码时,发现看不了:

Cannot download sources
 Sources not found for:
 org.apache.commons:commons-pool2:2.4.2

maven下载源码失败,Sources not found for:xxx

这种情况是因为源码的jar包没有下载到本地的仓库。如图:

maven下载源码失败,Sources not found for:xxx

.lastUpdated结尾的文件为源码jar包,此时下载失败。

解决方法:手动下载源码jar包放到本地仓库中。

maven下载源码失败,Sources not found for:xxx

问题解决,这样就可以看源码了。

相关文章:

  • 2022-12-23
  • 2021-04-08
  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2021-12-04
  • 2021-12-31
猜你喜欢
  • 2021-09-16
  • 2021-07-17
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2021-11-18
  • 2021-06-06
相关资源
相似解决方案