[ 
https://issues.apache.org/jira/browse/SCM-861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17963415#comment-17963415
 ] 

ASF GitHub Bot commented on SCM-861:
------------------------------------

jira-importer opened a new issue, #1091:
URL: https://github.com/apache/maven-scm/issues/1091

   **[Daniel 
Diehl](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ddiehl)** 
opened 
**[SCM-861](https://issues.apache.org/jira/browse/SCM-861?redirect=false)** and 
commented
   
   The connectionUrl and developerConnectionUrl works properly when not tied to 
an execution tag. But Fails when within one execution tag.
   
   This works:
   
    
   
   ```java
   <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:
   
   ```java
   <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.
   
    
   
   
   ---
   
   **Affects:** 1.9.5
   




> connectionUrl and developerConnectionUrl does not work when within execution 
> tag
> --------------------------------------------------------------------------------
>
>                 Key: SCM-861
>                 URL: https://issues.apache.org/jira/browse/SCM-861
>             Project: Maven SCM (Moved to GitHub Issues)
>          Issue Type: Bug
>          Components: maven-plugin
>    Affects Versions: 1.9.5
>            Reporter: Daniel Diehl
>            Priority: Major
>
> The connectionUrl and developerConnectionUrl works properly when not tied to 
> an execution tag. But Fails when within one execution tag.
> This works:
>  
> {code:java}
> <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>
> {code}
>  
> And This does not work:
> {code:java}
> <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>
> {code}
> executing: _mvn scm:export._
>  
> The run within execution tags uses the default value instead of connectionUrl.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to