diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 049e77c03a3a5e80c8023743caa44c6b20ecbe79..e58ea2eea064f30d641526b39c7c7c3a02533554 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -152,8 +152,9 @@ build-job:       # This job runs in the build stage, which runs first.
     # - apt-cache gencaches
     # - apt install -y zip unzip
     # - zip --help
-    # - echo "Cleaning caches"
-    # - rm -rf $CI_PROJECT_DIR/.m2/*
+    - echo "Cleaning caches"
+    - rm -rf $CI_PROJECT_DIR/.m2/*
+    - rm -rf ~/.m2/*
     # - ls $CI_PROJECT_DIR/.m2/repository
     - echo "Compiling the code..."
     - top -b -n 1 -e m