[CI][Maven] Deploy maven artifacts in gitlab.com

I saw this post in the forum, but sadly there are no answers to it.

I’m trying to configure the project to be deployed. My .gitlab-ci.yml is the default one for a maven project minus the jdk7 part.

It always fails at testing deploy with this message:
15310 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project Facturapp: Failed to deploy artifacts/metadata: Cannot access site/0.0.1-SNAPSHOT with type default using the available connector factories: BasicRepositoryConnectorFactory: Cannot access site/0.0.1-SNAPSHOT using the registered transporter factories: WagonTransporterFactory: Unsupported transport protocol -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project Facturapp: Failed to deploy artifacts/metadata: Cannot access site/0.0.1-SNAPSHOT with type default using the available connector factories: BasicRepositoryConnectorFactory
(full log can be found at https://pastebin.com/WMxdzty2)

My pom reads like this:
<distributionManagement> <site> <id>gitlab-pages-site</id> <name>Deployment through GitLab's site deployment plugin</name> <url>site/${project.version}</url> </site> <repository> <id>gitlab.public</id> <url>site/${project.version}</url> </repository> </distributionManagement>

Obviously it’s wrong, but my question is: What’s the right configuration for this to work?

Watch my post again, I have posted my solution there

About which post are you talking about?

I linked a post at the beginning of mine