私たちはプロジェクトをSVNからGitに移行しようとしています。 Maven Release Pluginをmvn release:prepare
とmvn release:perform
パッケージにしました。Maven Release PluginをSVNからGitに移行するには?
それに加えて、私たちはgitリポジトリを指すようにpom.xmlファイルのscmプロパティを変更しています。
はしかし、我々はmvn release:prepare
を実行すると、次のエラーを取得:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.1:prepare (default-cli) on project MyProject: Unable to check for local modifications
[ERROR] Provider message:
[ERROR] The svn command failed.
[ERROR] Command output:
[ERROR] 'svn' is not recognized as an internal or external command,
[ERROR] operable program or batch file.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
なぜそれがまだ
cmd.exe /X /C "svn --non-interactive status"
を実行しようとしている
? このリリースプロセスで完全に移行するには、他にどのような設定が必要ですか?
コンテキストのための私のpom.xmlの詳細は:
<scm>
<connection>scm:git:https://myGitProjectUrl.git</connection>
<developerConnection>scm:git:https://myGitProjectUrl.git</developerConnection>
<url>https://myGitProjectUrl</url>
</scm>
...
<build>
<plugins>
<!-- Maven Release Plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<goals>deploy</goals>
</configuration>
</plugin>
とgitのscmのURLでPOMファイル? –
@RishikeshDarandale、良い質問です。はい、今私はトリプルチェックして確認しています。私はpom.xmlを含むローカルフォルダからコマンドを実行しています。フォルダは正しいプロジェクトであり、適切なgit repoと一致します。 – AlexScript
すべてがうまく見えます。プラグインのバージョンを '2.5.3'に更新してみてください。 –