Working with modules in IntelliJ IDEA

As I understand it, using modules allows us to control some dependencies.

I mean, we can allow one module to interact with another, but not vice versa. We can also do some reusable things, and we can simplify the deployment by, for example, putting all the test materials in a separate module and not deploying it for production.

I never used modules, but if the things described are really possible, I would like to know how to create them.

  • How to install dependencies?
  • How to do this without an IDE and any tools?
  • How to do it in IntelliJ IDEA?
+4
source share
2 answers

in IntelliJ, you can select a module and right-click it, as well as set properties (including dependencies) for the selected module.

+1
source

Managing dependencies yourself can quickly get complicated for non-trivial applications. For dependency management in Java, I suggest taking a look at Maven. Using the test area, you can link a project without a test code. IntelliJ, like other populated IDEs, has native support for Maven.

Maven - An Introduction to the Dependency Mechanism

Hope this helps!

+4
source

All Articles