we found a workaround by removing the argLine settings in the java 9 maven profile, we are still not sure why this overrding the jacoco arg.
since assertj-core development continues, I have created a *jacoco* branch to reproduce the issue (don't use master branch anymore). On Sun, Dec 1, 2019 at 7:17 PM <joel.costigli...@gmail.com> wrote: > Hi, > > I'm the lead developer of AssertJ Core and I could use a bit of help > trying to identify why jacoco is missing the execution data file. > It is likely something misconfigured but I can't put my finger on it. > > You should be able to reproduce the issue by cloning > https://github.com/joel-costigliola/assertj-core and executing > > mvn clean jacoco:prepare-agent package jacoco:report > -Dtest=StandardRepresentation_toStringOf_Test > > (you can execute all the tests but there are more than 1000 so executing > just one is way quicker). > > I have verified that I was surefire plugin was configured with forkCount = > 1 (so not 0). > The build run jacoco prepare-agent which outputs > > [INFO] argLine set to > -javaagent:/home/joel/.m2/repository/org/jacoco/org.jacoco.agent/0.8.5/org.jacoco.agent-0.8.5-runtime.jar=destfile=/home/joel/prog/assertj/assertj-core-3.x/target/jacoco.exec,excludes=**/*hamcrest*/** > --add-opens java.base/java.lang=ALL-UNNAMED --add-opens > java.base/java.util=ALL-UNNAMED > --add-opens > java.base/java.io=ALL-UNNAMED --add-opens java.base/java.math=ALL-UNNAMED > > I have executed the build in debug and found that surefire argline did not > show jacoco destfile setting, I'm not sure if that's a problem ... > > argLine = --add-opens java.base/java.lang=ALL-UNNAMED --add-opens > java.base/java.util=ALL-UNNAMED > --add-opens > java.base/java.io=ALL-UNNAMED --add-opens > java.base/java.math=ALL-UNNAMED > > > My environment looks like: > > Maven home: /home/joel/prog/apache-maven-3.5.3 > Java version: 11.0.2, vendor: Oracle Corporation > Java home: /home/joel/.sdkman/candidates/java/11.0.2-open > Default locale: en_NZ, platform encoding: UTF-8 > OS name: "linux", version: "4.4.0-169-generic", arch: "amd64", family: > "unix" > > > Any help would be welcome as I'm running out of ideas. > > Cheers > > Joel Costigliola > > -- > You received this message because you are subscribed to a topic in the > Google Groups "JaCoCo and EclEmma Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/jacoco/8eQQzVXMIjs/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > jacoco+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/48ec4077-1931-4227-959f-1effd6e72d14%40googlegroups.com > <https://groups.google.com/d/msgid/jacoco/48ec4077-1931-4227-959f-1effd6e72d14%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/CAC0j%3DP1%3Dame36GJrhZZrGhd_PqnCk3KFFuYVZL5czyGajM_GDA%40mail.gmail.com.