maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Louis Lecaroz (JIRA)" <>
Subject [jira] Created: (SCM-496) org.apache.maven.scm.NoSuchCommandScmException: No such command 'list' when the Perforce SCM Provider is used by the SCM Wagon in "maven deploy"
Date Thu, 03 Sep 2009 12:32:41 GMT
org.apache.maven.scm.NoSuchCommandScmException: No such command 'list' when the Perforce SCM
Provider is used by the SCM Wagon in "maven deploy"

                 Key: SCM-496
             Project: Maven SCM
          Issue Type: Bug
          Components: maven-scm-provider-perforce
         Environment: Maven 2.2.1, jdk 1.6 SR16, Win32
            Reporter: Louis Lecaroz
            Priority: Critical
         Attachments: pom.xml

After having taken a look in the svn in trunk, the AbstractScmProvider & its implementations
except Perforce implement the AbstractScmProvider.list() method.
As this method is called by the ScmWagon, & because it is not implemented in the PerforceScmProvider,
it generates this exception (generated by the AbstractScmProvider.list() code ) :

[INFO] No password found, proceeding without it.
[DEBUG] No such command 'list'.
org.apache.maven.scm.NoSuchCommandScmException: No such command 'list'.
	at org.apache.maven.scm.provider.AbstractScmProvider.list(
	at org.apache.maven.scm.provider.AbstractScmProvider.list(
	at org.apache.maven.wagon.providers.scm.ScmWagon.checkOut(
	at org.apache.maven.wagon.providers.scm.ScmWagon.putInternal(
	at org.apache.maven.wagon.providers.scm.ScmWagon.put(
	at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(
	at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(
	at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(
	at org.apache.maven.plugin.deploy.DeployMojo.execute(
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
	at org.apache.maven.DefaultMaven.doExecute(
	at org.apache.maven.DefaultMaven.execute(
	at org.apache.maven.cli.MavenCli.main(
	at org.apache.maven.cli.compat.CompatibleMain.main(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.codehaus.classworlds.Launcher.launchEnhanced(
	at org.codehaus.classworlds.Launcher.launch(
	at org.codehaus.classworlds.Launcher.mainWithExitCode(
	at org.codehaus.classworlds.Launcher.main(

So I was unable to use the Perforce SCM Provider as SCM Wagn as you will see in this simplified
attached/POM(testcase) to reproduce the issue.
Don't forget to replace the url & username by a working one.

To run it : 
-detach this pom
-modify the url to a valid perforce server
-launch "maven deploy"

Tried with svn just by switching the extension from perforce into svn & modifying the
url : no problem... as svn provider implements the list() method.
So the list() method needs to be implemented in the PerforceScmProvider as solution.

At this time from my understanding, no project can use perforce as repository.

Thx in advance

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message