I’m using Maven 3 and Subversion and make releases using mvn release:prepare. Our SVN setup and layout is standard. However, when we do this the directory structure that’s copied into the /tags directory under the new tag name is the full “trunk / branches / tags” followed by everything below it rather than just the specific trunk / branch where I run this command from.
I.e.
- I create a fresh local workspace directory
- I cd into this new directory
- I do a checkout of the trunk into this directory:
svn checkout http://svn-server-01:8090/svn/our-project/trunk/our-master --username myuid --password mypassword - I cd into the master maven project just checked out: cd our-master
- I run a dry run: mvn release:prepare -DdryRun=true
- I run a clean: mvn release:clean
- I run the release prepare proper: mvn release:prepare and make a new “0.2” tag
- I look at SVN and see:
tags -> 0.1 -> tags -> empty
-> branches -> empty
-> trunk -> 0.2 version of the trunk
branches -> empty
trunk -> 0.2-SNAPSHOT
It sound like you scm configuration in your pom is incorrect. It should look like this:
in particular connection and developerConnection.