For everyone — A grocery list handled for you

When you cook a dish from a recipe, you don't run to the farm for milk or comb the shelves for flour: you write down what you need, and the ingredients arrive. Apache Maven applies exactly this principle to software. Instead of a developer manually downloading every piece of code their program depends on, guessing which folder each file belongs in, and calling every tool in the right order, Maven relies on conventions shared by everyone and on a list of ingredients declared once and for all: the machine does the shopping, follows the steps, and produces a conforming result.

This kind of tool matters to any project that grows: it avoids silly mistakes (two incompatible versions of the same library), it guarantees that two different people get the same result from the same recipe, and it saves a considerable amount of time on repetitive tasks.

It is very directly useful to Yokul. The organization assembles existing open source bricks "like legos" to build its proofs of concept: every brick brought in is a dependency, and Maven knows how to fetch it, version it, and link it to the others automatically. With identical conventions from one project to the next, every free brick explored or reused integrates without reinventing the plumbing — the time is then spent on the virtual worlds, not on the assembly line.

And having lived it, this tool also has a very human dimension: there is a moment when a self-taught computer scientist meets someone who shows them the tools of the trade. For me, that moment has a face, a name, and a year — discovery of Java, of Eclipse, then of Maven in the early 2000s, introduced by a professional who took the time (greetings along the way, Damien!). It is this story that the full text pursues, because a tool is, sometimes, first and foremost a meeting.

The full text

The discovery: Java, Eclipse, Maven — and a generous professional

The first time I heard about Maven, I was not a professional software developer. I remember it precisely, and the person too (Damien M.: if you ever read this page, you will recognize yourself). It was at the beginning of the 2000s — 2002 or 2003. I had just completed my first training in the Java language, and I was shown, in order, the professional environments of the time about which I knew nothing: first Eclipse (the integrated development environment, the IDE, which gathers editor, compilation, and tools into a single window), and then quickly Maven — because, well, you know.

That "because, well, you know" deserves to be unfolded, since it sums up the tool's entire stance. Discovering Java alone means writing your programs in a text editor and assembling your dependencies by hand — every library downloaded, filed, and declared on instinct, in an order nobody tells you. Eclipse taught me to work comfortably; Maven taught me to assemble. And that way, I never had to suffer what people so often feel when entering professional development: the wall of tinkering without tooling — the passage from code that "works on my machine" to the project that builds itself, at anyone's desk.

Maven's key concepts

The project and its pom.xml

The project is the basic unit of the build. It is defined by a single file, the pom.xml, which gathers the essential information: name, description, version, dependencies, plugins. Everything that follows rests on this idea: a declarative description, readable by a human, executable by the machine — the same taste for separating description and execution that runs through the whole project (see Behavior Model).

Convention over configuration

This is Maven's founding stance, and it is what that first discovery had already prepared me to appreciate: the developer puts their code in the conventional places (sources, tests, resources), and in exchange the tool knows where everything is and what to do with it — without a single extra setting. You sacrifice a little freedom; you gain: any Maven project looks familiar at first glance.

Plugins

A plugin is a software component that extends Maven's functionality: compilation, documentation generation, package creation, test execution... Maven ships with many standard plugins, and you write your own for a project's specific needs. They are declared in the pom.xml — a list of ingredients, again.

Artifacts

An artifact is the file (or set of files) produced by the build of a project — usually JARs (Java libraries), WARs, or EARs (application packages for servers). Artifacts can be seen as the prepared dishes: they are what the project delivers, and what can be served to others.

Dependencies

A dependency is an external library used by the project. It is declared in the pom.xml by specifying the library's group, identifier, and version, and Maven takes care of downloading it from the repository at build time. This is one of the tool's key features: the right versions arrive, consistent with one another, with no manual effort and no incompatibility errors — and this is exactly what makes "lego-style" assembly possible: the bricks finally fit together.

Repositories

A repository is a location where artifacts and dependencies are stored. The local repository, on the developer's machine, serves as a cache for downloaded dependencies and receives the artifacts produced; the remote repository, on a server, makes it possible to share artifacts and dependencies between developers — and it is what makes team work across several projects possible, each module finding the others' pieces without copy-pasting.

