Skip to content

Maven / Gradle Packages

Avrea caches artifacts from Maven Central so that dependency resolution in Maven and Gradle resolves from colocated cache on repeat runs.

Maven and Gradle are pre-configured to use the colocated cache as a mirror for Maven Central.

Your workflow needs no changes:

workflow.yml
jobs:
build:
runs-on: avrea-ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '21'
- run: mvn verify

Add to ~/.m2/settings.xml:

~/.m2/settings.xml
<settings>
<mirrors>
<mirror>
<id>avrea-cache</id>
<mirrorOf>central</mirrorOf>
<url>https://avrea-host:8443/maven/</url>
</mirror>
</mirrors>
</settings>