Подтвердить что ты не робот

Как освободить с помощью BitBucket + Git + Maven

Я указал следующие теги SCM в моем pom. Однако, когда я делаю maven release:prepare, созданный тег имеет версию 1.0-SNAPSHOT вместо 1.0

Любые идеи?

 <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>
4b9b3361

Ответ 1

В идеале вы должны использовать SSH для аутентификации при выполнении выпуска. В этом случае вы будете использовать следующую конфигурацию:

<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>  

Вы также можете посмотреть этот .