Repositories
By default, Reposilite generates two standard repositories:
- releases - the most popular repository type where we can push our artifacts
- snapshots - dedicated repository for artifacts
Custom repository
You can also define a new one just adding it in the configuration:
repositories {
releases // (primary) - declared as first
snapshots
custom_repository
.private // (hidden) - requires authorization to browse
Private repositories
To hide repository from public view, prefix its name with .
symbol (the dot will be removed from name).
Hidden repository can be accessed (indexed and modified) only using a proper access token.
Rewrite paths
Let's say, we have artifact groupId/artifactId
located in the releases
repository with some builds.
Maven will access this file using the standard path qualifier built on top of data provided in pom.xml
:
We can force Reposilite to support requests without primary repository name using this option:
rewritePathsEnabled: true
After that, we should be able to access groupId/artifactId
using the following path:
You may find it useful when you want to share link to your artifacts in a cleaner way.
Latest info
Reposilite exposes extra qualifier to get information about the latest version of requested artifact:
It might be helpful to fetch raw version of artifact to wrap it e.g. on your site.