You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by mt...@gmx.net on 2006/12/10 13:04:09 UTC

MavenSCM and Perforce under Windows: No backslashes in clientspec allowed

Hi all,

the scm:checkout using the perforce provider  doesn't seem to work
under windows (same pom and mvn command works under linux). Though
error output does not give a direct hint (see below), the reason is
most likely that the dynamically generate clientspec has backslashes
in its name, which is not supported in  perforce. I tried to create
one with backslashes manually, but perforce told me it was an illegal
character.

Is this issue known?

The funny thing is, that backslashes are not listed in perforce's
illegal characters, but slashes are...
http://www.perforce.com/perforce/doc.061/manuals/p4guide/03_using.html#1065764

Anyway, using the p4win tool it's vice versa, but I'd say what the
link above wants to say is that you should not use path separators in
perforce identifiers in general.


Here the ouput (run with --errors --debug):

[INFO] Executing: p4 -p perforce.e.secunet.de:1666 -u perforce client -i
[DEBUG] Updating clientspec:
Client: perforce-clientname-MavenSCM-D:\dev\m2\target\checkout
Root: D:\dev\m2\target\checkout
Owner: perforce
View:
        //path-to-some-project/...
//perforce-clientname-MavenSCM-D:\dev\m2\target\checkout/...
Description:
        Created by maven-scm-provider-perforce

[ERROR] Provider message:
[ERROR] Unable to sync.  Are you logged in?
[ERROR] Command output:
[ERROR]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Command failed.Unable to sync.  Are you logged in?
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Command failed.Unable to
 sync.  Are you logged in?
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:559)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:488)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:458)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:219)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
        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:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        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: Command failed.Unable
 to sync.  Are you logged in?
        at org.apache.maven.scm.plugin.AbstractScmMojo.checkResult(AbstractScmMo
jo.java:340)
        at org.apache.maven.scm.plugin.CheckoutMojo.checkout(CheckoutMojo.java:1
32)
        at org.apache.maven.scm.plugin.CheckoutMojo.execute(CheckoutMojo.java:78
)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:412)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
        ... 16 more





Regards,
Matthias

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