maven scm plugin deleting output folder in every execution

Posted by Udo Fholl on Stack Overflow See other posts from Stack Overflow or by Udo Fholl
Published on 2010-05-06T08:04:46Z Indexed on 2010/05/06 8:08 UTC
Read the original article Hit count: 325

Filed under:
|
|
|
|

Hi all,

I need to download from 2 different svn locations to the same output directory. So i configured 2 different executions. But every time it executes a checkout deletes the output directory so it also deletes the already downloaded projects.

Here is a sample of my pom.xml: <profiles>
<profile>
<id>checkout</id>
<activation>
<property>
<name>checkout</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.3</version>
<configuration>
<username>${svn.username}</username>
<password>${svn.pass}</password>
<checkoutDirectory>${path}</checkoutDirectory>
<skipCheckoutIfExists />
</configuration>
<executions>
<execution>
<id>checkout_a</id>
<configuration>
<connectionUrl>scm:svn:https://host_n/folder</connectionUrl>
<checkoutDirectory>${path}</checkoutDirectory>
</configuration>
<phase>process-resources</phase>
<goals>
<goal>checkout</goal>
</goals>
</execution>
<execution>
<id>checkout_b</id>
<configuration>
<connectionUrl>scm:svn:https://host_l/anotherfolder</connectionUrl>
<checkoutDirectory>${path}</checkoutDirectory>
</configuration>
<phase>process-resources</phase>
<goals>
<goal>checkout</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

Is there any way to prevent the executions to delete the folder ${path} ?

Thank you.

PS: I cant format the pom.xml fragment correctly, sorry!

© Stack Overflow or respective owner

Related posts about maven

Related posts about scm