You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Lukas Theussl (JIRA)" <ji...@codehaus.org> on 2007/11/23 08:55:57 UTC

[jira] Moved: (SCM-353) maven-scm-plugin configuration is ignored if executions present

     [ http://jira.codehaus.org/browse/SCM-353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukas Theussl moved MPSCM-98 to SCM-353:
----------------------------------------

    Complexity: Intermediate
      Workflow: Maven New  (was: jira)
           Key: SCM-353  (was: MPSCM-98)
       Project: Maven SCM  (was: Maven 1.x SCM Plugin)

> maven-scm-plugin configuration is ignored if executions present
> ---------------------------------------------------------------
>
>                 Key: SCM-353
>                 URL: http://jira.codehaus.org/browse/SCM-353
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-plugin
>         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