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 !
work in progress rev 11395.
but npe in pico
Caused by: java.lang.NullPointerException at org.picocontainer.DefaultPicoContainer.addComponent(DefaultPicoContainer.java:441) at org.picocontainer.DefaultPicoContainer.access$400(DefaultPicoContainer.java:78) at org.picocontainer.DefaultPicoContainer$AsPropertiesPicoContainer.addComponent(DefaultPicoContainer.java:1023) at org.sonar.batch.BatchMojo.createMainContainer(BatchMojo.java:157) at org.sonar.batch.BatchMojo.executeBatch(BatchMojo.java:135) at org.sonar.batch.BatchMojo.execute(BatchMojo.java:130) at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113)code in branh https://svn.codehaus.org/mojo/branches/sonar-maven-plugin-mvn-3.x
Caused by: java.lang.NullPointerException at org.picocontainer.DefaultPicoContainer.addComponent(DefaultPicoContainer.java:441) at org.picocontainer.DefaultPicoContainer.access$400(DefaultPicoContainer.java:78) at org.picocontainer.DefaultPicoContainer$AsPropertiesPicoContainer.addComponent(DefaultPicoContainer.java:1023) at org.sonar.batch.BatchMojo.createMainContainer(BatchMojo.java:157) at org.sonar.batch.BatchMojo.executeBatch(BatchMojo.java:135) at org.sonar.batch.BatchMojo.execute(BatchMojo.java:130) at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113)