Try this :
mvn release:prepare \
-Dproject.scm.developerConnection=scm:svn:http://MY_URL/trunk \
-DtagBase=http://MY_URL/tags \
-Dusername=MY_UN -Dpassword=MY_PW
Emmanuel
[EMAIL PROTECTED] a écrit :
I'm moving from an ANT build script to Maven, and also moving from a
windows build machine to linux. Previously, all of the SVN SCM release
activities were carried out through TortoiseSVN on that windows machine -
I would like to use the release plugin to accomplish what was previously a
multi-step manual process..
When I execute the release:prepare step using the following command I get
an authorization failed error:
mvn release:prepare \
-Dproject.scm.developerConnection=scm:svn:http://MY_URL/trunk \
-DtagBase=http://MY_URL/tags \
-Dmaven.scm.username=MY_UN -Dmaven.scm.password=MY_PW
I have verified that svn is in my path and have verified that I can commit
when using the svn command direcly from the shell. Can anyone point me
in the right direction or offer some suggestions for where else to look?
I have read everything I could get my hands on as well as the archives to
this list.
Thanks in advance,
Brian Yoffe
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'release'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building Commons Library
[INFO] task-segment: [release:prepare] (aggregator-style)
[INFO]
----------------------------------------------------------------------------
[INFO] [release:prepare]
[INFO] What tag name should be used?
1.1.2
[INFO] Tagging release with the label 1.1.2.
Provider message:
The svn tag command failed.
Command output:
svn: Commit failed (details follow):
svn: CHECKOUT of '/svn/repos/platformautotrading_common/!svn/ver/11/tags':
authorization failed (http://reuse.ny.jpmorgan.com)
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] An error is occurred in the tag process.
Embedded error: Error!
[INFO]
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An error is
occurred in the tag process.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:556)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:485)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:455)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:216)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: An error is
occurred in the tag process.
at
org.apache.maven.plugins.release.PrepareReleaseMojo.tagRelease(PrepareReleaseMojo.java:1414)
at
org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:246)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
... 16 more
Caused by: org.apache.maven.scm.ScmException: Error!
at
org.apache.maven.plugins.release.helpers.ScmHelper.checkResult(ScmHelper.java:124)
at
org.apache.maven.plugins.release.helpers.ScmHelper.tag(ScmHelper.java:226)
at
org.apache.maven.plugins.release.PrepareReleaseMojo.tagRelease(PrepareReleaseMojo.java:1410)
... 19 more
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Fri Jan 27 19:20:04 EST 2006
[INFO] Final Memory: 3M/7M
[INFO]
----------------------------------------------------------------------------
This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
and affiliates
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]