Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.4.2
-
None
-
None
Description
I have a multi modules project that uses several different repositories.
e.g.
Repository 1: https://hostname/svn/A
Repository 2: https://hostname/svn/B
Repository 3: https://hostname/svn/C
Module A (Master build): https://hostname/svn/A/moduleA
Module B: https://hostname/svn/B/moduleB
Module C: https://hostname/svn/C/moduleC
IMPORTANT:
- Each module resided in its own repository with its own revision
- Module B and C are children maven projects of module A
Running release:prepare the plugin fails while trying to tag the repositories because it tries to use the same revision number (the one from the last module) for all.
The plugin is configured centrally in the parent pom in a paremetric way.
The property software.id is the key that differentiate the repository within the scm section that is the only part overwritten in the single child projects
<properties> <software.id>A</software.id> </properties> <scm> <connection>scm:svn:${scm.baseurl}/${software.id}/${scm.connection.version}/${project.artifactId}</connection> <url>${scm.baseurl}/${software.id}/${scm.connection.version}/${project.artifactId}</url> <developerConnection>scm:svn:${scm.baseurl}/${software.id}/${scm.connection.version}/${project.artifactId}</developerConnection> </scm> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.4</version> <configuration> <commitByProject>true</commitByProject> <useReleaseProfile>false</useReleaseProfile> <preparationGoals>clean</preparationGoals> <tagNameFormat>MyProject_@{project.version}</tagNameFormat> <providerImplementations> <svn>javasvn</svn> </providerImplementations> </configuration> <dependencies> <dependency> <groupId>com.google.code.maven-scm-provider-svnjava</groupId> <artifactId>maven-scm-provider-svnjava</artifactId> <version>2.0.5</version> </dependency> <dependency> <groupId>org.tmatesoft.svnkit</groupId> <artifactId>svnkit</artifactId> <version>1.7.6</version> </dependency> <dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-scm-plugin</artifactId> <version>1.8.1</version> </dependency> </dependencies> </plugin>
Attachments
Issue Links
- duplicates
-
MRELEASE-362 Support tagging nested projects
- Reopened