maven-scm-plugin configuration is ignored if executions present
---------------------------------------------------------------

                 Key: MPSCM-98
                 URL: http://jira.codehaus.org/browse/MPSCM-98
             Project: Maven 1.x SCM Plugin
          Issue Type: Bug
         Environment: Maven version: 2.0.7
Java version: 1.6.0_01

            Reporter: jason harrop
            Priority: Minor


If I don't use the <executions> element, the embedded configuration is used.

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-scm-plugin</artifactId>
        <version>1.0</version>
        <configuration>
                <connectionUrl>
                        scm:svn:http://dev.plutext.org/svn/docx4j/trunk/docx4j
                </connectionUrl>
                <checkoutDirectory>docx4j</checkoutDirectory>
                <goals>validate</goals>
        </configuration>
      </plugin>

However, I would like to checkout 2 modules from each of 2 different 
repositories.

If I introduce <executions>, the plugin doesn't read the embedded 
configuration.  Instead, it falls back to what is defined in the <scm> element 
(or if none exists, the super pom).

Here is what I have trying:

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-scm-plugin</artifactId>
        <version>1.0</version>
                        <configuration>
                                <skipCheckoutIfExists />
                        </configuration>
        <executions>
                <execution>
                        <id>checkout-docx4j</id>
                        <configuration>
                                <connectionUrl>
                                        
scm:svn:http://dev.plutext.org/svn/docx4j/trunk/docx4j
                                </connectionUrl>
                                <checkoutDirectory>docx4j</checkoutDirectory>
                        </configuration>
                        <goals>
                                <goal>validate</goal>
                        </goals>
                </execution>
                <execution>
                        <id>checkout-jackrabbit-webapp</id>
                        <configuration>
                                <connectionUrl>
                                        
scm:svn:http://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-webapp
                                </connectionUrl>
                                <checkoutDirectory>
                                        jackrabbit-webapp
                                </checkoutDirectory>
                        </configuration>
                        <goals>
                                <goal>validate</goal>
                        </goals>
                </execution>
        </executions> 
      </plugin>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to