[
https://issues.apache.org/jira/browse/SCM-307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17960970#comment-17960970
]
ASF GitHub Bot commented on SCM-307:
------------------------------------
jira-importer opened a new issue, #525:
URL: https://github.com/apache/maven-scm/issues/525
**[Ehab
Jewabreh](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=e.jewabreh)**
opened
**[SCM-307](https://issues.apache.org/jira/browse/SCM-307?redirect=false)** and
commented
I am trying to use the scm:svn within maven release plugin. Currently we
access the svn repository via file://....
If i use file://, then i get an error message from the scm plugin (scm url
is invalid) as you can see in the sourcecode below.
If i use file:///, then it will be accepted by the scm provider but i
get an error from the svn command.
Is it possible to change the implementation of the method
AbstractSvnScmProvider.parseScmUrl( String scmSpecificUrl ) in order to
accept (file://)
###################################
private ScmUrlParserResult parseScmUrl( String scmSpecificUrl )
{
ScmUrlParserResult result = new ScmUrlParserResult();
String url = scmSpecificUrl;
//
----------------------------------------------------------------------
// Do some sanity checking of the SVN url
//
----------------------------------------------------------------------
if ( url.startsWith( "file" ) )
{
if ( !url.startsWith( "file:///" ) && !url.startsWith(
"file://localhost/" ) )
{
result.messages.add( "A svn 'file' url must be on the form
'file:///' or 'file://localhost/'." );
return result;
}
}
##############################
---
**Affects:** 1.0-rc1
> Svn provider- file protocol with 3 slashes
> -------------------------------------------
>
> Key: SCM-307
> URL: https://issues.apache.org/jira/browse/SCM-307
> Project: Maven SCM (Moved to GitHub Issues)
> Issue Type: Improvement
> Affects Versions: 1.0-rc1
> Reporter: Ehab Jewabreh
> Assignee: Emmanuel Venisse
> Priority: Major
> Fix For: 1.0
>
>
> I am trying to use the scm:svn within maven release plugin. Currently we
> access the svn repository via file://....
> If i use file://, then i get an error message from the scm plugin (scm url
> is invalid) as you can see in the sourcecode below.
> If i use file:///, then it will be accepted by the scm provider but i
> get an error from the svn command.
> Is it possible to change the implementation of the method
> AbstractSvnScmProvider.parseScmUrl( String scmSpecificUrl ) in order to
> accept (file://)
> ###################################
> private ScmUrlParserResult parseScmUrl( String scmSpecificUrl )
> {
> ScmUrlParserResult result = new ScmUrlParserResult();
> String url = scmSpecificUrl;
> //
> ----------------------------------------------------------------------
> // Do some sanity checking of the SVN url
> //
> ----------------------------------------------------------------------
> if ( url.startsWith( "file" ) )
> {
> if ( !url.startsWith( "file:///" ) && !url.startsWith(
> "file://localhost/" ) )
> {
> result.messages.add( "A svn 'file' url must be on the form
> 'file:///' or 'file://localhost/'." );
> return result;
> }
> }
> ##############################
--
This message was sent by Atlassian Jira
(v8.20.10#820010)