-
Notifications
You must be signed in to change notification settings - Fork 150
Open
Description
It would be really nice to support maven.local.repo.tail directly in the withMaven parameters.
Usage scenario:
- have a build-only pipeline step that runs
maven install -DskipTests
- Have multiple parallel test steps that mount the repo built by the first step as read-only.
But it seems e.g. surefire need rw repo access.
Thus it would be really nice to be able to use the maven.local.repo.tail property.
More information on that here: https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=235837219
Example:
withMaven(mavenLocalRepo:".repository",mavenLocalTailRepos:"$SHARED_WORKSPACE/.repository,$GLOBAL_CACHE_LOCATION") { ... }
The clause should maybe even fail the step if maven < 3.9 is used.
Originally reported by thigg, imported from: support maven.local.repo.tail
- status: Open
- priority: Minor
- component(s): pipeline-maven-plugin
- resolution: Unresolved
- votes: 0
- watchers: 1
- imported: 20251211-223321
Raw content of original issue
It would be really nice to support maven.local.repo.tail directly in the withMaven parameters.
Usage scenario:
- have a build-only pipeline step that runs
maven install -DskipTests
- Have multiple parallel test steps that mount the repo built by the first step as read-only. But it seems e.g. surefire need rw repo access.
Thus it would be really nice to be able to use the maven.local.repo.tail property. More information on that here: https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=235837219
Example:
withMaven(mavenLocalRepo:".repository",mavenLocalTailRepos:"$SHARED_WORKSPACE/.repository,$GLOBAL_CACHE_LOCATION") { ... }
The clause should maybe even fail the step if maven < 3.9 is used.
Reactions are currently unavailable