From 8cf8d36777202b98156f4dac80adc459a9668149 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Sun, 8 Jan 2012 20:02:32 +0100 Subject: [PATCH] o Made Aether session read-only once setup --- maven-core/src/main/java/org/apache/maven/DefaultMaven.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maven-core/src/main/java/org/apache/maven/DefaultMaven.java b/maven-core/src/main/java/org/apache/maven/DefaultMaven.java index 7bed0639a1..b1f239acec 100644 --- a/maven-core/src/main/java/org/apache/maven/DefaultMaven.java +++ b/maven-core/src/main/java/org/apache/maven/DefaultMaven.java @@ -264,6 +264,8 @@ public class DefaultMaven return processResult( result, e ); } + repoSession.setReadOnly(); + ClassLoader originalClassLoader = Thread.currentThread().getContextClassLoader(); try {