Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-179

scm:checkin uses <connection> not <developerConnection>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-beta-3
    • maven-plugin
    • None

    Description

      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:anonymous@gcatfs1d.ny.ssmb.com:/export1/cvsrep/eae:esfSample
      [DEBUG] (f) message = -Fixed problems caused by change in CVS location
      [DEBUG] (f) settings = org.apache.maven.settings.Settings@1f3ce5c
      [DEBUG] – end configuration --
      [INFO] [scm:checkin]
      [DEBUG] cvsRoot: :pserver:anonymous@gcatfs1d.ny.ssmb.com:2401/export1/cvsrep/eae
      [DEBUG] passFile: /home/am74839/.cvspass
      [DEBUG] cvsroot :pserver:anonymous@gcatfs1d.ny.ssmb.com: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:anonymous@gcatfs1d.ny.ssmb.com:/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:anonymous@gcatfs1d.ny.ssmb.com:/export1/cvsrep/eae:esfSample</connection>
      <developerConnection>scm:cvs:pserver:${user.name}@gcatfs1d.ny.ssmb.com:/export1/cvsrep/eae:esfSample</developerConnection>
      </scm>
      ...

      Attachments

        Activity

          People

            jdcasey John Dennis Casey
            alex_mayorga Alex Mayorga Adame
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: