maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony O. (JIRA)" <>
Subject [jira] Created: (MRELEASE-642) prepare tags the wrong source
Date Fri, 04 Feb 2011 11:12:22 GMT
prepare tags the wrong source

                 Key: MRELEASE-642
             Project: Maven 2.x Release Plugin
          Issue Type: Bug
          Components: prepare
    Affects Versions: 2.1
            Reporter: Anthony O.

The use case is mostly defined [here|]

Here is our svn structure :
 +- docs/
 +- dev/
     +- project-parent/
         +- pom.xml
     +- project-war/
         +- pom.xml

When preparing the release ({{mvn release:prepare-with-pom}}), I want to tag {{trunk/dev/}}
into {{releases/project-<release-version>/}}.

The parent {{pom.xml}} is like this :


My working copy {{/home/user/project}} is checked out from {{}}.

When doing {{mvn release:prepare-with-pom -DdryRun=true}}, it says me that :
[INFO] Full run would be tagging working copy /home/user/project/dev with label: 'project-<release-version>'

But, when removing {{-DdryRun=true}}, here is what the plugin does :
[INFO] Executing: /bin/sh -c cd /home/user/project/dev/project-parent && svn --non-interactive
commit --file /tmp/maven-scm-1922580928.commit --targets /tmp/maven-scm-8496598021737984450-targets
[INFO] Working directory: /home/user/project/dev/project-parent
[INFO] Tagging release with the label project-<release-version>...
[INFO] Executing: /bin/sh -c cd /home/user/project/dev && svn --non-interactive copy
--file /tmp/maven-scm-982655546.commit --revision <revision><release-version>
[INFO] Working directory: /home/user/project/dev

So, with {{dryRun}} we think that it is {{trunk/dev}} which will be tagged, and when doing
a real prepare, it is finally {{trunk/}} which is tagged, and *this is not espected*.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message