Intellij IDEA compiles all modules, although I requested only 1

I have several modules in a 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 this? Currently, IDEA compiles everything, even if I say "compile module 1".

I do not want to set up several different projects for this.

+5
source share
2 answers

In the test run configuration, specify the appropriate module. IntelliJ IDEA will compile only this module and the necessary dependencies; it will not try to compile other modules if this test module does not depend on them.

- , , , .

+3

. , Ivy , lib, , - . , .

0

All Articles