Intellij - 在Eclipse中添加项目依赖关系 [英] Intellij - Add project dependency like in Eclipse

查看:114
本文介绍了Intellij - 在Eclipse中添加项目依赖关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在切换到Intellij并尝试做与Eclipse相同的事情。在Eclipse中,您可以在另一个项目中添加项目作为依赖项(项目属性 - >Java构建路径 - >项目 - >单击我的库项目)。

I'm switching to Intellij and trying to do the same thing as in Eclipse. In Eclipse, you can add a project as a dependency in another project (project properties -> "Java Build Path" -> "Projects" -> Click on my library project).

目前的情况是,我正在开发一个库,我可以在另一个项目中测试这些功能,而不必每次在库中添加新的东西来构建jar文件。

The current situation is that I'm developing a library and I can test the features in another project without building the jar file every time I add new stuff to the library.

我试图用Intellij实现这一点,但没有成功(这些项目都是在Intellij中导入的)。

I'm trying to achieve this with Intellij but without success (the projects are both imported in Intellij).

我如何做?

推荐答案

从文件 - >项目结构中,选择模块。您将看到所有添加的项目。单击项目,然后从右侧选择依赖关系选项卡。这将显示未导入红色文本的项目。 HTH

From File -> project structure, select Modules. You will be presented with all the added projects. Click a project and from the right hand side select Dependencies tab. This will show you projects that are not imported in red coloured text. HTH

这篇关于Intellij - 在Eclipse中添加项目依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