[ https://jira.codehaus.org/browse/MRELEASE-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte updated MRELEASE-642: ------------------------------------ Component/s: (was: prepare) prepare-with-pom > prepare tags the wrong source > ----------------------------- > > Key: MRELEASE-642 > URL: https://jira.codehaus.org/browse/MRELEASE-642 > Project: Maven 2.x Release Plugin > Issue Type: Bug > Components: prepare-with-pom > Affects Versions: 2.1 > Reporter: Anthony O. > > The use case is mostly defined > [here|http://stackoverflow.com/questions/4856364/tagging-sub-trunk-directory-when-releasing-with-maven-using-svn] > Here is our svn structure : > {noformat} > trunk/ > +- docs/ > +- dev/ > +- project-parent/ > +- pom.xml > +- project-war/ > +- pom.xml > releases/ > {noformat} > 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 : > {noformat} > <build> > <plugins> > <plugin> > <artifactId>maven-release-plugin</artifactId> > <version>2.1</version> > <configuration> > > <tagBase>http://svn.mycompany.com/svn/project/releases</tagBase> > <generateReleasePoms>false</generateReleasePoms> > <autoVersionSubmodules>true</autoVersionSubmodules> > </configuration> > </plugin> > </plugins> > </build> > <scm> > > <connection>scm:svn:http://svn.mycompany.com/svn/project/trunk/dev</connection> > > <developerConnection>scm:svn:http://svn.mycompany.com/svn/project/trunk/dev</developerConnection> > <url>scm:svn:http://svn.mycompany.com/svn/project/trunk/dev</url> > </scm> > {noformat} > My working copy {{/home/user/project}} is checked out from > {{http://svn.mycompany.com/svn/project/trunk/}}. > When doing {{mvn release:prepare-with-pom -DdryRun=true}}, it says me that : > {noformat} > [INFO] Full run would be tagging working copy /home/user/project/dev with > label: 'project-<release-version>' > {noformat} > But, when removing {{-DdryRun=true}}, here is what the plugin does : > {noformat} > [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> http://svn.mycompany.com/svn/project/trunk > http://svn.mycompany.com/svn/project/releases/project-<release-version> > [INFO] Working directory: /home/user/project/dev > {noformat} > 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, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira