Saturday, 15 August 2015

java - Why Maven command MVN sonar:sonar works without any plugin configuration in my POM.xml? -



java - Why Maven command MVN sonar:sonar works without any plugin configuration in my POM.xml? -

i have maven web project in repo.

i maven noob still understand fact there plugins need configure run plugin specific commands.

facts:

i have sonar server running on local machine @ port 9000.

i have not added sonar specific plugin in pom.xml

reference:

http://www.sonarsource.org/we-had-a-dream-mvn-sonarsonar/

observation:

but still when run mvn sonar:sonar in project command line works fine.

matter of fact i have not configured sonar plugin in pom.xml hell maven picking , understanding "sonar:sonar" goal/command?

question / curiosity:

i don't want working knowledge of sonar itself. want know why mvn sonar:sonar works without configuring sonar plugin in pom.xml

why , how?

the reason sonar maven plugin hosted @ codehaus mojo project , benefits groupid "org.codehaus.mojo". allows utilize shortcut "sonar:sonar" instead of "org.codehaus.mojo:sonar-maven-plugin::sonar" (see section "configuring maven search plugins" of maven documentation)

java maven sonarqube maven-plugin

No comments:

Post a Comment