Skip to content

Manage your Maven, PyPI and npm repositories

What you'll learn:

  • How the Dépôts applicatifs page is organised, and what each tab does
  • How to read a repository: its artifacts, its status, its access rules and its connection snippets
  • How to import a public library from Maven Central, and what the checks tell you
  • How to watch a library for new versions, and how to promote an artifact to another repository

Time: ~20 minutes
Prerequisites: An account that can upload (maintainer or administrator for access rules). To publish from a build tool instead of the interface, see Publish your first Maven/npm/PyPI package.


What this page is for

Your builds consume libraries and publish their own artifacts. Repod hosts them in private repositories, one set per format: Maven (Java), PyPI (Python) and npm (JavaScript). The page lets you see what is stored, who can reach it, bring a public library in through the same checks as everything else, and move an artifact from one repository to another.

Repod is a private host, not a transparent proxy of the public registries: a library is only available once someone has published or imported it here.

A repository is created automatically the first time something is published to it, so there is no "create" button.


Step 1 — Look at a repository

Open Applicatifs → Dépôts applicatifs.

The page: the format switch, the four tabs, the list of Maven repositories and the artifacts of the selected repository with their status and actions

Figure 1 — The format (1), the tabs of the page (2), the repositories (3), the artifacts (4) and the tabs of a repository (5).

  1. Choose the format (1): Maven, PyPI or npm. Everything below applies to the format you chose.
  2. The four tabs on the right (2) are Dépôts (what you see here), Upload manuel, Importer and Mirroir.
  3. Click a repository in the list (3). Its artifacts appear (4): the name, the version, the file (a Maven version is a .jar plus a .pom), the status and two actions, Détails and Supprimer.

The status says whether a build can use the artifact:

Status Meaning
Publié Available to builds
En révision Held for a security decision: invisible to mvn, pip and npm until someone decides
Quarantaine Rejected and isolated
Upgrade requis A newer version is required
Bloqué Refused by the policy

The tabs of the repository (5) are Artefacts, Accès, Connexion and Promouvoir. The red Supprimer le dépôt button removes the whole repository. On a Maven repository, Supprimer on a row removes the whole version, the .jar and the .pom together.


Step 2 — Decide who can use a repository

Open the Accès tab of a repository.

The Access tab: a form to add a restriction by role, group or user, and the message saying the repository is open

Figure 2 — The restriction form (1) and the current state (2).

A repository with no restriction is open to any user who has the global permission. As soon as you add a restriction (1), only the listed roles, groups or users can use it. The message (2) tells you the current state: here, Aucune restriction — dépôt ouvert.

Restricting a repository adds to the global permissions, it does not replace them: a user must have both. An administrator is never locked out. A person who is not allowed does not receive "forbidden": the repository looks as if it did not exist.


Step 3 — Connect a build tool

Open the Connexion tab.

The Connection tab: the settings.xml snippet with the repository identifier, the distributionManagement block with the repository address, and the deploy command

Figure 3 — The credentials (1), the repository address (2) and the publish command (3).

The tab gives you what to paste, already filled with the repository's name and address: the credentials block for ~/.m2/settings.xml (1), the distributionManagement block for pom.xml (2) and the command to publish (3). For a CI pipeline, use an API token (repod_…) as the password instead of a personal password. The same tab gives the equivalent snippets for PyPI (pip.conf, twine) and npm (.npmrc).


Step 4 — Import a public library

Open the Importer tab and search Maven Central. (For PyPI there is no public search to use: you give the exact project name. For npm, search works like Maven.)

The Import tab: the search field, the list of results, and the import panel with the version, the target repository, the Import button and the result of the checks

Figure 4 — The search (1), the results (2), the version (3), the target repository (4), the Import button (5) and the result of the checks (6).

  1. Type a name and click Rechercher (1). Results are live, from Maven Central.
  2. Read the group identifier before you click (2). Searching commons-lang3 returns 20 results, and only one is the Apache library, org.apache.commons:commons-lang3. The others are re-publications under other groups, such as cn.com.xuxiaowei.test:commons-lang3. Importing the wrong one brings code you did not intend.
  3. Choose the version (3) and the target repository (4): type its name or click one of the existing ones.
  4. Click Importer (5). The download and the checks take about 40 seconds. You can leave the page: the import continues and a notice appears at the end.

The result (6) lists, file by file, what happened: the file is imported and published, ClamAV found no threat, Grype found no known vulnerability, with the policy applied (here, vulnerabilities rated Critical or High go to review, Medium only warn). The .pom is not scanned for binaries, since it is only a description, but the libraries it declares are checked against a public vulnerability database: a declared dependency with a known vulnerability sends the .pom to review.

Test dependencies are ignored

Dependencies declared with <scope>test</scope> are never delivered to the people who use your library, so they are not checked. Before this was fixed, importing commons-lang3 sent its .pom to review because of a test-only dependency, commons-text, which has a known vulnerability, and Maven could not resolve the library until someone decided.

If a file goes to review, the panel says En attente de révision RSSI and sends you to Décisions CVE (see Walk through a CVE remediation).


Step 5 — Watch a library for new versions

Open the Mirroir tab.

The Mirror tab: the form to add a watched library, with the group, the artifact and the target repository, and the list of watched coordinates, empty

Figure 5 — The form to add a watched library (1) and the list of watched libraries (2).

Public registries offer no catalogue to download in bulk. The mirror instead checks a list that you choose (1): for Maven, a group and an artifact, and the repository where new versions go. The scheduled job (see Schedule the recurring scans and mirrors; it is off until you enable it) looks at the watched libraries (2) and imports every new upstream version through the full pipeline, antivirus, vulnerabilities and policy, as a manual import would.


Other tabs and buttons

  • Promouvoir (in a repository): copies an artifact that is already published (not in review, not quarantined) to another repository of the same format, for example from a team repository to the one your CI uses. Promotion never routes around a pending decision, and the destination's content rules apply.
  • Upload manuel: sends a file you already have, with the same checks as a mvn deploy. A repository that does not exist yet is created.
  • Scanner maintenant (top right): re-scans the artifacts already published, to catch a vulnerability discovered after the import. Repod also does it on a schedule.

What this page does not do

  • It is not a proxy. Nothing is fetched from Maven Central, PyPI or npm on demand; a library must be imported first.
  • SNAPSHOT versions are refused for Maven: use release versions.
  • Dependencies are checked by name, not by version range. The check lists every vulnerability ever published for a declared dependency, and a person decides whether the version actually resolved is affected. It covers the dependencies declared directly, not the whole tree.
  • The check of declared dependencies does not apply to a manual upload. A file with no accompanying metadata has nothing to analyse.

What's next