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

Guillaume Boué commented on SCM-861:
------------------------------------

This is expected. When you're running {{mvn scm:export}}, your {{ROOT}} 
execution is not being used, instead it is a default one that is used. In the 
first case, {{connectionUrl}} is set in the configuration of all executions, so 
it is also used by the default one. However in the second case, only {{ROOT}} 
execution has the {{connectionUrl}} set.

Since Maven 3.3.1, you could use {{mvn scm:export@ROOT}} in the second case.

> 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
>          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
(v7.6.3#76005)

Reply via email to