liruixl commented on issue #14321:
URL: https://github.com/apache/pulsar/issues/14321#issuecomment-1042545751
@nicoloboschi @sijie , It seems to work,relevant log output:
...
INFO]
[INFO] ----------------------< org.apache.pulsar:pulsar
>----------------------
[INFO] Building Pulsar 2.10.0-SNAPSHOT
[2/2]
[INFO] --------------------------------[ pom
]---------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @
pulsar ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven) @ pulsar
---
[INFO]
[INFO] --- directory-maven-plugin:1.0:directory-of (directories) @ pulsar ---
[INFO] Directory of org.apache.pulsar:pulsar set to:
/Users/lirui40/Code/apache-pulsar/pulsar
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.7:prepare-agent (pre-unit-test) @ pulsar
---
[INFO] testJacocoAgentArgument set to
-javaagent:/Users/lirui40/.m2/repository/org/jacoco/org.jacoco.agent/0.8.7/org.jacoco.agent-0.8.7-runtime.jar=destfile=/Users/lirui40/Code/apache-pulsar/pulsar/target/jacoco.exec
[INFO]
[INFO] --- maven-assembly-plugin:3.3.0:single
(source-release-assembly-tar-gz) @ pulsar ---
[INFO] Assemblies have been skipped per configuration of the skipAssembly
parameter.
[INFO]
[INFO] --- maven-remote-resources-plugin:1.7.0:process
(process-resource-bundles) @ pulsar ---
[INFO] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4
[INFO] Copying 3 resources from 1 bundle.
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.7:report (post-test) @ pulsar ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO]
[INFO] --- maven-site-plugin:3.7.1:attach-descriptor (attach-descriptor) @
pulsar ---
[INFO] No site descriptor found: nothing to attach.
[INFO]
[INFO] --- license-maven-plugin:4.0.rc2:check (default) @ pulsar ---
[INFO] Checking licenses...
...
But this line `Skipping JaCoCo execution due to missing execution data
file.` troubles me.
---
For a quick test, i modify the profile `core-moudles` in pom.xml, only keep
one modules(buildtools):
`xml
<profile>
<id>core-modules</id>
<modules>
<module>buildtools</module>
</modules>
...
</profile>
`
After that, i run `verify -Pcore-modules,coverage,-main`, jacoco works, but
why it missing exec file?
Go futher, I just saw that jacoco works in [2/2] step( Building Pulsar
2.10.0-SNAPSHOT [2/2])
does not work in [1/2] step(Building Pulsar Build Tools 2.10.0-SNAPSHOT
[1/2])
I think the step [2/2] does not hava test lifecycle so it missing exec data
file. But the step [1/1] has test,why jacoco plugin does not work.
I’am java beginner, look forward to everyone reply!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]