Why do maven-release-plugin change pom.xml formatting?

Viewed 369

I'm using maven-release-plugin version 2.4.1, and after executing goal mvn release:prepare -DpreparationGoals="clean deploy -Dmaven.test.skip" I found that not only version of my application has been changed, but also it adds a space in confuguration in maven-antrun-plugin:

      <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>

Space added right between "com.project.HelloWorld" and slash. Issue lies in that fact, that xml-format-plugin remove this space after Maven build, but after each release I see this annoying space again.

Does anybody know why this happened or how to overcome this issue?

1 Answers
Related