简体   繁体   English

在IntelliJ IDEA的buildpath /模块中导入另一个项目?

[英]Importing another project in IntelliJ IDEA's buildpath/module?

I've been using Eclipse for awhile but I looking to possibly switch to IDEA. 我已经使用Eclipse一段时间了,但是我希望切换到IDEA。 Eclipse has been a workhorse but its bugginess is driving me crazy. Eclipse一直是主力军,但是它的错误使我发疯。

My setup in Eclipse usually involves 2-3 projects being open, and one project being in the buildpath of the two other projects to serve as a library. 我在Eclipse中进行的设置通常涉及2-3个打开的项目,一个项目位于另两个项目的构建路径中,以用作库。 How do I make this happen in Intellij? 如何在Intellij中做到这一点? I think I'm supposed to create modules but it this is coming very counter-intuitively to me. 我想我应该创建模块,但这对我来说是非常违反直觉的。

It's a little bit different in IDEA. 在IDEA中有点不同。 Here's a link that'll help you understand: 这是一个可以帮助您理解的链接:
https://www.jetbrains.com/idea/help/intellij-idea-vs-eclipse-terminology.html https://www.jetbrains.com/idea/help/intellij-idea-vs-eclipse-terminology.html
Basically in IDEA project is a number of modules like workspace in eclipse. 基本上,IDEA项目中有许多模块,例如eclipse中的工作区。 So you need to add modules to your project and in the module settings( <F4> ) add a module dependency. 因此,您需要将模块添加到项目中,并在模块设置( <F4> )中添加模块依赖性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM