scm:checkin uses <connection> not <developerConnection>
-------------------------------------------------------

         Key: SCM-179
         URL: http://jira.codehaus.org/browse/SCM-179
     Project: Maven SCM
        Type: Bug

    Reporter: Alex Mayorga Adame


Looks like scm:checkin uses <connection> and not <developerConnection>. 
http://maven.apache.org/ref/2.0.3-SNAPSHOT/maven-model/maven.html#class_scm 
states that <connection> is to be read-only.

Below found case for a <connection> read-only that fails:
{{...}}
{{[DEBUG] Retrieving parent-POM: org.apache.maven.scm:maven-scm::1.0-beta-2 for 
project:}} {{null:maven-scm-providers:pom:1.0-beta-2 from the repository.}}
{{[DEBUG]   org.apache.maven.scm:maven-scm-provider-svn:jar:1.0-beta-2:runtime 
(selected for runtime)}}
{{[DEBUG] Configuring mojo 
'org.apache.maven.plugins:maven-scm-plugin:1.0-beta-2:checkin' -->}}
{{[DEBUG]   (f) basedir = /export1/eae/am74839/esfSample}}
{{[DEBUG]   (f) connectionUrl = scm:cvs:pserver:[EMAIL 
PROTECTED]:/export1/cvsrep/eae:esfSample}}
{{[DEBUG]   (f) message = -Fixed problems caused by change in CVS location}}
{{[DEBUG]   (f) settings = [EMAIL PROTECTED]
{{[DEBUG] -- end configuration --}}
{{[INFO] [scm:checkin]}}
{{[DEBUG] cvsRoot: :pserver:[EMAIL PROTECTED]:2401/export1/cvsrep/eae}}
{{[DEBUG] passFile: /home/am74839/.cvspass}}
{{[DEBUG] cvsroot :pserver:[EMAIL PROTECTED]:2401/export1/cvsrep/eae already 
exist in}}
{{/home/am74839/.cvspass. SKIPPED.}}
{{[DEBUG] Working directory: /export1/eae/am74839/esfSample}}
{{[DEBUG] Command line: cvs -f -d :pserver:[EMAIL 
PROTECTED]:/export1/cvsrep/eae -q commit -R -F}} 
{{/var/tmp/scm-commit-message55027.txt}}
{{[ERROR] Provider message:}}
{{[ERROR] The cvs command failed.}}
{{[ERROR] Command output:}}
{{[ERROR] cvs [server aborted]: "commit" requires write access to the 
repository}}
{{...}}

Relevant part of POM:
{{...}}
{{<scm>}}
{{<connection>scm:cvs:pserver:[EMAIL 
PROTECTED]:/export1/cvsrep/eae:esfSample</connection>}}
{{<developerConnection>scm:cvs:pserver:[EMAIL 
PROTECTED]:/export1/cvsrep/eae:esfSample</developerConnection>}}
{{</scm>}}
{{...}}


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

Reply via email to