You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jerome Lacoste (JIRA)" <ji...@codehaus.org> on 2006/05/09 12:21:40 UTC

[jira] Created: (SCM-196) scm:update doesn't reuse developerConnection when connection not defined.

scm:update doesn't reuse developerConnection when connection not defined.
-------------------------------------------------------------------------

         Key: SCM-196
         URL: http://jira.codehaus.org/browse/SCM-196
     Project: Maven SCM
        Type: Improvement

  Components: maven-scm-provider-svn, maven-plugin  
 Environment: mvn 2.0.4
scm: 1.0-20060505.091301-5
svn 1.3.1
    Reporter: Jerome Lacoste


I am using mvn scm:update in a project without a connection (but with a developerConnectino) and scm:update fails:

[INFO] --------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] --------------------------------------------------------------
[INFO] Cannot run checkout command :

Embedded error: Can't load the scm provider.
You need to define a connectionUrl parameter
[INFO] --------------------------------------------------------------

The plugin should use the developerConnection when no connection has been defined. Otherwise that forces one to copy the developerConnection into the connection one which defeats DRY and the fact that the connection represents a read-only element. Not sure if that problem is subversion dependent or not, so I selected both the plugin and the svn specific component.

-- 
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


[jira] Closed: (SCM-196) scm:update doesn't reuse developerConnection when connection not defined.

Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SCM-196?page=all ]
     
Emmanuel Venisse closed SCM-196:
--------------------------------

     Assign To: Emmanuel Venisse
    Resolution: Won't Fix

You can choose the developerConnection with connectionType parameter

mvn scm:update -DconnectionType=developerConnection

> scm:update doesn't reuse developerConnection when connection not defined.
> -------------------------------------------------------------------------
>
>          Key: SCM-196
>          URL: http://jira.codehaus.org/browse/SCM-196
>      Project: Maven SCM
>         Type: Improvement

>   Components: maven-scm-provider-svn, maven-plugin
>  Environment: mvn 2.0.4
> scm: 1.0-20060505.091301-5
> svn 1.3.1
>     Reporter: Jerome Lacoste
>     Assignee: Emmanuel Venisse

>
>
> I am using mvn scm:update in a project without a connection (but with a developerConnectino) and scm:update fails:
> [INFO] --------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] --------------------------------------------------------------
> [INFO] Cannot run checkout command :
> Embedded error: Can't load the scm provider.
> You need to define a connectionUrl parameter
> [INFO] --------------------------------------------------------------
> The plugin should use the developerConnection when no connection has been defined. Otherwise that forces one to copy the developerConnection into the connection one which defeats DRY and the fact that the connection represents a read-only element. Not sure if that problem is subversion dependent or not, so I selected both the plugin and the svn specific component.

-- 
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


[jira] Reopened: (SCM-196) scm:update doesn't reuse developerConnection when connection not defined.

Posted by "Jerome Lacoste (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SCM-196?page=all ]
     
Jerome Lacoste reopened SCM-196:
--------------------------------


I don't see a real explanation of why this automatic fallback shouldn't be implemented. What would that break? Isn't a 



Being able to do scm:update whatever the pom contains sounds closer to the maven philosophy to me. So there should be an automatic fallback mecanism.

If fallback by default is not an option, consider something like

   mvn scm:update -DconnectionType=fallback

As long as I can put this default option somewhere in my maven config and not have to type it again, I will be satisfied. Would something like that 

> scm:update doesn't reuse developerConnection when connection not defined.
> -------------------------------------------------------------------------
>
>          Key: SCM-196
>          URL: http://jira.codehaus.org/browse/SCM-196
>      Project: Maven SCM
>         Type: Improvement

>   Components: maven-scm-provider-svn, maven-plugin
>  Environment: mvn 2.0.4
> scm: 1.0-20060505.091301-5
> svn 1.3.1
>     Reporter: Jerome Lacoste
>     Assignee: Emmanuel Venisse

>
>
> I am using mvn scm:update in a project without a connection (but with a developerConnectino) and scm:update fails:
> [INFO] --------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] --------------------------------------------------------------
> [INFO] Cannot run checkout command :
> Embedded error: Can't load the scm provider.
> You need to define a connectionUrl parameter
> [INFO] --------------------------------------------------------------
> The plugin should use the developerConnection when no connection has been defined. Otherwise that forces one to copy the developerConnection into the connection one which defeats DRY and the fact that the connection represents a read-only element. Not sure if that problem is subversion dependent or not, so I selected both the plugin and the svn specific component.

-- 
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


[jira] Closed: (SCM-196) scm:update doesn't reuse developerConnection when connection not defined.

Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SCM-196?page=all ]
     
Emmanuel Venisse closed SCM-196:
--------------------------------

     Resolution: Fixed
    Fix Version: 1.0

