The GAE SDK generates a project that is not Maven enabled. Namely, source and target directories does not follow Maven conventions.

Sonar may be run against such a project by using Sonar light mode configuration.

We will write a minimal POM project and instruct Sonar to run only static analysis (code violations, complexity).

For the time being, we will put dynamic analysis (unit test results and code coverage) aside as it requires code to be executed, therefore dependencies configuration. Sonar may actually report dynamic analysis if surefire and cobertura reports are available.

But let’s start with some simple configuration.
You will need Sonar (1.8 minimum) and Maven 2.