It's currently not set here.

It sounds like I need to set this, and then enforce with a pre-commit hook.

Since this will be a large undertaking (I imagine the internal SVN server has the same default settings as my local one), I'll encourage people to use PowerShell until the repository is cleaned up.

Thanks for the advice.

Mark
/mde/

On 11/6/2013 11:51 AM, Robert Scholte wrote:
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da;
2013-02-19 14:51:
28+0100)
Maven home: D:\apache-maven-3.0.5\bin\..
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_45\jre
Default locale: nl_NL, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

Subversion command-line client, version 1.8.3. (via SvnTortoise ).
This is a recent update, I've used both 1.6 and 1.7 for a long time.

One thing you could have a look at is the property svn:eol-style
For the projects here at Apache we use 'native'.

Op Wed, 06 Nov 2013 20:42:33 +0100 schreef Mark Eggers
<its_toas...@yahoo.com>:

Agreed, there must be a better explanation.

I'm open to it.

What is your environment like?

My environment is listed in the original message. Perhaps there is a
clue in environment differences?

Mark
/mde/

On 11/6/2013 11:35 AM, Robert Scholte wrote:
Well, I'm a Windows user and have done a lot of releases with svn.
There must be a better explanation.

Robert

Op Wed, 06 Nov 2013 17:40:09 +0100 schreef Mark Eggers
<its_toas...@yahoo.com>:

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_toas...@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-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

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



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

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



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

Reply via email to