Now, if connection isn't define, we choose the developerConnection url even if connectionType is 'connection'

> scm:update doesn't reuse developerConnection when connection not defined.
> -------------------------------------------------------------------------
>
>          Key: SCM-196
>          URL: http://jira.codehaus.org/browse/SCM-196
>      Project: Maven SCM
>         Type: Improvement

>   Components: maven-scm-provider-svn, maven-plugin
>  Environment: mvn 2.0.4
> scm: 1.0-20060505.091301-5
> svn 1.3.1
>     Reporter: Jerome Lacoste
>     Assignee: Emmanuel Venisse
>      Fix For: 1.0

>
>
> I am using mvn scm:update in a project without a connection (but with a developerConnectino) and scm:update fails:
> [INFO] --------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] --------------------------------------------------------------
> [INFO] Cannot run checkout command :
> Embedded error: Can't load the scm provider.
> You need to define a connectionUrl parameter
> [INFO] --------------------------------------------------------------
> The plugin should use the developerConnection when no connection has been defined. Otherwise that forces one to copy the developerConnection into the connection one which defeats DRY and the fact that the connection represents a read-only element. Not sure if that problem is subversion dependent or not, so I selected both the plugin and the svn specific component.

-- 
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


[jira] Commented: (SCM-196) scm:update doesn't reuse developerConnection when connection not defined.

Posted by "Jerome Lacoste (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SCM-196?page=comments#action_65461 ] 

Jerome Lacoste commented on SCM-196:
------------------------------------

[accidently fired the form in the middle of my former comment. Here it is, completed]

Sorry but I am not satisfied. Having to remember if project a project defines a non developer connection or not is counter intuitive.

I don't see a real explanation of why this automatic fallback shouldn't be implemented. What would that break? Isn't a read-write connection also a read connection? Being able to do scm:update whatever the pom contains sounds closer to the maven philosophy to me. So to me, there should be an automatic fallback mecanism.

If fallback by default is not an option, consider something like

mvn scm:update -DconnectionType=fallback

As long as I can put this default option somewhere in my maven config and not have to type it again, I will be satisfied. Would something like that be OK?

> scm:update doesn't reuse developerConnection when connection not defined.
> -------------------------------------------------------------------------
>
>          Key: SCM-196
>          URL: http://jira.codehaus.org/browse/SCM-196
>      Project: Maven SCM
>         Type: Improvement

>   Components: maven-scm-provider-svn, maven-plugin
>  Environment: mvn 2.0.4
> scm: 1.0-20060505.091301-5
> svn 1.3.1
>     Reporter: Jerome Lacoste
>     Assignee: Emmanuel Venisse

>
>
> I am using mvn scm:update in a project without a connection (but with a developerConnectino) and scm:update fails:
> [INFO] --------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] --------------------------------------------------------------
> [INFO] Cannot run checkout command :
> Embedded error: Can't load the scm provider.
> You need to define a connectionUrl parameter
> [INFO] --------------------------------------------------------------
> The plugin should use the developerConnection when no connection has been defined. Otherwise that forces one to copy the developerConnection into the connection one which defeats DRY and the fact that the connection represents a read-only element. Not sure if that problem is subversion dependent or not, so I selected both the plugin and the svn specific component.

-- 
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


[jira] Commented: (SCM-196) scm:update doesn't reuse developerConnection when connection not defined.

Posted by "Jerome Lacoste (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SCM-196?page=comments#action_65465 ] 

Jerome Lacoste commented on SCM-196:
------------------------------------

thanks a lot :)

> scm:update doesn't reuse developerConnection when connection not defined.
> -------------------------------------------------------------------------
>
>          Key: SCM-196
>          URL: http://jira.codehaus.org/browse/SCM-196
>      Project: Maven SCM
>         Type: Improvement

>   Components: maven-scm-provider-svn, maven-plugin
>  Environment: mvn 2.0.4
> scm: 1.0-20060505.091301-5
> svn 1.3.1
>     Reporter: Jerome Lacoste
>     Assignee: Emmanuel Venisse
>      Fix For: 1.0

>
>
> I am using mvn scm:update in a project without a connection (but with a developerConnectino) and scm:update fails:
> [INFO] --------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] --------------------------------------------------------------
> [INFO] Cannot run checkout command :
> Embedded error: Can't load the scm provider.
> You need to define a connectionUrl parameter
> [INFO] --------------------------------------------------------------
> The plugin should use the developerConnection when no connection has been defined. Otherwise that forces one to copy the developerConnection into the connection one which defeats DRY and the fact that the connection represents a read-only element. Not sure if that problem is subversion dependent or not, so I selected both the plugin and the svn specific component.

-- 
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