how to add another project to an intellij project build path ...

i have created a project A, and i need the add another project B to the project A build path.

to slove this issue we use "Java Build Path -> Projectes -> Add" in eclipse

what should i do in intellij??

8 comments
Comment actions Permalink

Hello beneo,

A and B should be modules rather than projects, and you should add a dependency
on B in the Project Structure | Dependencies tab of module A.

i have created a project A, and i need the add another project B to
the project A build path.

to slove this issue we use "Java Build Path -> Projectes -> Add" in
eclipse

what should i do in intellij??


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Hello,

Eclipse project ~= IJ module (check this page for the terminology).

So, you need to define one module as dependency for another one.

Denis

0
Comment actions Permalink

On the Dependencies tab, there is no add button.

blogcluster - [-home-saarixx-IdeaProjects-blogcluster] - IntelliJ IDEA 10.0.1_003.png

0
Comment actions Permalink

Hello beneo,

On the Dependencies tab, there is no add button.


There will be one if you resize the dialog.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

denis.zhdanov wrote:

Hello,

Eclipse project ~= IJ module (check this page for the terminology).

So, you need to define one module as dependency for another one.

Denis

hi, in intellij, i created maven project clustering-antispam, then, i created maven module client and maven module clusterdemo.


and i use your way to define one module as dependency, however, there is no add button, and i resize all the dialog.

any idea?


i  resize

Project Structure_004.png
resize
Project Structure_005.png

and resize
Project Structure_006.png

and there is no "add" button

0
Comment actions Permalink

i uninstall the findbug plugin

and see the add button finally!!!

WTF

0
Comment actions Permalink

Hi beneo,

Cool, glad to see that it works finally. Unfortunately we can't guarantee correct behavior for third-party plugins.

Regards, Denis

0
Comment actions Permalink

This solution is not working for me.

Please refer to conversation in thread

https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000322004-Adding-Project-Dependancy-is-not-working?page=1#community_comment_115000346264

What may be going wrong here ?

 

 

 

0

Please sign in to leave a comment.