diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index eabfba77697396950c0fd943bb8a4387c8d27227..bf56e40d5b20902ec57031596fde8e9c371f2f5c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -396,9 +396,7 @@ build_jar:
     - curl -sL https://deb.nodesource.com/setup_12.x | bash -
     - DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs
     - mvn clean compile install -DskipTests=true
-    - cd web
-    - mvn clean compile install
-    - cd ..
+    - mvn install -pl web
     - cp web/target/*exec.jar minerva.jar
 
 test:dependency_conflict: