• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

IntelliJ - What does Module stand for?

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In IntelliJ IDEA, we have project which contains source code, like any other IDEs.
So about Module, what does it stand for? I can create multiple modules in one project, but why do I need that when I can create multiple projects? What is it advantage (modules)?

Thanks!
 
Marshal
Posts: 8616
623
Mac OS X VI Editor BSD Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

JetBrains wrote:Project
In IntelliJ Platform, a project encapsulates all your source code, libraries, build instructions into a single organizational unit. Everything you do using IntelliJ Platform SDK, is done within the context of a project. A project defines some collections referred to as modules and libraries. Depending on the logical and functional requirements to the project, you can create a single-module or a multi-module project.

Module
A module is a discrete unit of functionality that can be run, tested, and debugged independently. Modules includes such things as source code, build scripts, unit tests, deployment descriptors, etc. In the project, each module can use a specific SDK or inherit SDK defined on the project level (see the SDK section later in this document). A module can depend on other modules of the project.

Library
A library is an archive of compiled code (such as JAR files) that your modules depend on. IntelliJ Platform supports three types of libraries:

Module Library: the library classes are visible only in this module and the library information is recorded in the module *.iml file.
Project Library: the library classes are visible within the project and the library information is recorded in the project *.ipr file or in .idea/libraries.
Global Library: the library information is recorded in the applicationLibraries.xml file into the <User Home>/.IntelliJIdea/config/options directory. Global libraries are similar to project libraries, but are visible for the different projects.


More about it here.
 
reply
    Bookmark Topic Watch Topic
  • New Topic