While Maven is designed to handle dependency management automatically, there are times when your environment—due to strict firewalls, air-gapped networks, or broken remote repositories—won't let IntelliJ fetch what it needs. When the "Automatic Import" fails, you need to take control.
Ensure your Local repository path in Settings > Maven matches where you installed the manual JAR. download maven dependencies manually intellij
mvn install:install-file \ -Dfile=/path/to/your/library.jar \ -DgroupId=com.example \ -DartifactId=custom-lib \ -Dversion=1.0.0 \ -Dpackaging=jar Use code with caution. 3. Update your pom.xml While Maven is designed to handle dependency management
Click the Maven tab on the right edge of IntelliJ (or go to View > Tool Windows > Maven ). download maven dependencies manually intellij
Click the "Reload All Maven Projects" icon (the circular arrows).