Build lifecycles

A build lifecycle is a set of phases executed in a precise order. The default lifecycle includes, among others, compilation, packaging (bundling the artifact) and installation into the repository: you can ask to "go up to the package" or "go up to installation", and Maven chains everything needed — not one step too many, not one step missing.

Maven day to day

No need for a hefty manual: four gestures are enough. Installation is done from the Apache Maven website, with the archive extracted and the PATH set. Creating a project starts from a template (mvn archetype:generate) — a direct benefit of conventions: the file structure is already in place. Configuration lives in the pom.xml, by hand or via the IDE. And finally, the build: mvn package compiles the source code, runs the tests, and creates the artifact in target/. A useful subtlety: mvn package deposits nothing in the local repository — it is mvn install that, after building, installs the artifact into the local repository, where it becomes available as a dependency for the machine's other projects. The distinction seems subtle; it is precisely what allows a system to be carved into pieces that build on one another.

Benefits at a glance

  • Build automation: developers focus on the code, Maven handles the steps — and guarantees the consistency of the result.
  • Dependency management: automatic downloading of external libraries, consistent versions, no incompatibility errors.
  • Shared conventions: since project structure is standardized, you find your bearings in any Maven project, and small and large projects alike benefit from the same tooling.

All in all, Maven answers a simple need: turning a declarative list of ingredients and steps into a repeatable, reliable process. It is a mature tool, widely adopted in industry, that pays off as soon as a Java project has more than one developer or more than a handful of dependencies — which is precisely the situation of a project that assembles free bricks.

2009: a SIEM vendor, continuous integration, and modular decomposition

I owe the second act with Maven to joining, in 2009, the teams of a SIEM vendor (security information and event management — the software that watches over the security of an IT estate). That is where I discovered J2EE, the "enterprise" edition of Java (since renamed Java EE, then Jakarta EE), and above all I arrived there carrying two things from my own trajectory: some knowledge of continuous integration (CI, the automatic building and verification of the project at every change) and the ability to carve a project into pieces — well-defined modules that build, test, and ship independently.

Maven helped enormously on this — and at the time, it was the obvious choice. Multi-module projects, shared conventions, cross-dependency management: everything demanded by decomposing a large project into autonomous parts went naturally through a pom.xml per module, an orchestration parent, and a continuous integration pipeline that builds every piece, in order, at every change. The grocery list of the first section became an organization plan: you no longer write just what you want to build, but what must be built into which pieces, and who depends on whom.

In return, this company — which would prove, after a series of acquisitions, to be international — left me ways of structuring projects that still carry rich lessons today: how to name, version, and articulate modules when dozens of people work on them, how to make a build reproducible from one country to another. These lessons, which I owe as much to the company's good examples as to its counterexamples — the badly decomposed projects that one encounters there too — serve the projects behind "yokul", and, in their own way, the way this very site is structured.

Maven in Yokul

Yokul assembles its proofs of concept out of existing open source bricks, "like legos". Every brick — 3D rendering library, inference engine, visualization tool... — is a dependency declared in a pom.xml, which Maven fetches, versions, and links to the others. Since the conventions are the same everywhere, a newly explored free brick integrates without reinventing the plumbing: the time is spent on the virtual worlds, not on the assembly line.

Since then, the execution platform has evolved — Apache Quarkus took over the role that once fell to the Maven + J2EE combination — but the build principle hasn't changed: declarative description, conventions, explicit dependencies. Maven has aged; it has not gone out of fashion.

Key takeaways

  • Maven drives the build of a Java project through shared conventions and a single configuration file, the pom.xml.
  • mvn package builds the artifact in target/; it is mvn install that installs it into the local repository, where other projects can use it.
  • Artifacts and dependencies live in repositories (local and remote), which keep the sharing and reuse machinery running.
  • Automatic dependency management avoids version errors and guarantees reproducible builds — the baseline condition for carving a project into autonomous modules and building it in continuous integration.
  • And an anecdote that is also a lesson: sometimes one person who takes the time to show you a tool at the right moment is worth months of documentation.

See also