4.0.0 com.baeldung.maven.plugin host-maven-repo-example 1.0-SNAPSHOT https://github.com/${repository-owner}/${repository-name}.git https://github.com/${repository-owner}/${repository-name}.git scm:git:git@github.com:${repository-owner}/${repository-name}.git scm:git:git@github.com:${repository-owner}/${repository-name}.git org.apache.maven.plugins maven-source-plugin 3.1.0 attach-sources jar com.github.github site-maven-plugin 0.12 Maven artifacts for ${project.version} true ${project.build.directory} refs/heads/${branch-name} **/* true ${repository-name} ${repository-owner} github site deploy maven-deploy-plugin 2.8.2 internal.repo::default::file://${project.build.directory}/mvn-artifact org.apache.maven.plugins maven-source-plugin 3.1.0 attach-sources jar PROJECT-REPO-URL https://github.com/${repository-owner}/${repository-name}/${branch-name} true always internal.repo Temporary Staging Repository file://${project.build.directory}/mvn-artifact Put-repo-owner Put-repository-name Put-branch-name github 8 8