2013-12-14 9 views
5

最近はSourceForgeからのGitHubにプロジェクトのソースコードリポジトリを切り替えた私はMavenのリリースを更新する必要があります一致するプロセス。私は、pomの "scm"セクションを設定するためにthis linkを続けました。 GitHubリポジトリはshown hereです。それ以外のものは、SVNを使用しているときと同じです(公開する場合はhttps://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-4.MavenRepositories)。 gitの:gitの://github.com/ {組織}/{プロジェクト} .git今SCM」の接続を「あなたはgitのにプッシュすることはできません。//github.com/...」GitHubのとのmaven-リリース・プラグインを使用して

[INFO] --- maven-release-plugin:2.1:prepare (default-cli) @ datanucleus-maven-parent --- 
[INFO] Verifying that there are no local modifications... 
[INFO] ignoring changes on: pom.xml.next, release.properties, pom.xml.releaseBackup, pom.xml.backup, pom.xml.branch, pom.xml.tag 
[INFO] Executing: /bin/sh -c cd /home/andy/work/datanucleus/datanucleus-maven-parent && git status 
[INFO] Working directory: /home/andy/work/datanucleus/datanucleus-maven-parent 
[INFO] Checking dependencies and plugins for snapshots ... 
What is the release version for "DataNucleus Maven parent project"? (org.datanucleus:datanucleus-maven-parent) 3.3: : 
What is SCM release tag or label for "DataNucleus Maven parent project"? (org.datanucleus:datanucleus-maven-parent) datanucleus-maven-parent-3.3: : 
What is the new development version for "DataNucleus Maven parent project"? (org.datanucleus:datanucleus-maven-parent) 3.4-SNAPSHOT: : 
[INFO] Transforming 'DataNucleus Maven parent project'... 
[INFO] Not generating release POMs 
[INFO] Executing goals 'clean verify'... 
[INFO] Executing: /bin/sh -c cd /home/andy/work/datanucleus/datanucleus-maven-parent && /usr/local/maven3/bin/mvn clean verify --no-plugin-updates -Psonatype-oss-release -P development 
    [WARNING] Command line option -npu is deprecated and will be removed in future Maven versions. 
    [INFO] Scanning for projects... 
    [INFO]                   
    [INFO] ------------------------------------------------------------------------ 
    [INFO] Building DataNucleus Maven parent project 3.3 
    [INFO] ------------------------------------------------------------------------ 
    [INFO] 
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ datanucleus-maven-parent --- 
    [INFO] Deleting /home/andy/work/datanucleus/datanucleus-maven-parent (includes = [*.log], excludes = []) 
    [INFO] 
    [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ datanucleus-maven-parent --- 
    [INFO] 
    [INFO] --- maven-bundle-plugin:2.4.0:manifest (default) @ datanucleus-maven-parent --- 
    [WARNING] Ignoring project type pom - supportedProjectTypes = [jar, bundle] 
    [INFO] 
    [INFO] --- maven-source-plugin:2.1.2:jar-no-fork (attach-sources) @ datanucleus-maven-parent --- 
    [INFO] 
    [INFO] --- maven-javadoc-plugin:2.7:jar (attach-javadocs) @ datanucleus-maven-parent --- 
    [INFO] Not executing Javadoc as the project is not a Java classpath-capable package 
    [INFO] 
    [INFO] --- maven-gpg-plugin:1.1:sign (sign-artifacts) @ datanucleus-maven-parent --- 
    [INFO] ------------------------------------------------------------------------ 
    [INFO] BUILD SUCCESS 
    [INFO] ------------------------------------------------------------------------ 
    [INFO] Total time: 1.535s 
    [INFO] Finished at: Sat Dec 14 08:51:07 GMT 2013 
    [INFO] Final Memory: 14M/491M 
    [INFO] ------------------------------------------------------------------------ 
[INFO] Checking in modified POMs... 
[INFO] Executing: /bin/sh -c cd /home/andy/work/datanucleus/datanucleus-maven-parent && git add -- pom.xml 
[INFO] Working directory: /home/andy/work/datanucleus/datanucleus-maven-parent 
[INFO] Executing: /bin/sh -c cd /home/andy/work/datanucleus/datanucleus-maven-parent && git status 
[INFO] Working directory: /home/andy/work/datanucleus/datanucleus-maven-parent 
[INFO] Executing: /bin/sh -c cd /home/andy/work/datanucleus/datanucleus-maven-parent && git commit --verbose -F /tmp/maven-scm-1907822841.commit pom.xml 
[INFO] Working directory: /home/andy/work/datanucleus/datanucleus-maven-parent 
[INFO] Executing: /bin/sh -c cd /home/andy/work/datanucleus/datanucleus-maven-parent && git symbolic-ref HEAD 
[INFO] Working directory: /home/andy/work/datanucleus/datanucleus-maven-parent 
[INFO] Executing: /bin/sh -c cd /home/andy/work/datanucleus/datanucleus-maven-parent && git push git://github.com/datanucleus/datanucleus-maven-parent.git master:master 
[INFO] Working directory: /home/andy/work/datanucleus/datanucleus-maven-parent 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 6.885s 
[INFO] Finished at: Sat Dec 14 08:51:07 GMT 2013 
[INFO] Final Memory: 15M/491M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.1:prepare (default-cli) on project datanucleus-maven-parent: Unable to commit files 
[ERROR] Provider message: 
[ERROR] The git-push command failed. 
[ERROR] Command output: 
[ERROR] fatal: remote error: 
[ERROR] You can't push to git://github.com/datanucleus/datanucleus-maven-parent.git 
[ERROR] Use https://github.com/datanucleus/datanucleus-maven-parent.git 

を次のようにので、私は

mvn clean release:clean release:prepare release:perform 

呼び出すと出力します私がmaven-release-pluginで見たすべての例は、なぜここではうまくいかないのか、どうして私がなぜその理由を調べることができるのかについての洞察に感謝しています。 GitHubにはSSHキーがあるので、私はここにログオンしているユーザーを使って同じURLにgit pushを行うことができます。

httpsにscm connection/developerConnectionをスワップしてからusername/passwordの入力を求めてから、ハングアップします(スナップショットなしのバージョンでGitHubリポジトリを更新します)。

+2

それ以外は、古いもの(2.1)の代わりに最新のmaven-release-plugin(2.4.2)を使用することをお勧めします。 – khmarbaise

+0

はい、同意しましたが、Sonatypeに公開するすべてのプロジェクトのSonatype親POMに指定されています(無効にすることはできますが) – DataNucleus

答えて

9

は、実際の問題は、あなたのSCMのセクションを設定する方法のWebリンクを信じる以上であったので、私は他の誰がこのメッセージに当たっここケースで答えを投稿します。接続/ developerConnectionは次の形式でなければなりません

scm:git:[email protected]:{organization}/{project}.git 
+0

それは私のためには機能しませんでした。 –

+1

これは私のために働いていました(私はhttps://バージョンを持っていました)。@coding_idiot、あなたのgithubアカウントにあなたのpublic sshキーを追加しましたか? – emicklei

+0

あなたは私を1日救ってくれました。 – nilesh

0

私が行方不明になった「SCM:gitの:」私のpom.xmlで、次のエラーを得ていました。私のgitのURLにそれを追加して固定しました。助けてくれてありがとう。

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.4.2:prepare (default-cli) on project account-creation: Unable to commit files 
[ERROR] Provider message: 
[ERROR] The git-push command failed. 
[ERROR] Command output: 
[ERROR] Permission denied (publickey). 
[ERROR] fatal: The remote end hung up unexpectedly 
[ERROR] -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 
関連する問題