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

connectionUrl and developerConnectionUrl does not work when within execution tag

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 1.9.5
    • Fix Version/s: None
    • Component/s: maven-plugin
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              ddiehl Daniel Diehl

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment