gpt4 book ai didi

svn - Jenkins、Maven 发布插件和 SVN

转载 作者:行者123 更新时间:2023-12-03 22:49:35 25 4
gpt4 key购买 nike

我正在使用 Maven Release Plugin for Jenkins 发布。我收到以下错误:

    message : Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.2.2:prepare (default-cli) on project kobv-albert-frontend-dkfz: Unable to check for local modifications
Provider message:
The svn command failed.
Command output:
svn: E155036: Please see the 'svn upgrade' command
svn: E155036: Working copy '/var/lib/jenkins/jobs/svn-lokal-dkfz/workspace' is too old (format 10, created by Subversion 1.6)

cause : Unable to check for local modifications
Provider message:
The svn command failed.
Command output:
svn: E155036: Please see the 'svn upgrade' command
svn: E155036: Working copy '/var/lib/jenkins/jobs/svn-lokal-dkfz/workspace' is too old (format 10, created by Subversion 1.6)

Stack trace :
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.2.2:prepare (default-cli) on project kobv-albert-frontend-dkfz: Unable to check for local modifications
Provider message:
The svn command failed.
Command output:
svn: E155036: Please see the 'svn upgrade' command
svn: E155036: Working copy '/var/lib/jenkins/jobs/svn-lokal-dkfz/workspace' is too old (format 10, created by Subversion 1.6)

我试过 svn upgrade但它没有帮助。我也尝试了不同版本的 maven-release-plugin :

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.2.2</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.7</version>
</dependency>
</dependencies>
</plugin>

它也没有帮助。什么可能导致这种情况,我该如何解决?

最佳答案

我有类似的问题。我通过对 jenkins 使用的发布插件使用相同的 svn-client 解决了这个问题。

<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<providerImplementations>
<svn>javasvn</svn>
</providerImplementations>
</configuration>
<dependencies>
<dependency>
<groupId>com.google.code.maven-scm-provider-svnjava</groupId>
<artifactId>maven-scm-provider-svnjava</artifactId>
<version>2.0.6</version>
<scope>compile</scope>
</dependency>
</dependencies>
</plugin>

但是您必须在配置后清理一次工作工作区。

关于svn - Jenkins、Maven 发布插件和 SVN,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18589383/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com