Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta-3
    • Fix Version/s: 2.0-beta-5
    • Component/s: scm
    • Labels:
      None
    • Environment:
      Windows 2k, or Windows XP. JDK 1.4.2, scpexe=pscp sshexe=plink cvs=cvs.exe CVS_RSH=plink. Key authentication via pageant
    • Number of attachments :
      6

      Description

      I can successfully tag all sub projects of a parent pom (with the standard directory structure), but I'm unable complete the release:prepare operation since the parent POM is not checked in. As a result I am unable to perform a multi-project release. Each child pom has the scm repotisotries declared in the pom. Attached is verbose output of the command.

      mvn -Duser.name=c200506 -X clean release:prepare

      [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: null:maven-plugin-parameter-documenter:jar:2.0 from the repository.
      [DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0:runtime (selected for runtime)
      [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: null:maven-error-diagnostics:jar:2.0 from the repository.
      [DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0:runtime (selected for runtime)[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apac
      he.maven:maven-monitor:jar:2.0 from the repository.
      [DEBUG] org.apache.maven:maven-monitor:jar:2.0:runtime (selected for runtime
      )
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: null:mav
      en-settings:jar:2.0 from the repository.
      [DEBUG] org.apache.maven:maven-settings:jar:2.0:runtime (selected for runtim
      e)
      [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - near
      er found: 1.1)
      [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5:runtim
      e (selected for runtime)
      [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - near
      er found: 1.1)
      [DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5:runtime (selected
      for runtime)
      [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - near
      er found: 1.1)
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apac
      he.maven:maven-plugin-descriptor:jar:2.0 from the repository.
      [DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0:runtime (selected f
      or runtime)
      [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for ru
      ntime)
      [DEBUG] commons-cli:commons-cli:jar:1.0:runtime (selected for runtime)
      [DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5:runtime (selected f
      or runtime)
      [DEBUG] com.jcraft:jsch:jar:0.1.23:runtime (selected for runtime)
      [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - near
      er found: 1.1)
      [DEBUG] Retrieving parent-POM: org.apache.maven.reporting:maven-reporting::2.0 f
      or project: null:maven-reporting-api:jar:2.0 from the repository.
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apac
      he.maven.reporting:maven-reporting:pom:2.0 from the repository.
      [DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0:runtime (sele
      cted for runtime)
      [DEBUG] doxia:doxia-sink-api:jar:1.0-alpha-4:runtime (selected for runtime
      )
      [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for runt
      ime)
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apac
      he.maven:maven-plugin-registry:jar:2.0 from the repository.
      [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0:runtime (selected for
      runtime)
      [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - near
      er found: 1.1)
      [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for runtim
      e)
      [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime)

      [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer
      found: 1.1)
      [DEBUG] Skipping disabled repository central
      [DEBUG] maven-scm-manager-plexus: resolved to version 1.0-beta-3-20060330.123807
      -1 from repository apache.snapshots
      [DEBUG] Retrieving parent-POM: org.apache.maven.scm:maven-scm-managers::1.0-beta
      -3-SNAPSHOT for project: null:maven-scm-manager-plexus:jar:1.0-beta-3-20060330.1
      23807-1 from the repository.
      [DEBUG] Skipping disabled repository central
      [DEBUG] maven-scm-managers: resolved to version 1.0-beta-3-20060330.123807-1 fro
      m repository apache.snapshots
      [DEBUG] Retrieving parent-POM: org.apache.maven.scm:maven-scm::1.0-beta-3-SNAPSH
      OT for project: null:maven-scm-managers:pom:1.0-beta-3-SNAPSHOT from the reposit
      ory.
      [DEBUG] maven-scm: resolved to version 1.0-beta-3-20060330.123807-1 from reposit
      ory apache.snapshots
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org
      .apache.maven.scm:maven-scm:pom:1.0-beta-3-SNAPSHOT from the repository.
      [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.mave
      n:maven-parent:pom:1 from the repository.
      [DEBUG] org.apache.maven.scm:maven-scm-manager-plexus:jar:1.0-beta-3-SNAPSHOT:
      runtime (selected for runtime)
      [DEBUG] maven-scm-api: resolved to version 1.0-beta-3-20060330.123807-2 from rep
      ository apache.snapshots
      [DEBUG] Retrieving parent-POM: org.apache.maven.scm:maven-scm::1.0-beta-3-SNAPSH
      OT for project: null:maven-scm-api:jar:1.0-beta-3-20060330.123807-2 from the rep
      ository.
      [DEBUG] maven-scm: resolved to version 1.0-beta-3-20060330.123807-1 from reposit
      ory apache.snapshots
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org
      .apache.maven.scm:maven-scm:pom:1.0-beta-3-SNAPSHOT from the repository.
      [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.mave
      n:maven-parent:pom:1 from the repository.
      [DEBUG] Skipping disabled repository central
      [DEBUG] maven-scm-provider-bazaar: resolved to version 1.0-beta-3-20060330.12380
      7-3 from repository apache.snapshots
      [DEBUG] Retrieving parent-POM: org.apache.maven.scm:maven-scm-providers::1.0-bet
      a-3-SNAPSHOT for project: null:maven-scm-provider-bazaar:jar:1.0-beta-3-20060330
      .123807-3 from the repository.
      [DEBUG] maven-scm-providers: resolved to version 1.0-beta-3-20060330.123807-1 fr
      om repository apache.snapshots
      [DEBUG] Retrieving parent-POM: org.apache.maven.scm:maven-scm::1.0-beta-3-SNAPSH
      OT for project: null:maven-scm-providers:pom:1.0-beta-3-SNAPSHOT from the reposi
      tory.
      [DEBUG] maven-scm: resolved to version 1.0-beta-3-20060330.123807-1 from reposit
      ory apache.snapshots
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org
      .apache.maven.scm:maven-scm:pom:1.0-beta-3-SNAPSHOT from the repository.
      [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.mave
      n:maven-parent:pom:1 from the repository.
      [DEBUG] org.apache.maven.scm:maven-scm-provider-bazaar:jar:1.0-beta-3-SNAPSHOT
      :runtime (selected for runtime)
      [DEBUG] Retrieving parent-POM: plexus:plexus-containers::1.0.2 for project: org.
      codehaus.plexus:plexus-container-default:jar:1.0-alpha-7 from the repository.
      [DEBUG] Retrieving parent-POM: plexus:plexus-root::1.0.3 for project: plexus:ple
      xus-containers:pom:1.0.2 from the repository.
      [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-7:runtime
      (removed - nearer found: 1.0-alpha-8)
      [DEBUG] maven-scm-api: resolved to version 1.0-beta-3-20060330.123807-2 from rep
      ository apache.snapshots
      [DEBUG] Retrieving parent-POM: org.apache.maven.scm:maven-scm::1.0-beta-3-SNAPSH
      OT for project: null:maven-scm-api:jar:1.0-beta-3-20060330.123807-2 from the rep
      ository.
      [DEBUG] maven-scm: resolved to version 1.0-beta-3-20060330.123807-1 from reposit
      ory apache.snapshots
      [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org
      .apache.maven.scm:maven-scm:pom:1.0-beta-3-SNAPSHOT from the repository.
      [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.mave
      n:maven-parent:pom:1 from the repository.
      [DEBUG] maven-scm-provider-clearcase: resolved to version 1.0-beta-3-20060330.12
      3807-1 from repository apache.snapshots
      [DEBUG] maven-scm-provider-cvsexe: resolved to version 1.0-beta-3-20060330.12380
      7-1 from repository apache.snapshots
      [DEBUG] maven-scm-provider-cvs-commons: resolved to version 1.0-beta-3-20060330.
      123807-2 from repository apache.snapshots
      [DEBUG] maven-scm-provider-bazaar: resolved to version 1.0-beta-3-20060330.12380
      7-3 from repository apache.snapshots
      [DEBUG] maven-scm-manager-plexus: resolved to version 1.0-beta-3-20060330.123807
      -1 from repository apache.snapshots
      [DEBUG] maven-scm-provider-starteam: resolved to version 1.0-beta-3-20060330.123
      807-1 from repository apache.snapshots
      [DEBUG] maven-scm-api: resolved to version 1.0-beta-3-20060330.123807-2 from rep
      ository apache.snapshots
      [DEBUG] maven-scm-provider-perforce: resolved to version 1.0-beta-3-20060330.123
      807-1 from repository apache.snapshots
      [DEBUG] maven-scm-provider-svnexe: resolved to version 1.0-beta-3-20060406.13283
      7-2 from repository apache.snapshots
      [DEBUG] maven-scm-provider-svn-commons: resolved to version 1.0-beta-3-20060330.
      123807-2 from repository apache.snapshots
      [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-release-plugin:2.0-beta
      -4-SNAPSHOT:prepare' -->
      [DEBUG] (f) basedir = C:\workspace\ata\loyalty
      [DEBUG] (f) generateReleasePoms = false
      [DEBUG] (f) interactive = true
      [DEBUG] (f) localRepository = [local] -> file://C:\Documents and Settings\nine
      t\.m2\repository
      [DEBUG] (f) reactorProjects = [org.apache.maven.project.MavenProject@894dcbb6,
      org.apache.maven.project.MavenProject@c196d622, org.apache.maven.project.MavenP
      roject@1f223c02, org.apache.maven.project.MavenProject@8f236f66, org.apache.mave
      n.project.MavenProject@dc608386, org.apache.maven.project.MavenProject@467399cc]

      [DEBUG] (f) resume = true
      [DEBUG] (f) settings = org.apache.maven.settings.Settings@1fc1a6
      [DEBUG] (f) testmode = false
      [DEBUG] (f) urlScm = scm:cvs:ext:c200506@sun10.ata.com:/a01/proj/CVS:loyalty/l
      oyaltyBin
      [DEBUG] (f) useEditMode = false
      [DEBUG] – end configuration –
      [INFO] [release:prepare]
      [INFO] Verifying there are no local modifications ...
      [INFO] Executing: cvs -z3 -f -d :ext:c200506@sun10.ata.com:/a01/proj/CVS -n -q u
      pdate -d
      [INFO] Working directory: C:\workspace\ata\loyalty
      [INFO] Checking dependencies and plugins for snapshots ...
      [INFO] What is the release version for "ata.loyalty:loyaltyCommon"? [1.0.2]

      [INFO] Transforming ata.loyalty:loyaltyCommon to release
      [INFO] What tag name should be used?
      loyaltyPackage-1_0_2
      [INFO] What is the release version for "ata.loyalty:loyaltyCoreBusiness"? [1.0.2
      ]

      [INFO] Transforming ata.loyalty:loyaltyCoreBusiness to release
      [DEBUG] loyaltypackage: using locally installed snapshot
      [INFO] Updating loyaltyCommon to 1.0.2
      [INFO] What is the release version for "ata.loyalty:loyaltyEJBRemote"? [1.0.2]

      [INFO] Transforming ata.loyalty:loyaltyEJBRemote to release
      [INFO] Updating loyaltyCommon to 1.0.2
      [INFO] What is the release version for "ata.loyalty:loyaltyEJB"? [1.0.2]

      [INFO] Transforming ata.loyalty:loyaltyEJB to release
      [INFO] Updating loyaltyEJBRemote to 1.0.2
      [INFO] Updating loyaltyCoreBusiness to 1.0.2
      [INFO] What is the release version for "ata.loyalty:loyalty"? [1.0.2]

      [INFO] Transforming ata.loyalty:loyalty to release
      [INFO] Updating loyaltyEJB to 1.0.2
      [INFO] What is the release version for "ata.loyalty:loyaltyPackage"? [1.0.2]

      [INFO] Transforming ata.loyalty:loyaltyPackage to release
      [INFO] Checking in modified POMs
      [INFO] Executing: cvs -z3 -f -d :ext:c200506@sun10.ata.com:/a01/proj/CVS -q comm
      it -R -F C:\DOCUME~1\ninet\LOCALS~1\Temp\scm-commit-message18612.txt loyaltyServ
      iceEJBRemote/pom.xml loyaltyService/pom.xml loyaltyCoreBusiness/pom.xml pom.xml
      loyaltyServiceEJB/pom.xml loyaltyCommon/pom.xml
      [INFO] Working directory: C:\workspace\ata\loyalty
      [DEBUG] Checking in loyaltyServiceEJBRemote/pom.xml;
      [DEBUG] /a01/proj/CVS/loyalty/loyaltyServiceEJBRemote/Attic/pom.xml,v <-- pom.
      xml
      [DEBUG] new revision: 1.1.2.30; previous revision: 1.1.2.29
      [DEBUG] done
      [DEBUG] Checking in loyaltyService/pom.xml;
      [DEBUG] /a01/proj/CVS/loyalty/loyaltyService/Attic/pom.xml,v <-- pom.xml
      [DEBUG] new revision: 1.1.2.29; previous revision: 1.1.2.28
      [DEBUG] done
      [DEBUG] Checking in loyaltyCoreBusiness/pom.xml;
      [DEBUG] /a01/proj/CVS/loyalty/loyaltyCoreBusiness/Attic/pom.xml,v <-- pom.xml
      [DEBUG] new revision: 1.1.2.31; previous revision: 1.1.2.30
      [DEBUG] done
      [DEBUG] Checking in loyaltyServiceEJB/pom.xml;
      [DEBUG] /a01/proj/CVS/loyalty/loyaltyServiceEJB/Attic/pom.xml,v <-- pom.xml
      [DEBUG] new revision: 1.1.2.31; previous revision: 1.1.2.30
      [DEBUG] done
      [DEBUG] Checking in loyaltyCommon/pom.xml;
      [DEBUG] /a01/proj/CVS/loyalty/loyaltyCommon/Attic/pom.xml,v <-- pom.xml
      [DEBUG] new revision: 1.1.2.30; previous revision: 1.1.2.29
      [DEBUG] done
      [INFO] Tagging release with the label loyaltyPackage-1_0_2.
      [INFO] Executing: cvs -z3 -f -d :ext:c200506@sun10.ata.com:/a01/proj/CVS -q tag
      -F -c loyaltyPackage-1_0_2
      [INFO] Working directory: C:\workspace\ata\loyalty
      Provider message:
      The cvs tag command failed.
      Command output:
      cvs tag: pom.xml is locally modified
      cvs [tag aborted]: correct the above errors first!

      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] An error is occurred in the tag process.

      Embedded error: Error!
      [INFO] ------------------------------------------------------------------------
      [DEBUG] Trace
      org.apache.maven.lifecycle.LifecycleExecutionException: An error is occurred in
      the tag process.
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
      ultLifecycleExecutor.java:559)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
      Goal(DefaultLifecycleExecutor.java:488)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
      ltLifecycleExecutor.java:458)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
      dleFailures(DefaultLifecycleExecutor.java:306)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
      ts(DefaultLifecycleExecutor.java:219)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
      fecycleExecutor.java:140)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      Caused by: org.apache.maven.plugin.MojoExecutionException: An error is occurred
      in the tag process.
      at org.apache.maven.plugins.release.PrepareReleaseMojo.tagRelease(Prepar
      eReleaseMojo.java:1593)
      at org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareRe
      leaseMojo.java:281)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
      nManager.java:412)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
      ultLifecycleExecutor.java:534)
      ... 16 more
      Caused by: org.apache.maven.scm.ScmException: Error!
      at org.apache.maven.plugins.release.helpers.ScmHelper.checkResult(ScmHel
      per.java:171)
      at org.apache.maven.plugins.release.helpers.ScmHelper.tag(ScmHelper.java
      :308)
      at org.apache.maven.plugins.release.PrepareReleaseMojo.tagRelease(Prepar
      eReleaseMojo.java:1584)
      ... 19 more
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 50 seconds
      [INFO] Finished at: Fri Apr 14 12:04:06 EDT 2006
      [INFO] Final Memory: 5M/11M
      [INFO] ------------------------------------------------------------------------

      1. howto.apt-patch.txt
        1.0 kB
        Todd Nine
      2. howto.apt-patch.txt
        0.9 kB
        Todd Nine
      3. ScmCommitPhase-patch.txt
        10 kB
        Todd Nine
      4. ScmCommitPhase-patch.txt
        10 kB
        Todd Nine
      5. ScmCommitPhaseTest-patch.txt
        23 kB
        Todd Nine
      6. ScmCommitPhaseTest-patch.txt
        23 kB
        Todd Nine

        Issue Links

          Activity

          Hide
          Todd Nine added a comment -

          Added test case to test the wincvsnt value set to true

          Show
          Todd Nine added a comment - Added test case to test the wincvsnt value set to true
          Hide
          Todd Nine added a comment -

          Added the documentation on how to configure for winntcvs

          Show
          Todd Nine added a comment - Added the documentation on how to configure for winntcvs
          Hide
          Todd Nine added a comment -

          updated settings name to be more generic

          Show
          Todd Nine added a comment - updated settings name to be more generic
          Hide
          Todd Nine added a comment -

          Note that the files that are gray are old patches

          Show
          Todd Nine added a comment - Note that the files that are gray are old patches
          Hide
          Emmanuel Venisse added a comment -

          Fixed in Maven-SCM

          Show
          Emmanuel Venisse added a comment - Fixed in Maven-SCM

            People

            • Assignee:
              Emmanuel Venisse
              Reporter:
              Todd Nine
            • Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: