问题
I'm running the command mvn sonar:sonar
.
Here's the output from Jenkins:
[JaCoCo plugin] Source Inclusions: **/*.java
[JaCoCo plugin] Source Exclusions:
[JaCoCo plugin] - <PATH>/workspace/<MODULE1>/src/main/java 10 files
[JaCoCo plugin] - <PATH>/workspace/<MODULE2>/src/main/java 1 files
[JaCoCo plugin] - <PATH>/workspace/<MODULE3>/src/main/java 65 files
[JaCoCo plugin] - <PATH>/workspace/<MODULE4>/src/main/java 5 files
[JaCoCo plugin] - <PATH>/workspace/<MODULE5>/src/main/java 64 files
Why do the Jacoco plugin exclude these java files?
I don't have any <exclude>
tag in my jacoco-maven-plugin
configuration
回答1:
Here's the output from Jenkins:
[JaCoCo plugin] Source Inclusions: **/*.java [JaCoCo plugin] Source Exclusions: [JaCoCo plugin] - <PATH>/workspace/<MODULE1>/src/main/java 10 files
Why do the Jacoco plugin exclude these java files?
I don't have any
<exclude>
tag in myjacoco-maven-plugin
configuration
These messages produced by Jenkins Plugin, which has its own configuration unrelated to configuration of jacoco-maven-plugin
.
来源:https://stackoverflow.com/questions/55279463/why-do-jacoco-excludes-java-classes