Olgun Kaya
Olgun Kaya

Reputation: 2579

Coverity Emitted file count issue

I am trying to run analyses on my java project using coverity. Building the project with maven. But when it comes to coverity analyses it founds just 5 units (source files) where the project contains around 280 source files.

Am I missing about maven config beside native build config ? For native build I am setting as mvn -DskipTests install

Upvotes: 1

Views: 719

Answers (2)

Olgun Kaya
Olgun Kaya

Reputation: 2579

Coverity is unable to bind to aspect compiler for analysis. One wants to analyze just code quality needs to create another profile without aspect build plugin. But keep in mind that this build will only be for analysis. For product release one still needs to keep aspect if you use in your application.

Upvotes: 0

Mark Robinson
Mark Robinson

Reputation: 3145

mvn clean install

If you omit the clean, then some files won't be rebuilt. Which will cause them not to be analyzed and hence not appear. Also, skipping tests will cause them to not be built as well. Further pushing down the file count.

Upvotes: 1

Related Questions