Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I release with BitBucket+Git+Maven

I have specified the following SCM tags in my pom. However when I do a maven release:prepare the tag created has a version 1.0-SNAPSHOT instead of 1.0

Any ideas?

 <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>
like image 651
DarVar Avatar asked Mar 05 '13 20:03

DarVar


People also ask

What is Bitbucket_clone_dir?

BITBUCKET_CLONE_DIR. The absolute path of the directory that the repository is cloned into within the Docker container.


1 Answers

Ideally you would use SSH to authenticate when doing the release. In that case you would use the following configuration:

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

You can also take a look at this example.

like image 134
jens Avatar answered Oct 05 '22 02:10

jens