diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 273465831f294429113b87a1f9fb69ea15fc2b59..cf705c7963d3e217df5f662e4647f23cbdaa596e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -25,7 +25,7 @@ stages:
 build:
   stage: build
   script:
-    - mvn compile $MAVEN_CLI_OPTS
+    - mvn clean compile $MAVEN_CLI_OPTS
   artifacts:
     paths:
       - target/*.jar