The mojo is just a bootstrapper. It installs and executes the sonar-core-maven-plugin, deployed into the sonar server.
This one has to be upgraded to Maven 3 too, because it executes other maven plugins like checkstyle or cobertura. In order to be compatible with both maven 2.x and 3.x versions, I think we should :
- extract all core classes of sonar-core-maven-plugin in a new module called sonar-batch.
- create a sonar-core-maven3-plugin, depending on sonar-batch.
Both sonar-core-maven-plugin and sonar-core-maven3-plugin are deployed when starting sonar. The first one is executed by the current version of the sonar mojo (1.0-beta-1), the second one by the version 2.0.
Not sure I've been understandable !