私はmaven-release-plugin
バージョン2.4.1を使用していて、目標mvn release:prepare -DpreparationGoals="clean deploy -Dmaven.test.skip"
を実行した後、私は自分のアプリケーションのだけではないバージョンが変更されていることがわかったが、また、それはmaven-antrun-plugin
でconfugurationにスペースを追加します。maven-release-pluginがpom.xmlの書式を変更するのはなぜですか?
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>initialize</phase>
<configuration>
<tasks>
<delete includeEmptyDirs="true" dir="com.project.HelloWorld"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
スペース"com.project.HelloWorld"
とスラッシュの間に追加されました。問題はその事実にあります。つまり、xml-format-plugin
はMavenビルド後にこのスペースを削除しますが、リリースごとにこの厄介なスペースが再び表示されます。
誰がこのようなことが起こったのか、この問題を克服する方法を知っていますか?
xml-format-pluginがmaven-release-pluginに関連するのはなぜですか?それ以外の[maven-release-plugin](http://maven.apache.org/maven-release/maven-release-plugin/)の最新バージョンを使うべきです。さらに 'release:prepare'を呼び出すと、準備目標などを呼び出す必要があります。 – khmarbaise
「HelloWorld」と「/>」の間にスペースがある問題はありますか? –
Jenkinsのパイプラインでは、ビルドリポジトリの後に変更が加えられていないことを確認しています。 – stinger