You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by James Abley <ja...@gmail.com> on 2007/08/07 13:03:05 UTC
[m2] mvn launch script under cygwin and release-plugin / svn
Hi,
I'm using the release plugin to release a module.
$ mvn -B release:prepare -f release-1.3.0/the_module/pom.xml
-DtagBase=svn://path.to.my.repository/the_module/tags
-Dtag=MMP-REL-1.3.0_20070807_101709 -Dusername=myusername
This fails with the below message:
[INFO] Checking in modified POMs...
[INFO] Executing: svn --username myusername --non-interactive commit --file
c:\Users\myusername\AppData\Local\Temp\maven-scm-1009058660.commit
c:/Users/myusername/work/svn/release/release-1.3
0/the_module/pom.xml
[INFO] Working directory:
c:\Users\myusername\work\svn\release\release-1.3.0\the_module
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Unable to commit files
Provider message:
The svn command failed.
Command output:
svn:
'/cygdrive/c/Users/myusername/work/svn/release/release-1.3.0/the_module/c:/Users/myusername/work/svn/release/release-1.3.0/the_module'
is not a working copy
svn: Can't open file
'/cygdrive/c/Users/myusername/work/svn/release/release-1.3.0/the_module/c:/Users/myusername/work/svn/release/release-1.3.0/the_module/.svn/entries':
No such file or
directory
$which svn
/usr/bin/svn
I've worked around this by changing my PATH to have the Windows SVN binaries
before the Cygwin SVN binaries, but it doesn't feel like a good solution.
export PATH=/cygdrive/c/path/to/svn/binaries/:${PATH}
The other alternative that I considered was to uninstall my svn client from
Cygwin. I guess that would do it too, but is there a better way?
Cheers,
James
--
View this message in context: http://www.nabble.com/-m2--mvn-launch-script-under-cygwin-and-release-plugin---svn-tf4229469s177.html#a12032164
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: [m2] mvn launch script under cygwin and release-plugin / svn
Posted by LAMY Olivier <Ol...@accor.com>.
It's a know issue (don't remember the id).
A simple workaround is add first in your PATH the windows svn.
If svn is in C:\Subversion\bin.
export PATH=C:\\Subversion\\bin:$PATH
Then release plugin works fine.
HTH,
--
Olivier
-----Message d'origine-----
De : James Abley [mailto:james.abley@gmail.com]
Envoyé : mardi 7 août 2007 13:03
À : users@maven.apache.org
Objet : [m2] mvn launch script under cygwin and release-plugin / svn
Hi,
I'm using the release plugin to release a module.
$ mvn -B release:prepare -f release-1.3.0/the_module/pom.xml -DtagBase=svn://path.to.my.repository/the_module/tags
-Dtag=MMP-REL-1.3.0_20070807_101709 -Dusername=myusername
This fails with the below message:
[INFO] Checking in modified POMs...
[INFO] Executing: svn --username myusername --non-interactive commit --file c:\Users\myusername\AppData\Local\Temp\maven-scm-1009058660.commit
c:/Users/myusername/work/svn/release/release-1.3
0/the_module/pom.xml
[INFO] Working directory:
c:\Users\myusername\work\svn\release\release-1.3.0\the_module
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Unable to commit files
Provider message:
The svn command failed.
Command output:
svn:
'/cygdrive/c/Users/myusername/work/svn/release/release-1.3.0/the_module/c:/Users/myusername/work/svn/release/release-1.3.0/the_module'
is not a working copy
svn: Can't open file
'/cygdrive/c/Users/myusername/work/svn/release/release-1.3.0/the_module/c:/Users/myusername/work/svn/release/release-1.3.0/the_module/.svn/entries':
No such file or
directory
$which svn
/usr/bin/svn
I've worked around this by changing my PATH to have the Windows SVN binaries before the Cygwin SVN binaries, but it doesn't feel like a good solution.
export PATH=/cygdrive/c/path/to/svn/binaries/:${PATH}
The other alternative that I considered was to uninstall my svn client from Cygwin. I guess that would do it too, but is there a better way?
Cheers,
James
--
View this message in context: http://www.nabble.com/-m2--mvn-launch-script-under-cygwin-and-release-plugin---svn-tf4229469s177.html#a12032164
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
This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited.
**********************************************************************
Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites.
**********************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org