I have a machine in which multiple parallel maven execution happen. Each execution executes the below command in a separate workspace directory
mvn -f main/pom.xml clean package -DskipTests -T 6
Can someone let me know should I use a separate 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 common practice followed?
- Maven Version 3.5
- Java 8