I'm trying to create a release with the Maven Release Plugin, and it seems as if the tagBase setting is being completely ignored.
Here's what my pom looks like:
...
<scm>
<developerConnection>scm:svn:http://svn.server/svn/repos/.../project/trunk</developerConnection>
</scm>
...
<build>
...
<plugins>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<tagBase>http://svn.server/svn/repos/.../project/branches</tagBase>
</configuration>
</plugin>
</plugins>
</build>
...
And here's the mvn release command I'm running:
mvn release:prepare
I initially tried this with the -DdryRun=true option, and noticed that the pom.xml.tag file that got generated by the dry run was referencing the .../project/tags/ directory instead of the .../projects/branches/ directory specified in the tagBase. I tried this without the dry run, and the results were the same. The release was created in the tags directory in my SVN repository instead of in the branches directory per the tagBase setting in the pom.
Why is tagBase being ignored? How can I get the maven release plugin to create the release under .../project/branches/ instead of .../project/tags/?
Edit - Adding Some Additional Information:
I'm using version 2.5.3 of maven-release-plugin and Maven version 3.3.9.
After running the mvn release:prepare -DdryRun=true command, here's what the generated release.properties and pom.xml.tag files look like:
release.properties:
#release configuration
#Thu Aug 25 09:07:24 EDT 2016
scm.tagNameFormat=@{project.artifactId}-@{project.version}
scm.tag=project-1.0.0
project.scm.group.id\:project.tag=HEAD
pushChanges=true
scm.url=scm\:svn\:http\://svn.server/svn/repos/.../project/trunk
preparationGoals=clean verify
remoteTagging=true
projectVersionPolicyId=default
scm.commentPrefix=[maven-release-plugin]
scm.tagBase=http\://svn.server/svn/repos/.../project/branches
project.scm.group.id\:project.developerConnection=scm\:svn\:http\://svn.server/svn/repos/.../project/trunk
project.dev.group.id\:project=1.0.1-SNAPSHOT
project.rel.group.id\:project=1.0.0
exec.snapshotReleasePluginAllowed=false
exec.additionalArguments=-P my-active-profile
completedPhase=end-release
pom.xml.tag:
...
<scm>
<developerConnection>scm:svn:http://svn.server/svn/repos/.../project/tags/project-1.0.0</developerConnection>
</scm>
...
It looks like the scm.tagBase property is correct in the generated release.properties file, but the scm information in pom.xml.tag still references the tags directory instead of branches.
mvn release:clean release:prepare -DdryRun=true, this will make sure therelease.propertiesandpom.xml.tagare recreated. - Tunakimvn release:preparecommands I've tried, I've been running anmvn release:clean, but it still seems to be ignoring thetagBasesetting. - Josh