maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Heinz Marbaise <>
Subject Re: Maven local repo in a common global directory for multiple parallel execution
Date Sun, 26 May 2019 13:56:12 GMT
On 26.05.19 15:48, Debraj Manna wrote:
> I have a machine in which multiple parallel maven execution happen . Each
> execution executes the below command in a seperate workspace directory

Kind of a build server with a CI solution like Jenkins?

> mvn -f main/pom.xml clean package -DskipTests -T 6

Why using "-f main/pom.xml" ?

> Can someone let me know should I use a seperate maven local repo path (
> -Dmaven.repo.local=$MAVEN_REPO) for each execution or I can use a common .m2
> directory for all parallel runs? What is the best practice?

I can recommend to use separate caches for each execution..

>     - Maven Version 3.5

I would suggest to upgrade to most recent Maven version.. Also define
all versions of all plugins in your build...

Kind regards
Karl Heinz Marbaise

>     - Java 8

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message