maven scm plugin deleting output folder in every execution
- by Udo Fholl
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!