How does the prepare agent goal work in Maven when you want to connect to
it remotely?
This is what I had in mind. I will build my application with Maven and use
jacoco-maven-plugin as a dependency. But when this jacoco agent will be on
the server side (remotely), I need to connect to it. Can this be done with
my local Maven (not connecting but enabling those properties) via the
prepare-agent, e.g. in the pom file:
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</version>
<executions>
<execution>
<id>jacoco-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<phase>test</phase>
<configuration>
<address>0.0.0.0</address>
<port>5000</port>
<output>tcpserver</output>
<append>false</append>
<dumpOnExit>false</dumpOnExit>
</configuration>
</execution>
or do I need sort of create a script similar to "java -javaagent:
*[yourpath/]*jacocoagent.jar=*[option1]*=*[value1]*,*[option2]*=*[value2]?*"
that will listen in my docker container?
And then, I just dump the coverage file by using the jacococli.jar
application by connecting to the agent.
So the question is: is it possible to achieve to have an agent via
dependency and some configuration in my local Maven to have this agent
listening on some address and port without copying the agent directly into
the application with preconfigured parameters?
--
You received this message because you are subscribed to the Google Groups
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/aa77fbe3-9232-4367-b711-93761e848ec1%40googlegroups.com.