Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-861

connectionUrl and developerConnectionUrl does not work when within execution tag

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.9.5
    • None
    • maven-plugin
    • None

    Description

      The connectionUrl and developerConnectionUrl works properly when not tied to an execution tag. But Fails when within one execution tag.

      This works:

       

      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-scm-plugin</artifactId>
         <version>1.9.5</version>
      
         <configuration>
            <connectionUrl>scm:svn:http://myhost/svn/publicResources</connectionUrl>
            <recursive>false</recursive>
            <useExport>true</useExport>
            <connectionType>connection</connectionType>
            <exportDirectory>${basedir}/target/externalResources</exportDirectory>
         </configuration>
      </plugin>
      

       

      And This does not work:

      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-scm-plugin</artifactId>
         <version>1.9.5</version>
      
         <executions>
            <execution>
               <id>ROOT</id>
               <goals>
                  <goal>export</goal>
               </goals>
               <configuration>
                  <connectionUrl>scm:svn:http://myhost/svn/publicResources</connectionUrl>
                  <recursive>false</recursive>
                  <useExport>true</useExport>
                  <connectionType>connection</connectionType>
                  <exportDirectory>${basedir}/target/externalResources</exportDirectory>
               </configuration>
            </execution>
         </executions>
      </plugin>
      

      executing: mvn scm:export.

       

      The run within execution tags uses the default value instead of connectionUrl.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            ddiehl Daniel Diehl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: