You can also configure a custom remote repository.
Intellij jar libraries download#
IntelliJ IDEA will download the library from Maven or Nexus public repositories. You can also specify another library location, and select whether you want to download transitive dependencies, source files, Javadoc files, or annotations. If you don't know its exact name, enter the key words and click. In the next dialog, specify the library artifact (for example, org.jetbrains:annotations:16.0.2). Download a library from Mavenįrom the main menu, select File | Project Structure Ctrl+Alt+Shift+S and click Libraries. For more information on module files, refer to Modules. This file is used for keeping module configuration. References to module libraries are stored in the module. In the dialog that opens, select a project or a global library that you want to add to the module.Īlternatively, click New Library and select how do you want to add a new library: you can add a Java and Kotlin libraries from files on your computer, or download a library from Maven. Select the module for which you want to add a library and click Dependencies. Global and project libraries are not available until you add them to module dependencies.įrom the main menu, select File | Project Structure | Project Settings | Modules. References to project libraries are stored together with the project in the. Under Project Settings, select Libraries. References to global libraries are stored in the IDE configuration directory in options | applicationLibraries.xml. Select From Maven to download a library from Maven. Select Java or Kotlin/JS to add a library from the files located on your computer. Under Platform Settings, select Global Libraries. Define a global libraryįrom the main menu, select File | Project Structure Ctrl+Alt+Shift+S. Select these files in the Project tool window, and then select Add as Library from the context menu. You can also create a new library from the JAR files located within a project content root.
Intellij jar libraries code#
IntelliJ IDEA will also use the code from the libraries to build and deploy your application. Define a libraryĪfter you define a library and add it to module dependencies, the IDE will be supplying its contents to you as you write your code. If you're using a build tool, such as Maven or Gradle, make all changes using the build file. This information is valid for projects that are built with the native IntelliJ IDEA builder. In IntelliJ IDEA, libraries can be defined at three levels: global (available for many projects), project (available for all modules within a project), and module (available for one module).Ī Java library can include class files, archives and directories with class files as well as directories with native libraries. A library is a collection of compiled code that you can add to your project.