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

Release plugin does not work with central repository and always performs clone operation

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Ubuntu 11.04/ArchLinux
      Maven 3.0.3
      Mercurial 1.7.5/1.9.1
      vars:
      MAVEN_OPTS="-DaltDeploymentRepository=abetaev::default::file://$HOME/mvn"
    • Flags:
      Patch

      Description

      Plugin cannot work with repositories as if they were central ones. It pushes and updates data from central repo.
      Please take a look at the patch here: SCM-631
      Also look at MRELEASE-707 issue. The patch from attachment enables usage of ${project.scm.developerConnection} var.

      The attached patch makes plugin to work with repository as if it was central. The following arguments were used for manual testing:

      mvn -f parent/pom.xml -DpushChanges=false -DscmPerformLocalUpdate=true -Dproject.scm.developerConnection=scm:hg:file://\${basedir}/../ release:prepare
      mvn -f parent/pom.xml -DpushChanges=false -DscmPerformLocalUpdate=true -Dproject.scm.developerConnection=scm:hg:file://\${basedir}/../ release:perform
      

        Attachments

        1. maven-test-project.tar.bz2
          4 kB
          Alexander Betaev
        2. maven-scm.patch
          7 kB
          Alexander Betaev
        3. maven-release-plugin.patch
          10 kB
          Alexander Betaev
        4. maven-release-plugin.patch
          11 kB
          Alexander Betaev

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              infestator Alexander Betaev
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: