M1 Tip #3: Prevent new lines on console

When you use Jelly expressions in your plugin.jelly or maven.xml files without wrapping them in a Jelly tag you'll discover that new lines are printed in the console.

For example, the following will print some new lines:

${context.setVariable('myvar', value)}

To prevent these new lines from being printed, wrap the expression in a j:expr tag. For example:

<j:expr value="${context.setVariable('myvar', value)}"/>