maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Eggers <its_toas...@yahoo.com>
Subject Re: Release plugin, Windows, Subversion
Date Wed, 06 Nov 2013 16:40:09 GMT
Train wreck of debugging output below.

Sorry for the line wrap.

For those of you interested in just the answer, the apparent work-around 
is to use PowerShell on Windows.

On 11/5/2013 2:16 PM, Robert Scholte wrote:
> Hi,
>
> If you run Maven with debug logging (add -X to the arguments) you will
> see how the maven-release-plugin executes the svn executable.
> It will look something like
>   cmd.exe /X /C "svn.exe ....."
>
> You should see the same result when you copy the cmdline between the
> quotes and executes it directly.
>
> That way you can verify that it is not a problem of the
> maven-release-plugin, but from the SVN Client or the way your project is
> checked out under Windows.
>
> Robert
>
> Op Tue, 05 Nov 2013 22:52:35 +0100 schreef Mark Eggers
> <its_toasted@yahoo.com>:
>
>> Folks,
>>
>> I'm starting to work with Maven's release plugin and I've run into a
>> problem.
>>
>> OS:         Windows 7 64 bit Home Premium
>> SCM:        TortoiseSVN 1.7.10
>> Maven:      3.1.1
>> SCM Plugin: 1.8.1
>>
>> The error I get on mvn release:prepare is:
>>
>> [ERROR] svn: E720005: Error resolving case of
>> 'C:\Users\mdeggers\My Documents\NetBeansProjects\ProjectConfig\pom.xml'
>>
>> This is apparently because the release plugin stores backslashes, but
>> subversion expects forward slashes.
>>
>> I've found a bug report for this, but it's still open. Is there any
>> workaround for this issue?
>>
>> BTW - the release works flawlessly on Linux (Fedora 19, 64 bit).
>>
>> Thanks,
>> /mde/

Fails in DOS, works in PowerShell:

Failure under DOS
=================
[INFO] Checking in modified POMs...
[INFO] Executing: cmd.exe /X /C "svn --username mdeggers
--password ***** --no-auth-cache --non-interactive commit
--file C:\Users\mdeggers\AppData\Local\Temp\maven-scm-450034313.commit
--targets
C:\Users\mdeggers\AppData\Local\Temp\maven-scm-930705443880981757-targets"

[INFO] Working directory: C:\Users\mdeggers\My 
Documents\NetBeansProjects\ProjectConfig
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 9.761s
[INFO] Finished at: Wed Nov 06 08:07:08 PST 2013
[INFO] Final Memory: 13M/156M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-release-plugin:2.4.2:prepare
(default-cli) on project ProjectConfig: Unable to commit files
[ERROR] Provider message:
[ERROR] The svn command failed.
[ERROR] Command output:
[ERROR] svn: E720005: Error resolving case of 'C:\Users\mdeggers\My 
Documents\NetBeansProjects\ProjectConfig\pom.xml'

[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to 
execute goal
org.apache.maven.plugins:maven-release-plugin:2.4.2:prepare 
(default-cli) on project ProjectConfig: Unable to commit files

Provider message:
The svn command failed.
Command output:
svn: E720005: Error resolving case of
'C:\Users\mdeggers\My Documents\NetBeansProjects\ProjectConfig\pom.xml'

at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoFailureException: Unable to 
commit files
Provider message:
The svn command failed.
Command output:
svn: E720005: Error resolving case of
'C:\Users\mdeggers\My Documents\NetBeansProjects\ProjectConfig\pom.xml'

at 
org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(PrepareReleaseMojo.java:285)
at 
org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:232)
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Caused by: 
org.apache.maven.shared.release.scm.ReleaseScmCommandException: Unable 
to commit files
Provider message:
The svn command failed.
Command output:
svn: E720005: Error resolving case of
'C:\Users\mdeggers\My Documents\NetBeansProjects\ProjectConfig\pom.xml'

at 
org.apache.maven.shared.release.phase.AbstractScmCommitPhase.checkin(AbstractScmCommitPhase.java:165)
at 
org.apache.maven.shared.release.phase.AbstractScmCommitPhase.performCheckins(AbstractScmCommitPhase.java:145)
at 
org.apache.maven.shared.release.phase.ScmCommitPreparationPhase.runLogic(ScmCommitPreparationPhase.java:76)
at 
org.apache.maven.shared.release.phase.AbstractScmCommitPhase.execute(AbstractScmCommitPhase.java:78)
at 
org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:234)
at 
org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:169)
at 
org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:146)
at 
org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:107)
at 
org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(PrepareReleaseMojo.java:277)
... 22 more

[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, 
please read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Success under PowerShell
========================

[INFO] Checking in modified POMs...
[INFO] Executing: cmd.exe /X /C "svn --username mdeggers
--password ***** --no-auth-cache
--non-interactive commit
--file C:\Users\mdeggers\AppData\Local\Temp\maven-scm-1485257815.commit
--targets
C:\Users\mdeggers\AppData\Local\Temp\maven-scm-6762985883124063344-targets"

[INFO] Working directory:
C:\Users\mdeggers\Documents\NetBeansProjects\ProjectConfig

[DEBUG] Sending        pom.xml
[DEBUG] Transmitting file data .
[DEBUG] Committed revision 571.
[INFO] Tagging release with the label ProjectConfig-1.3...
[DEBUG] ScmTagPhase :: scmTagParameters remotingTag true
[DEBUG] ScmTagPhase :: scmTagParameters scmRevision 571
[DEBUG] ScmTagPhase :: fileSet
basedir = C:\Users\mdeggers\Documents\NetBeansProjects\ProjectConfig; 
files = []
[DEBUG] SvnTagCommand :: scmTagParameters.remoteTagging : true
[INFO] Executing:
cmd.exe /X /C "svn --username mdeggers --password *****
--no-auth-cache --non-interactive copy
--file C:\Users\mdeggers\AppData\Local\Temp\maven-scm-1223132688.commit
--revision 571 http://neptune.mdeggers.org/svn-repos/ProjectConfig/trunk
http://neptune.mdeggers.org/svn-repos/ProjectConfig/tags/ProjectConfig-1.3"
[INFO] Working directory:
C:\Users\mdeggers\Documents\NetBeansProjects\ProjectConfig
[INFO] Transforming 'ProjectConfig'...
[INFO] Not removing release POMs
[INFO] Checking in modified POMs...
[INFO] Executing: cmd.exe /X /C "svn --username mdeggers
--password ***** --no-auth-cache
--non-interactive commit
--file C:\Users\mdeggers\AppData\Local\Temp\maven-scm-1733837280.commit
--targets
C:\Users\mdeggers\AppData\Local\Temp\maven-scm-7320287011611837277-targets"
[INFO] Working directory:
C:\Users\mdeggers\Documents\NetBeansProjects\ProjectConfig
[DEBUG] Sending        pom.xml
[DEBUG] Transmitting file data .
[DEBUG] Committed revision 573.
[INFO] Release preparation complete.
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 15.786s
[INFO] Finished at: Wed Nov 06 08:28:57 PST 2013
[INFO] Final Memory: 13M/156M
[INFO] 
------------------------------------------------------------------------

Sorry for the line wrap.

So, the work-around at the moment is to instruct people to use 
PowerShell on Windows.

Mark
/mde/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message