From 5b6be0c456b9d70994887d493cb1ddc1efaf48db Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Thu, 29 Aug 2013 10:26:06 +0200 Subject: [PATCH] Use a separate build directory for Eclipse. The fact that Maven and Eclipse share the same build directories can trigger race conditions when both are trying to build at the same time, eg. if you run `mvn clean test` while Eclipse is up and running: Eclipse will notice that some class files are missing and start compiling in parallel with Maven. --- .gitignore | 1 + pom.xml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index fb2e57e5db9..cf5af718751 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ docs/build.log ## will correctly set the classpath based on the declared dependencies. .project .classpath +eclipse-build */.project */.classpath */eclipse-build diff --git a/pom.xml b/pom.xml index f4bcf8d35ec..9f8e4fccb8e 100644 --- a/pom.xml +++ b/pom.xml @@ -970,6 +970,13 @@ + + org.apache.maven.plugins + maven-eclipse-plugin + + eclipse-build + +