2017-12-18 24 views
1

GithubでホストされているMavenプロジェクトを展開しようとしています。私は、生成されたとのGithubに自分の公開鍵を追加し、また、私は、私は必要なすべてのプロパティを持つpom.xmlを満たしていると考えている:私は次のようにリリースしようとしていますMaven Release Plugin:許可が拒否されました(公開鍵)Github

<licenses> 
    <license> 
     <name>MIT License</name> 
     <url>http://www.opensource.org/licenses/mit-license.php</url> 
    </license> 
</licenses> 

<developers> 
    <developer> 
     <name>Hristo Vrigazov</name> 
     <email>[email protected]</email> 
     <organization>Hribol</organization> 
     <organizationUrl>https://github.com/hristo-vrigazov</organizationUrl> 
    </developer> 
</developers> 

<scm> 
    <connection>scm:git:git://github.com/hristo-vrigazov/bromium.git</connection> 
    <developerConnection>scm:git:git://github.com/hristo-vrigazov/bromium.git</developerConnection> 
    <url>https://github.com/hristo-vrigazov/bromium</url> 
    <tag>com.hribol.bromium.dsl.parent-1.0.0</tag> 
</scm> 

ssh-add ~/.ssh/github_rsa 
ssh-add -l 
mvn release:prepare release:perform -B -e | tee maven-central-deploy.log 

をしかし、私はMavenからこのメッセージを受け取り、SSHキーに問題があることを示しています。

Provider message: 
The git-push command failed. 
Command output: 
Permission denied (publickey). 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 


at org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(PrepareReleaseMojo.java:299) 
at org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:247) 
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) 
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) 
... 20 more 
Caused by: 
org.apache.maven.shared.release.scm.ReleaseScmCommandException: Unable to tag SCM 
Provider message: 
The git-push command failed. 
Command output: 
Permission denied (publickey). 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 

何が原因なのでしょうか?スナップショットをNexusに展開できました。

<connection>scm:git:ssh://[email protected]/hristo-vrigazov/bromium.git</connection> 

または

<connection>scm:git:[email protected]:hristo-vrigazov/bromium.git</connection> 

developerConnectionも同じ)
のみ:

<connection>scm:git:git://github.com/hristo-vrigazov/bromium.git</connection> 

それは、SSHを使用してする必要があります。

答えて

関連する問題