Eclipse找不到gradle项目的源代码

时间:2018-05-18 09:20:33

标签: java eclipse gradle

我在Eclipse上创建了一个具有此依赖关系的Gradle项目:

// https://mvnrepository.com/artifact/com.onyxdevtools/onyx-database compile group: 'com.onyxdevtools', name: 'onyx-database', version: '2.1.3'

成功刷新Gradle项目后,我可以在项目和外部依赖项中看到Onyx数据库jar,我可以导入所有注释和类我想用。

我的问题是我看不到所有Onyx类的源代码,因为Eclipse总是显示这条消息:

Source not found The Jar of this class file belongs to container 'Project and External Dependencies' which does not allow modifications to source attachments on its entries.

由于我正在学习如何将Onyx用于项目,因此实际上可以帮助我真正看到我正在使用的代码。如何告诉Eclipse在哪里查找源代码?

0 个答案:

没有答案