You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by demian0311 <de...@gmail.com> on 2011/08/10 18:52:34 UTC
git scm
I'm trying to use the release plugin with git. The git scm plugin seems to
get hung up when applying the tag.
If you look at the "Working directory" messages below, when it tries to
apply the tag it goes up 1 directory such that the command executes outside
of my git repository.
Is there something I need to define differently for the tag to work?
====
[INFO] Executing: /bin/sh -c cd
/Users/demianneidetcher/code/tw/video-services && git commit --verbose -F
/var/folders/gt/gtxEeKivHniLmkebNhA1Ak+++TI/-Tmp-/maven-scm-1819129561.commit
service/pom.xml webservice/pom.xml pom.xml
*[INFO] Working directory: /Users/demianneidetcher/code/tw/video-services
*[INFO] Executing: /bin/sh -c cd
/Users/demianneidetcher/code/tw/video-services && git symbolic-ref HEAD
*[INFO] Working directory: /Users/demianneidetcher/code/tw/video-services
*[INFO] Executing: /bin/sh -c cd
/Users/demianneidetcher/code/tw/video-services && git push
ssh://gitosis@code.webapps.rr.com/video-services.git master:master
*[INFO] Working directory: /Users/demianneidetcher/code/tw/video-services
*[INFO] Tagging release with the label video-parent-pom-3.0.5...
[DEBUG] ScmTagPhase :: scmTagParameters remotingTag true
[DEBUG] ScmTagPhase :: scmTagParameters scmRevision null
[INFO] Executing: /bin/sh -c cd /Users/demianneidetcher/code/tw && git tag
-F
/var/folders/gt/gtxEeKivHniLmkebNhA1Ak+++TI/-Tmp-/maven-scm-150875144.commit
video-parent-pom-3.0.5
*[INFO] Working directory: /Users/demianneidetcher/code/tw
*
...
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on
project video-parent-pom: Unable to tag SCM
[ERROR] Provider message:
[ERROR] The git-tag command failed.
[ERROR] Command output:
*[ERROR] fatal: Not a git repository (or any of the parent directories):
.git
*[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli)
on project video-parent-pom: Unable to tag SCM
Provider message:
The git-tag command failed.
Command output:
fatal: Not a git repository (or any of the parent directories): .git
--
View this message in context: http://maven.40175.n5.nabble.com/git-scm-tp4686535p4686535.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: git scm
Posted by Baptiste MATHUS <ml...@batmat.net>.
Cool.
For the record, and to be complete: you should be aware that a good practice
with maven plugins is to *always* specify plugin versions.
If you don't do that, you'll make your build unlikely to be reproducible in
the longtime.
Cheers
2011/8/15 demian0311 <de...@gmail.com>
> Baptiste,
>
> That did it. In our pom.xml, we did not explicitly specify the version of
> the maven-release-plugin. After adding the version tag to 2.2.1 I can now
> run the release:prepare.
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-release-plugin</artifactId>
> *<version>2.2.1</version>*
> </plugin>
>
> Thanks!!!
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/git-scm-tp4686535p4702081.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !
Re: git scm
Posted by demian0311 <de...@gmail.com>.
Baptiste,
That did it. In our pom.xml, we did not explicitly specify the version of
the maven-release-plugin. After adding the version tag to 2.2.1 I can now
run the release:prepare.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
*<version>2.2.1</version>*
</plugin>
Thanks!!!
--
View this message in context: http://maven.40175.n5.nabble.com/git-scm-tp4686535p4702081.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: git scm
Posted by Baptiste MATHUS <ml...@batmat.net>.
Ok.
Re reading your message, I'd advice to try the 2.1 or better the last one
(2.2.1 IIRC) of the release plugin.
I seem to remember there were bugs specific to git scm (side note: I use
git, and I do my release with the release plugin, so I cam assure you it
works, at least for some situations :)).
Cheers.
Le 12 août 2011 22:50, "demian0311" <de...@gmail.com> a écrit :
> Baptiste,
>
> Yeah, the working copy is a git repository.
>
> kabar.local:~/code/tw/video-services>git tag myTag
> kabar.local:~/code/tw/video-services>cat .git/refs/tags/myTag
> 9f637e641283205e01391b99ec2c6ea7a0bdd124
>
> --
> View this message in context:
http://maven.40175.n5.nabble.com/git-scm-tp4686535p4694614.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
Re: git scm
Posted by demian0311 <de...@gmail.com>.
Baptiste,
Yeah, the working copy is a git repository.
kabar.local:~/code/tw/video-services>git tag myTag
kabar.local:~/code/tw/video-services>cat .git/refs/tags/myTag
9f637e641283205e01391b99ec2c6ea7a0bdd124
--
View this message in context: http://maven.40175.n5.nabble.com/git-scm-tp4686535p4694614.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: git scm
Posted by Baptiste MATHUS <ml...@batmat.net>.
Hi,
Is your working copy really a git repository?
What does a simple "git tag myTag" return?
Cheers
Le 10 août 2011 18:53, "demian0311" <de...@gmail.com> a écrit :
> I'm trying to use the release plugin with git. The git scm plugin seems to
> get hung up when applying the tag.
>
> If you look at the "Working directory" messages below, when it tries to
> apply the tag it goes up 1 directory such that the command executes
outside
> of my git repository.
>
> Is there something I need to define differently for the tag to work?
>
> ====
> [INFO] Executing: /bin/sh -c cd
> /Users/demianneidetcher/code/tw/video-services && git commit --verbose -F
>
/var/folders/gt/gtxEeKivHniLmkebNhA1Ak+++TI/-Tmp-/maven-scm-1819129561.commit
> service/pom.xml webservice/pom.xml pom.xml
> *[INFO] Working directory: /Users/demianneidetcher/code/tw/video-services
> *[INFO] Executing: /bin/sh -c cd
> /Users/demianneidetcher/code/tw/video-services && git symbolic-ref HEAD
> *[INFO] Working directory: /Users/demianneidetcher/code/tw/video-services
> *[INFO] Executing: /bin/sh -c cd
> /Users/demianneidetcher/code/tw/video-services && git push
> ssh://gitosis@code.webapps.rr.com/video-services.git master:master
> *[INFO] Working directory: /Users/demianneidetcher/code/tw/video-services
> *[INFO] Tagging release with the label video-parent-pom-3.0.5...
> [DEBUG] ScmTagPhase :: scmTagParameters remotingTag true
> [DEBUG] ScmTagPhase :: scmTagParameters scmRevision null
> [INFO] Executing: /bin/sh -c cd /Users/demianneidetcher/code/tw && git tag
> -F
>
/var/folders/gt/gtxEeKivHniLmkebNhA1Ak+++TI/-Tmp-/maven-scm-150875144.commit
> video-parent-pom-3.0.5
> *[INFO] Working directory: /Users/demianneidetcher/code/tw
> *
> ...
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on
> project video-parent-pom: Unable to tag SCM
> [ERROR] Provider message:
> [ERROR] The git-tag command failed.
> [ERROR] Command output:
> *[ERROR] fatal: Not a git repository (or any of the parent directories):
> .git
> *[ERROR] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.maven.plugins:maven-release-plugin:2.0:prepare
(default-cli)
> on project video-parent-pom: Unable to tag SCM
> Provider message:
> The git-tag command failed.
> Command output:
> fatal: Not a git repository (or any of the parent directories): .git
>
> --
> View this message in context:
http://maven.40175.n5.nabble.com/git-scm-tp4686535p4686535.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>