Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij IDEA compiles all modules even though I asked for only 1

I have several modules in the project with a complex dependency structure. When I want to compile and run unit tests for 1 module, I want IDEA to ignore any compilation errors in unrelated modules. How can I do that? Currently IDEA compiles everything even if I say "compile module 1".

I don't want to setup several different projects for this.

like image 935
Sumedh Avatar asked Sep 14 '12 11:09

Sumedh


1 Answers

In the test Run configuration specify the corresponding module. IntelliJ IDEA will compile only this module and required dependencies, it will not try to compile other modules if this test module doesn't depend on them.

If for some reason it doesn't work as expected, please try to share a small sample to illustrate the problem.

like image 79
CrazyCoder Avatar answered Sep 27 '22 23:09

CrazyCoder