Get a new "jacocoagent.jar".

27 views
Skip to first unread message

volcano voco

unread,
Jul 13, 2022, 4:51:30 AM7/13/22
to JaCoCo and EclEmma Users
I downloaded the source code, changed some methods, and I wanted to recompile the package to generate jacocoagent.jar. I see that the size of jacocoagent.jar released by jacococo is about 286 KB, but my maven report does not generate jacocoagent.jar.

volcano voco

unread,
Jul 13, 2022, 4:57:31 AM7/13/22
to JaCoCo and EclEmma Users
when i package the module `org.jacoco.agent.rt`, just get:

20220713-165611.png 

how i get a new `jacocoagent.jar` ?

Thanks.

Evgeny Mandrikov

unread,
Jul 13, 2022, 5:18:47 AM7/13/22
to jac...@googlegroups.com

org.jacoco.agent/target/classes/jacocoagent.jar

--
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 jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/e5383abc-2f6f-4d60-bb79-8be5d03046dbn%40googlegroups.com.
--
Regards,
Evgeny

volcano voco

unread,
Jul 13, 2022, 5:52:33 AM7/13/22
to JaCoCo and EclEmma Users
I get it.
In jacoco release dir 'lib` ,the jacocoagent.jar is about 286 KB, but the jar i get by mvn is about 2543 KB. how i get a smaller jar?

Thanks.

volcano voco

unread,
Jul 13, 2022, 5:53:50 AM7/13/22
to JaCoCo and EclEmma Users
1.png

Evgeny Mandrikov

unread,
Jul 13, 2022, 6:03:31 AM7/13/22
to jac...@googlegroups.com
You haven't described how you build locally,
so let me point you to the JaCoCo documentation

that describes how we build it on our machines and in our CI. By following commands from the above page locally I'm getting JAR of a desired size.

--
Regards,
Evgeny

Evgeny Mandrikov

unread,
Jul 13, 2022, 6:05:46 AM7/13/22
to jac...@googlegroups.com
Moreover you haven't described which modifications you've done locally, so maybe increase of a size is a result of your modifications 😉
--
Regards,
Evgeny

Reply all
Reply to author
Forward
0 new messages