What is the Java equivalent of NuGet?

JavaNuget

Java Problem Overview


I'm just embarking on some Java work after working exclusively in C# for about a decade; I'm using IntelliJ as my IDE. I can't find the equivalent of NuGet for Java. How do Java developers re-use third party code? NuGet solves so many problems for me in .NET that I can't believe there isn't a direct equivalent...?

Java Solutions


Solution 1 - Java

After several hours of following dead ends, installing Maven, customizing environment variables and chasing down dependencies, I eventually found that in IntelliJ under project structure it is possible to add a library directly from Maven. Perfect!

Solution 2 - Java

In java world for dependency management java we can maven (Commonly used) or ivy (little used) , Gradle (Latest) .

To get install third party jar in any ide use maven update

If you use maven you will be pom.xml where you will be mention about dependency .

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionTim LongView Question on Stackoverflow
Solution 1 - JavaTim LongView Answer on Stackoverflow
Solution 2 - JavaNikhil Kumar KView Answer on Stackoverflow