Reputation: 40356
My pom file has embedded groovy source. When I format the xml using Eclipse Source>Format, it introduces linebreaks into the groovy source which breaks it. How can I best resolve this?
Update: The groovy is in
<build>
<plugins>
<plugin>
<execution>
<configuration>
<source>
and it appears to write a mangled version of the project.version to the manifest file. I didn't write it.
Upvotes: 0
Views: 433
Reputation: 97537
I have taken a look into the docs of the gmaven-plugin which gives you examples like this (stolen from their web-site):
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source>${basedir}/src/main/script/myscript.groovy</source>
</configuration>
</execution>
</executions>
</plugin>
Upvotes: 1