2013-03-05 14 views
12

私のpomに次のSCMタグを指定しました。 しかし、私がメイヴンをするときrelease:prepare作成されたタグは、1.0の代わりに1.0のスナップショットを持っていますBitBucket + Git + Mavenでのリリース方法

アイデアはありますか?

<scm> 
    <connection>scm:git:https://<username>@bitbucket.org/<username>/<repo>.git</connection> 
    <developerConnection>scm:git:https://<username>@bitbucket.org/<username>/<repo>.git</developerConnection> 
    <url>https://bitbucket.org/<username>/<project></url> 
</scm> 

答えて

20

リリースを行う際には、SSHを使用するのが理想的です。あなたも、このexampleを見てみることができます

<scm> 
    <connection>scm:git:ssh://[email protected]/<username>/<repo>.git</connection> 
    <developerConnection>scm:git:ssh://[email protected]/<username>/<repo>.git</developerConnection> 
    <url>https://bitbucket.org/<username>/<repo>.git</url> 
</scm> 

:その場合は、次の設定を使用します。

+0

このJensのおかげで、それは私を助けました!ただし、上記の「接続」タグにはタイプミスがあります。 bitbucket.orgの後にはスラッシュが1つだけ必要です。リンク先のPOMの形式が正しくありません。 –

+4

例へのリンクが壊れています – cahen

+0

xmlが不正な形で表示され、編集できません。 –

関連する問題