Interview Prep/Build Tools (Java, Node.js, Python, .NET)/Java builds (Maven, Gradle, JAR, WAR)

What is Nexus or JFrog Artifactory and why do companies use it?

BeginnerConceptJava builds (Maven, Gradle, JAR, WAR)
Answer

Short answer

Nexus Repository and JFrog Artifactory are artifact repository managers. They store the company's built artifacts (JARs, WARs, npm/NuGet/PyPI packages, Docker images, Helm charts) and act as a caching proxy for public repositories like Maven Central, npmjs and PyPI.

What they give you

Need How the repository manager helps
Faster, reliable builds Caches public packages close to CI; builds work even if Maven Central is slow or down
Share internal libraries Teams publish com.company:common-lib:2.3.0 once, everyone uses it
Release storage Every released artifact is stored, versioned and immutable
Security / control Block packages with known CVEs or bad licences; audit who downloaded what
One place for many formats Maven, npm, PyPI, NuGet, Docker, Helm in one tool

Typical repository types (Nexus)

  • proxy — cache of a remote repo (maven-central).
  • hosted — your own uploads (maven-releases, maven-snapshots).
  • group — one URL combining several (maven-public = central proxy + releases + snapshots).

What to say in the interview

"Nexus or Artifactory is our artifact store and proxy. Builds resolve dependencies through a group repository that caches public sources, and pipelines publish versioned, immutable release artifacts there for deployment."

All Build Tools (Java, Node.js, Python, .NET) questions Roadmap: Java apps: Maven, Gradle, JAR & WAR

More on Java builds (Maven, Gradle, JAR, WAR)