You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Lóránt Pintér (JIRA)" <ji...@codehaus.org> on 2011/08/02 14:42:42 UTC

[jira] Commented: (SCM-508) Wrong scm url validation for mercurial provider

    [ https://jira.codehaus.org/browse/SCM-508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=274812#comment-274812 ] 

Lóránt Pintér commented on SCM-508:
-----------------------------------

Using http://localhost:8000 is not a solution when you want to use the release pluign's localCheckout feature. It produces this error on Windows:

{code}
C:\Workspaces\Eclipse\Test-TOPclipse-3.7\tis-parent>mvn release:perform -DlocalCheckout=true
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building TIS Parent 3.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-release-plugin:2.2.1:perform (default-cli) @ tis-parent ---
[INFO] Checking out the project to perform the release ...
[INFO] Performing a LOCAL checkout from scm:hg:file://C:\Workspaces\Eclipse\Test-TOPclipse-3.7\tis-parent
[ERROR] The scm url is invalid.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.325s
[INFO] Finished at: Tue Aug 02 14:34:57 CEST 2011
[INFO] Final Memory: 7M/105M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.2.1:perform (default-cli) on project tis-parent:
The scm url is invalid.
[ERROR] - An hg 'file' url must be on the form 'file:///' or 'file://localhost/'.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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
{code}


> Wrong scm url validation for mercurial provider
> -----------------------------------------------
>
>                 Key: SCM-508
>                 URL: https://jira.codehaus.org/browse/SCM-508
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-mercurial (hg)
>            Reporter: Alexander Nemish
>             Fix For: 1.x
>
>         Attachments: SCM-508-maven-scm-provider-hg.patch
>
>
> According to documentation (http://maven.apache.org/scm/mercurial.html) scm url can be of this form:
> scm:hg:file://C:/dev/project/v3
> but it doesn't work due to a bug in https://svn.apache.org/repos/asf/maven/scm/tags/maven-scm-1.2/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/HgScmProvider.java
> private HgUrlParserResult parseScmUrl( String scmSpecificUrl )
> line 104: if ( !url.startsWith( "file:///" ) && !url.startsWith( "file://localhost/" ) )
> The fix might be the following (like in svn provider)
> line 104: if ( !url.startsWith( "file://" ) && !url.startsWith( "file://localhost/" ) )

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira