unable to pull the code from bitbucket to maven

NAGA SAKETH JALIGAMA March 4, 2015

I am using the following element in maven pom.xml file to pull the code from bitbucket, but after compiling, am not seeing the pulled code anywhere.

<scm>
<connection>scm:git:git://bitbucket.org/companyname/reponame.git</connection>
<developerConnection>scm:git:ssh://git@bitbucket.org/companyname/reponame</developerConnection>
<url>git@bitbucket.org:companyname/reponame.git</url>

</scm>

3 answers

0 votes
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 18, 2015
1)git clone
2)git ls-remote
3)git pull branch
4)git checkout.

but here i want only 2,3,4 steps or atleast just 3,4 but i dont want clone.

There is no such thing as checking out without cloning for Git. 1, 2, 3 and 4 are theoretically correct and sound.

0 votes
NAGA SAKETH JALIGAMA March 11, 2015

<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-scm-plugin</artifactId> <version>1.6</version> <configuration> <goals>checkout</goals> <checkoutDirectory>target/checkout</checkoutDirectory> <username>xyz</username> <password>abc</password> </configuration> <executions> <execution> <id>check-out-project1</id> <phase>generate-sources</phase> <goals> <goal>checkout</goal> </goals> </execution> </executions> </plugin> </plugins> </build> I am using above code, but it is doing 1)git clone 2)git ls-remote 3)git pull branch 4)git checkout. but here i want only 2,3,4 steps or atleast just 3,4 but i dont want clone.

0 votes
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 5, 2015

What's the command you are using? Are you using any other plugins with the scm tag?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events