Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-855

Plugin does not support multiple SVN repositories

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.4.2
    • None
    • prepare
    • 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:

      1. Each module resided in its own repository with its own revision
      2. 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

          Activity

            People

              rfscholte Robert Scholte
              renatodelgaudio Renato Del Gaudio
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: