I would like to tell to Eclipse to do not format pom.xml
property(ies).
In my example, I append a long proxyString argument to maven release plugin:
</build>
</plugins>
(...)
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.2</version>
<!-- in case of error while release prepare or dryRun release :
check proxyString should be on one line (withour CR) -->
<configuration>
<arguments>${proxyString}</arguments>
</configuration>
</plugin>
</plugins>
</build>
When I reformat the pom.xml
, Eclipse append some Carriage Returns to that definition :
<profile>
<id>proxy</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<proxyString>-Djava.net.useSystemProxies=true -Dhttp.proxyHost=myProxy -Dhttp.proxyPort=3128 -Dhttps.proxyHost=myProxy -Dhttps.proxyPort=3128</proxyString>
</properties>
</profile>
This result in a break into the release lifecycle:
No goals have been specified for this build. You must specify a valid lifecycle phase
Does exist a way to tell Eclipse to not format a portion of a pom.xml ? (or maybe there is a better way to forward proxy settings to maven release plugin).
I know this question is really close to mine, but I didn't found how to apply it to xml file.