Maven plugin output is missing newlines

Hi,

The gatling-maven-plugin 1.4.4 output doesn’t contain newlines for some reason. I’ve got the same problem on Mac OS X and CentOS.

On 1.4.3, if I run

mvn clean test -Dgatling.simulation=foo

on my project, I get

[INFO] — gatling-maven-plugin:1.4.2:execute (default) @ platform-performance-tests —

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at scala_maven_executions.MainHelper.runMain(MainHelper.java:164)
at scala_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)
Caused by: java.lang.ClassNotFoundException: foo

If I modify my POM and change the plugin to version 1.4.4, I get

[INFO] — gatling-maven-plugin:1.4.4:execute (default) @ platform-performance-tests —

java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at scala_maven_executions.MainHelper.runMain(MainHelper.java:164) at scala_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)Caused by: java.lang.ClassNotFoundException: foo

This is happening to logback output as well. A custom logback-test.xml doesn’t help.

My pom.xml is available on http://pastebin.com/MvfMMmmD.

Any thoughts?

Thanks,
Emerson

Hi,

Why have you excluded logback-classic? That’s the logging library.

Stéphane

Hi,

I didn’t exclude logback myself, that’s how the Maven archetype generates a Gatling project.

mvn archetype:generate -DarchetypeGroupId=com.excilys.ebi.gatling.highcharts -DarchetypeVersion=1.4.4 -DarchetypeArtifactId=gatling-highcharts-maven-archetype -DarchetypeRepository=http://repository.excilys.com/content/groups/public

At any rate, removing the exclusion doesn’t fix the formatting.

Emerson

I’ve also eliminated anything specific to my project causing this, pulled the sources of 1.4.4 and 1.4.3 and poked around.

From that, I’ve gotten as far as finding out that newlines are shown correctly with -Dgatling.propagateSystemProperties=false, but not correctly with -Dgatling.propagateSystemProperties=true, which is the default in 1.4.4.

Is some code getting confused as to the proper line endings for OS X/Linux?

Thanks,
Emerson

I think I’ve found it! I think picking the System property line.separator valu and passing it in the command line simply broke it.
https://github.com/excilys/gatling/issues/1003

Thanks for reporting,

Stéphane