diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index aed17e1eb0db1ffc6c7f039e7fa86bb89cadd807..4454a947a2a9bff4c460861d406f087e98e8afe1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -174,7 +174,7 @@ build_war:
 
 dependency_conflict_check:
   image: maven:latest
-  stage: build
+  stage: test
   script:
     - apt-get update
     - apt-get install -y curl gnupg git ant sudo
@@ -182,7 +182,9 @@ dependency_conflict_check:
     - apt-get install -y nodejs
 
     - mvn clean install -DskipTests=true
-    - mvn dependency:tree -Dverbose | grep conflict > conflicts.txt
+    - set +e
+    - mvn dependency:tree -Dverbose | grep conflict | cat > conflicts.txt
+    - set -e
     - conflicts=`cat conflicts.txt| wc -l`
     - echo Found conflicts $conflicts ':'
     - cat conflicts.txt