try https://docs.gitlab.com/ee/user/packages/maven_repository/#creating-maven-packages-with-gitlab-cicd