Reputation: 11
I have seen sonar builds failing if I run mvn package
or mvn verify
as build goals, however if I change it to mvn install
it passes.
Can you explain why maven install goal is needed for sonar to work properly?
Upvotes: 1
Views: 2328
Reputation: 5326
In a multi-module build an aggregator plugin can't resolve dependencies from target folder. So you have two options:
mvn clean install
&& mvn sonar:sonar
as two separate processes mvn clean package sonar:sonar
as a single reactorUpvotes: 2