Why does the Maven command “mvn sonar:sonar” work without any plugin configuration in my “pom.xml”?

后端 未结 4 807
广开言路
广开言路 2020-12-24 01:55

I have a Maven web project in my repo.

I am a Maven noob but still I understand the fact that there are plugins which we need to configure only then we could run p

4条回答
  •  粉色の甜心
    2020-12-24 02:27

    The reason is that the Sonar Maven Plugin is hosted at the Codehaus Mojo project and benefits from the groupId "org.codehaus.mojo". This allows to use the shortcut "sonar:sonar" instead of "org.codehaus.mojo:sonar-maven-plugin::sonar" (see the section "Configuring Maven to Search for Plugins" of the Maven documentation)

提交回复
热议问题