Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the Java equivalent of NuGet?

Tags:

java

nuget

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...?

like image 461
Tim Long Avatar asked Aug 16 '14 17:08

Tim Long


People also ask

Is NuGet same as Maven?

NuGet is a free and open-source package manager designed for the Microsoft development platform (formerly known as NuPack). Maven is a build automation tool used primarily for Java projects. plugins and many more features.

What is NuGet and Maven?

Maven manages dependencies and the build process for Java projects. Homebrew simplifies package installation for Mac and Linux operating systems. Npm installs and tracks JavaScript dependencies. NuGet manages dependencies for . NET projects.

What is a NuGet in programming?

NuGet is the package manager for . NET. It enables developers to create, share, and consume useful . NET libraries. NuGet client tools provide the ability to produce and consume these libraries as "packages".


2 Answers

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!

like image 112
Tim Long Avatar answered Oct 08 '22 14:10

Tim Long


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 .

like image 29
Nikhil Kumar K Avatar answered Oct 08 '22 12:10

Nikhil Kumar K