You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mark Struberg (JIRA)" <ji...@codehaus.org> on 2011/01/31 09:06:57 UTC

[jira] Commented: (SCM-538) mvn reactor:make-scm-changes fails for git provider with local git index

    [ http://jira.codehaus.org/browse/SCM-538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=253554#action_253554 ] 

Mark Struberg commented on SCM-538:
-----------------------------------

I tried it with an absolute file path and it worked well. Can you give us an example of the file:// you used? Is there some weird prefix in cygwin?

> mvn reactor:make-scm-changes fails for git provider with local git index
> ------------------------------------------------------------------------
>
>                 Key: SCM-538
>                 URL: http://jira.codehaus.org/browse/SCM-538
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-git
>    Affects Versions: 1.3
>         Environment: windows cygwin
>            Reporter: Shankar Narayan
>
> I have the following scm connection setup
> <scm>
>         <connection>scm:git:file:..</connection>
>         <developerConnection>scm:git:file:..</developerConnection>
>         <url>scm:git:file:..</url>
>     </scm>
> Regular mvn scm:* commands work fine.
> The maven reactor plugin seems to have a problem when I issue the following command:
> mvn -X reactor:make-scm-changes
> It complains about invalid scm url. The stack trace seems to point to the scm-provider.
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Couldn't configure SCM repository: The scm url is invalid.
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>         at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>         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:597)
>         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: Couldn't configure SCM repository: The scm url is invalid.
>         at org.apache.maven.plugin.reactor.MakeScmChanges.execute(MakeScmChanges.java:88)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>         ... 17 more
> Caused by: org.apache.maven.scm.repository.ScmRepositoryException: The scm url is invalid.
>         at org.apache.maven.scm.provider.git.AbstractGitScmProvider.makeProviderScmRepository(AbstractGitScmProvider.java:93)
>         at org.apache.maven.scm.manager.AbstractScmManager.makeScmRepository(AbstractScmManager.java:192)
>         at org.apache.maven.plugin.reactor.MakeScmChanges.execute(MakeScmChanges.java:83)
>         ... 19 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira