是否为Maven设置条件签出或从SVN更新?

是否为Maven设置条件签出或从SVN更新?,maven,svn,svn-checkout,Maven,Svn,Svn Checkout,我在POM文件中有以下设置。但是我的生成脚本失败,出现“SVN file locked”消息。是否有其他方法进行条件签出。如果项目已签出,则我只想更新,否则,如果项目未签出,则应签出代码,不应更新。提前感谢 <!-- Initial check out of (will not do anything if directory already there) --> <execution> <id>check-out-p

我在POM文件中有以下设置。但是我的生成脚本失败,出现“SVN file locked”消息。是否有其他方法进行条件签出。如果项目已签出,则我只想更新,否则,如果项目未签出,则应签出代码,不应更新。提前感谢

      <!-- Initial check out of  (will not do anything if directory already there) -->
      <execution>
        <id>check-out-project</id>
        <phase>generate-sources</phase>
        <goals>
          <goal>checkout</goal>
        </goals>
        <configuration>
          <checkoutDirectory>${project.build.directory}/project</checkoutDirectory>
          <connectionUrl>scm:svn:http://XX:XX/svn/repos/${XX}</connectionUrl>
          <username>${svn.username}</username>
          <password>${svn.password}</password>
          <skipCheckoutIfExists>true</skipCheckoutIfExists>
        </configuration>
      </execution>
      <!-- Update project (if directory was already there) -->
      <execution>
        <id>update-project</id>
        <phase>generate-sources</phase>
        <goals>
          <goal>update</goal>
        </goals>
        <configuration>
          <basedir>${project.build.directory}/project</basedir>
          <connectionUrl>scm:svn:http://XXX:XXX/svn/repos/${project}</connectionUrl>
          <username>${svn.username}</username>
          <password>${svn.password}</password>
          <revisionKey>project.revision</revisionKey>
        </configuration>
      </execution>
首轮

mvn clean
这次跑步之后

mvn scm:update

在运行mvn-e之后,您可以发布maven日志的相关部分吗?消息
[INFO]Svn命令由于工作副本中的一些锁而失败。我们尝试运行“sv n清理”。
看起来您的工作副本已与其他客户端并行访问。
mvn scm:update