Steps for adding external jars in IntelliJ IDEA:

  1. Click File from the toolbar
  2. Select Project Structure option (CTRL + SHIFT + ALT + S on Windows/Linux, + ; on Mac OS X)
  3. Select Modules at the left panel
  4. Select Dependencies tab
  5. Select + icon
  6. Select 1 JARs or directories option
Answer from Cambium on Stack Overflow
🌐
JetBrains
jetbrains.com › help › idea › convert-a-regular-project-into-a-maven-project.html
Add Maven support to an existing Java project | IntelliJ IDEA Documentation
We successfully executed the created .jar file. Let’s summarize what we’ve done in this tutorial. We started with a regular Java project and converted it into a Maven project by adding a pom.xml file and defining our project configuration within it.
Discussions

How do I put .jar files directly into my project rather than using them as external libraries?
Honestly if you want to do Java dev just learn to love maven or Gradle. More on reddit.com
🌐 r/IntelliJIDEA
5
3
December 2, 2021
java - Creating a jar from a maven project in intellij - Stack Overflow
Releases Keep up-to-date on features we add to Stack Overflow and Stack Internal. ... Find centralized, trusted content and collaborate around the technologies you use most. Learn more about Collectives ... Bring the best of human thought and AI automation together at your work. Explore Stack Internal ... I created a new maven project in IntelliJ and set packaging to jar ... More on stackoverflow.com
🌐 stackoverflow.com
Use Jar as intelliJ/Maven Dependency - Stack Overflow
Releases Keep up-to-date on features we add to Stack Overflow and Stack Internal. ... Find centralized, trusted content and collaborate around the technologies you use most. Learn more about Collectives ... Bring the best of human thought and AI automation together at your work. Explore Stack Internal ... How do i use Jar files as a dependency using IntelliJ with Maven... More on stackoverflow.com
🌐 stackoverflow.com
Problem packaging Maven project into Jar (IntelliJ)
If you want maven to include ... use maven-assembly-plugin. By default will mvn package run the jar-plugin (for projects that is of type jar, which is the default type) that creates a jar-file with only your code. Any dependencies that are required in run-time has to be included on the classpath when you run your jar-file. ... Thank you, I'll try that tomorrow. Just for future reference, is it possible to build a 'fat jar' from normal intelliJ ... More on reddit.com
🌐 r/learnjava
12
4
February 8, 2023
🌐
Tutorial Works
tutorialworks.com › intellij-maven-create-jar
How to create a JAR file with Maven in IntelliJ - Tutorial Works
December 20, 2024 - Expand your project in the tree, expand Lifecycle and double-click on package. IntelliJ will run the Maven package phase, and you’ll see the output in another window below. Your JAR file will be available at target/your-app-1.0.jar!
🌐
Eviltester
eviltester.com › 2017 › 10 › maven-local-dependencies.html
Simple ways to add and work with a `.jar` file in your local maven setup - EvilTester.com
October 13, 2017 - TL;DR Hack - add as a library in IntelliJ project. Tactic - add as system scope in maven. Tactic/Strategic - install locally to .m2. Strategic - use a repository management tool, publish to maven central Sometimes you want to work with a jar file that isn’t hosted in maven central.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 4416008827538-Correct-way-to-add-external-jars-lib-jar-to-an-IntelliJ-IDEA-project
Correct way to add external jars (lib/*.jar) to an IntelliJ IDEA project – IDEs Support (IntelliJ Platform) | JetBrains
January 22, 2022 - You need to define it as a Project Library in Project Structure dialog and then add this library as a dependency to a module. But the recommended approach is to use Maven or Gradle for managing dependencies.
🌐
DZone
dzone.com › testing, deployment, and maintenance › deployment › adding and working with jar files in your local maven setup
Adding and Working With JAR Files in Your Local Maven Setup
October 18, 2017 - Adding it to your project as a system-scoped file. Using a repository management tool like Nexus or Archiva. Publishing the dependency to Maven Central. For very quick hacks, add the .jar as an IntelliJ project dependency and bypass Maven.
Find elsewhere
🌐
Java Code Geeks
javacodegeeks.com › home
IntelliJ IDEA Include External JAR Example - Java Code Geeks
March 13, 2025 - For this example, I downloaded the lombok.jar from the Maven Repository website and stored it in my PC’s Downloads folder. In IntelliJ IDE, click File->Project Structure ..., then it pops a new “Project Structure” window.
🌐
JetBrains
jetbrains.com › help › idea › library.html
Libraries | IntelliJ IDEA Documentation
January 28, 2026 - In the main menu, go to File | Project Structure Ctrl+Alt+Shift+S and click Libraries to add a project library or Global Libraries to add a global library. Click and select From Maven.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 360009494360-Add-all-local-maven-repository-jars-as-libraries
Add all local maven repository jars as libraries – IDEs Support (IntelliJ Platform) | JetBrains
August 3, 2020 - In this case you should add these projects to current project as Maven modules, see Link a Maven project. ... I think I have figured out the root issue, but I cannot resolve it. The .jar sources are being added as libraries by Maven like what Andrey said. However, the pom.xml uses a range to find which version source .jar to use ([8.200.0, 8.200.999]). MyEclipse is able to search the directories using that range to find which .jar to add as a source. IntelliJ is defaulting to using 8.200.0 and pulling in .jar.lastUpdated for some source files that don't have a version 8.200.0.
🌐
Baeldung
baeldung.com › home › ide › add external jar file to intellij project
Add External JAR File to IntelliJ Project | Baeldung
February 28, 2025 - We can add a JAR file to the project’s classpath through the Project Structure > Modules > Dependencies section. Then, we can expand the External Libraries section in the Project view to verify the JAR file inclusion in our IntelliJ project.
🌐
Reddit
reddit.com › r/learnjava › problem packaging maven project into jar (intellij)
r/learnjava on Reddit: Problem packaging Maven project into Jar (IntelliJ)
February 8, 2023 - If you want maven to include ... use maven-assembly-plugin. By default will mvn package run the jar-plugin (for projects that is of type jar, which is the default type) that creates a jar-file with only your code.
🌐
360learntocode
360learntocode.com › 2022 › 07 › How-to-add-external-jar-or-library-on-IntelliJ-IDEA-project.html
How to add external jar or library on IntelliJ IDEA project ~ 360learntocode
July 1, 2022 - After that in IntelliJ idea you can see the Gradle on the right side, click on it and refresh the Gradle project as below: Add the following system dependency inside pom.xml file. <dependency> <groupId>com.libName</groupId> <artifactId>lib-artifact</artifactId> <version>20220117</version> <scope>system</scope> <systemPath>${basedir}/libs/jar_file_name.jar</systemPath> </dependency> Make sure to change the group id, artifact id, and system path. After that from the IntelliJ idea on the right side, you can see the Maven click on it and refresh the project by clicking the project name as below.
🌐
JetBrains
jetbrains.com › help › idea › work-with-maven-dependencies.html
Maven dependencies | IntelliJ IDEA Documentation
Note that changing dependency's scope in the Project Structure dialog will not affect the pom.xml file. You can also add a custom jar file as a dependency using the Maven scope system when you define your dependency.
🌐
GeeksforGeeks
geeksforgeeks.org › java › how-to-add-external-jar-file-to-an-intellij-idea-project
How to Add External JAR File to an IntelliJ IDEA Project? - GeeksforGeeks
July 23, 2025 - Step 1: Open your installed IntelliJ IDEA Project and go to the File > Project Structure as shown in the image below. Step 2: After step 1 Select Modules at the left panel and select the Dependencies tab as shown in the below image.
🌐
W3Docs
w3docs.com › java
Correct way to add external jars (lib/*.jar) to an IntelliJ IDEA project
Then, IntelliJ IDEA will automatically detect the JAR file and add it to the classpath of the project. Note that if you are using a build tool such as Maven or Gradle to manage the dependencies of your project, you should add the JAR file as a dependency in the build file instead of adding ...
🌐
JetBrains
jetbrains.com › help › idea › working-with-module-dependencies.html
Module dependencies | IntelliJ IDEA Documentation
October 23, 2024 - ... JARs or directories: select a Java archive or a directory from files on your computer. Library: select an existing library or create a new one and then add it to the list of dependencies.