Gitlab Pages and Maven WebApp

I have simple maven webapp running on jetty on my machine. I push the maven repo to gitlab project but i don’t know how to run it on gitlab pages. In my web.xml I configured the welcome page, but everything I try in .gitlab-ci.yml does not work, there is always 404 error, I already tried a million configurations of .gitlab-ci.yml file, also with maven template, nothing helps and pipelines are always checked as passed. I would really need help with getting my website on gitlab pages. Did anybody made something similar with maven and git lab? Thank you in advance.