title: maven sonar problem
body: <p>I want to use sonar for analysis but i can't get any data in localhost:9000</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;artifactId&gt;KIS&lt;/artifactId&gt;
    &lt;groupId&gt;KIS&lt;/groupId&gt;
    &lt;version&gt;1.0&lt;/version&gt;
    &lt;build&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
          &lt;version&gt;1.4&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;compile&lt;/id&gt;
              &lt;phase&gt;compile&lt;/phase&gt;
              &lt;configuration&gt;
                &lt;tasks&gt;
                  &lt;property name="compile_classpath" refid="maven.compile.classpath"/&gt;
                  &lt;property name="runtime_classpath" refid="maven.runtime.classpath"/&gt;
                  &lt;property name="test_classpath" refid="maven.test.classpath"/&gt;
                  &lt;property name="plugin_classpath" refid="maven.plugin.classpath"/&gt;
                  &lt;ant antfile="${basedir}/build.xml"&gt;
                    &lt;target name="maven-compile"/&gt;
                  &lt;/ant&gt;
                &lt;/tasks&gt;
              &lt;/configuration&gt;
              &lt;goals&gt;
                &lt;goal&gt;run&lt;/goal&gt;
              &lt;/goals&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>output when running sonar: jar file is empty</p>
  
  <pre><code>[INFO] Executed tasks
  [INFO] [resources:testResources {execution: default-testResources}]
  [WARNING] Using platform encoding (Cp1250 actually) to copy filtered resources, i.e. build is platform dependent!
  [INFO] skip non existing resourceDirectory J:\ostalo_6i\KIS deploy\ANT\src\test\resources
  [INFO] [compiler:testCompile {execution: default-testCompile}]
  [INFO] No sources to compile
  [INFO] [surefire:test {execution: default-test}]
  [INFO] No tests to run.
  [INFO] [jar:jar {execution: default-jar}]
  [WARNING] JAR will be empty - no content was marked for inclusion!
  [INFO] Building jar: J:\ostalo_6i\KIS deploy\ANT\target\KIS-1.0.jar
  [INFO] [install:install {execution: default-install}]
  [INFO] Installing J:\ostalo_6i\KIS deploy\ANT\target\KIS-1.0.jar to C:\Documents and Settings\MitjaG\.m2\repository\KIS\KIS\1.0\KIS-1.0.jar
  [INFO] ------------------------------------------------------------------------
  [INFO] Building Unnamed - KIS:KIS:jar:1.0
  [INFO]    task-segment: [sonar:sonar] (aggregator-style)
  [INFO] ------------------------------------------------------------------------
  [INFO] [sonar:sonar {execution: default-cli}]
  [INFO] Sonar host: http://localhost:9000
  [INFO] Sonar version: 2.1.2
  [INFO] [sonar-core:internal {execution: default-internal}]
  [INFO]  Database dialect class org.sonar.api.database.dialect.Oracle
  [INFO]  -------------  Analyzing Unnamed - KIS:KIS:jar:1.0
  [INFO]  Selected quality profile : KIS, language=java
  [INFO]  Configure maven plugins...
  [INFO]  Sensor SquidSensor...
  [INFO]  Sensor SquidSensor done: 16 ms
  [INFO]  Sensor JavaSourceImporter...
  [INFO]  Sensor JavaSourceImporter done: 0 ms
  [INFO]  Sensor AsynchronousMeasuresSensor...
  [INFO]  Sensor AsynchronousMeasuresSensor done: 15 ms
  [INFO]  Sensor SurefireSensor...
  [INFO]  parsing J:\ostalo_6i\KIS deploy\ANT\target\surefire-reports
  [INFO]  Sensor SurefireSensor done: 47 ms
  [INFO]  Sensor ProfileSensor...
  [INFO]  Sensor ProfileSensor done: 16 ms
  [INFO]  Sensor ProjectLinksSensor...
  [INFO]  Sensor ProjectLinksSensor done: 0 ms
  [INFO]  Sensor VersionEventsSensor...
  [INFO]  Sensor VersionEventsSensor done: 31 ms
  [INFO]  Sensor CpdSensor...
  [INFO]  Sensor CpdSensor done: 0 ms
  [INFO]  Sensor Maven dependencies...
  [INFO]  Sensor Maven dependencies done: 16 ms
  [INFO]  Execute decorators...
  [INFO]  ANALYSIS SUCCESSFUL, you can browse http://localhost:9000
  [INFO]  Database optimization...
  [INFO]  Database optimization done: 172 ms
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESSFUL
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 6 minutes 16 seconds
  [INFO] Finished at: Fri Jun 11 08:28:26 CEST 2010
  [INFO] Final Memory: 24M/43M
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <p>any idea why, i successfully compile with maven ant plugin java project.</p>