Hi Marc. Thanks for the quick reply.
I'm configuring the client on JaCoCo Maven plugin like this:
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.6.2.201302030002</version>
<executions>
<execution>
<id>agent</id>
<phase>pre-integration-test</phase>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<propertyName>jacoco.arg.argLine</propertyName>
<classDumpDir>${project.build.directory}/classes/</classDumpDir>
<includes>
<include>my.company.*</include>
</includes>
<excludes>
<exclude>my.company.test*</exclude>
</excludes>
<output>tcpclient</output>
<address>localhost</address>
<port>6300</port>
</configuration>
</execution>
<execution>
<id>report</id>
<phase>post-integration-test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
And using ${jacoco.arg.argLine} as argLine to run the tests on Failsafe Plugin. So I'm using default destfile parameter.
I even tried to set "dumponexit" parameter to false on server ('cause I'm not stopping it after the test), but I got a CORBA exception saying that my EJB object doesn't exists. But if I run the tests with the default argLine (not setting tcpclient), they run OK, but I get that "_REMOTE_STUB_CLASS_" on my report (and I'm not able to see which lines I've covered).
Do I need to implement the client?
I mean, I think Maven plugins must be independent of the project (more generic, you know?).
And implementing a client to use the JaCoCo plugin is quiet an inconvenient.
I'm not complaining here! Don't get me wrong, I'm trying to suggest an improvement.
I tried the same configuration on my Glassfish 3 server at home, and I got the same "Socket closed" problem :S
It looks like it's closing the connection right after tests execution, and when it tries to write the *.exec file, the client fails, since it has no connection.
Best regards,
Alexandre L.A. Souza