Quantcast

undefined method `each_pair' for nil:NilClass

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

undefined method `each_pair' for nil:NilClass

ccdigix
Hi,

I am trying to get Sonar working with a non-maven project and the command...

mvn clean resources:copy-resources org.codehaus.sonar:sonar-maven-plugin:1.5.1:sonar

...is successful but when I try to click on the project in the Sonar web page I get the following error:

----------------------------------------------------------------------------------------
NoMethodError in ProjectController#index
undefined method `each_pair' for nil:NilClass
RAILS_ROOT: C:\BEA/sonar-1.5.1/war/sonar-web/WEB-INF

Application Trace | Framework Trace | Full Trace
app/models/sonar/treemap.rb:102:in `get_measures_by_snapshot_without_rule_and_rules_category'
app/models/sonar/treemap.rb:36:in `initialize'
app/controllers/project_controller.rb:200:in `init_treemap'
app/controllers/project_controller.rb:58:in `index'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `perform_action'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in `call_filters'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in `perform_action_with_filters'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in `perform_action_with_rescue'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in `perform_action_with_caching'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in `cache'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in `perform_action_with_caching'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `process'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in `process_with_filters'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in `process_with_session_management_support'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in `process'
:1
file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-complete-1.1.5.jar!/benchmark.rb:293:in `measure'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in `handle_request'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in `dispatch'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in `dispatch'
file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/adapter/rails.rb:37:in `serve_rails'
file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/adapter/rails.rb:44:in `call'
file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/jruby/rack/rails.rb:145:in `call'
file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/handler/servlet.rb:17:in `call'
app/models/sonar/treemap.rb:102:in `get_measures_by_snapshot_without_rule_and_rules_category'
app/models/sonar/treemap.rb:36:in `initialize'
app/controllers/project_controller.rb:200:in `init_treemap'
app/controllers/project_controller.rb:58:in `index'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `perform_action'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in `call_filters'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in `perform_action_with_filters'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-complete-1.1.5.jar!/benchmark.rb:293:in `measure'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in `perform_action_with_rescue'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in `perform_action_with_caching'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in `cache'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in `perform_action_with_caching'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `process'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in `process_with_filters'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in `process_with_session_management_support'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in `process'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in `handle_request'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in `dispatch'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in `dispatch'
file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/adapter/rails.rb:37:in `serve_rails'
file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/adapter/rails.rb:44:in `call'
file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/jruby/rack/rails.rb:145:in `call'
file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/handler/servlet.rb:17:in `call'
:1
Request
Parameters:

{"id"=>"uk.co.mandg.fodb:FODBAdapter",
 "width"=>200,
 "height"=>200,
 "display_branch_name"=>false,
 "link_url"=>"/project/index/_id_",
 "size_name"=>"ncss",
 "color_name"=>"rules_compliance"}

Show session dump

---
flash: !map:ActionController::Flash::FlashHash {}


Response
Headers:

{"Cache-Control"=>"no-cache",
 "cookie"=>[]}

----------------------------------------------------------------------------------------

Browsing other issues this would appear to be because Sonar couldn't find the source code; my SNAPSHOTS table has entries in it but nothing in SNAPSHOT_SOURCES. This is confusing as maven successfully found the source resources and copied them to the new sources folder. Please find below some files for reference.

Many thanks for any help you can provide,

Chris


pom.xml
----------------------------------------------------------------------------------------
<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>uk.co.mandg.fodb</groupId>
  <artifactId>FODBAdapter</artifactId>
  <name>FODBAdapter</name>
  <version>0.0.1</version>
  <build>
        <sourceDirectory>${basedir}\target\sources</sourceDirectory>
        <plugins>
           <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-compiler-plugin</artifactId>
              <configuration>
                  <source>1.5</source>
                  <target>1.5</target>
              </configuration>
           </plugin>
           <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-resources-plugin</artifactId>
             <version>2.3</version>
                 <configuration>
                   <outputDirectory>${basedir}\target\sources</outputDirectory>
                   <resources>
                     <resource>
                       <directory>C:/BEA/integration/gems/GemsFODBAdapter/GemsFODBAdapterPOJOs/src</directory>
                     </resource>
                   </resources>
                 </configuration>
           </plugin>
        </plugins>
  </build>

  <properties>
  <sonar.light>true</sonar.light>
  </properties>
</project>
----------------------------------------------------------------------------------------

sonar-pom.xml
----------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?><project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>uk.co.mandg.fodb</groupId>
  <artifactId>FODBAdapter</artifactId>
  <name>FODBAdapter</name>
  <version>0.0.1</version>
  <build>
    <sourceDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target\sources</sourceDirectory>
    <scriptSourceDirectory>src/main/scripts</scriptSourceDirectory>
    <testSourceDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\src\test\java</testSourceDirectory>
    <outputDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target\classes</outputDirectory>
    <testOutputDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target\test-classes</testOutputDirectory>
    <resources>
      <resource>
        <directory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\src\main\resources</directory>
      </resource>
    </resources>
    <testResources>
      <testResource>
        <directory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\src\test\resources</directory>
      </testResource>
    </testResources>
    <directory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target</directory>
    <finalName>FODBAdapter-0.0.1</finalName>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-antrun-plugin</artifactId>
          <version>1.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-assembly-plugin</artifactId>
          <version>2.2-beta-2</version>
        </plugin>
        <plugin>
          <artifactId>maven-clean-plugin</artifactId>
          <version>2.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>2.0.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-dependency-plugin</artifactId>
          <version>2.0</version>
        </plugin>
        <plugin>
          <artifactId>maven-deploy-plugin</artifactId>
          <version>2.3</version>
        </plugin>
        <plugin>
          <artifactId>maven-ear-plugin</artifactId>
          <version>2.3.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-ejb-plugin</artifactId>
          <version>2.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-install-plugin</artifactId>
          <version>2.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-jar-plugin</artifactId>
          <version>2.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-javadoc-plugin</artifactId>
          <version>2.4</version>
        </plugin>
        <plugin>
          <artifactId>maven-plugin-plugin</artifactId>
          <version>2.4.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-rar-plugin</artifactId>
          <version>2.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-release-plugin</artifactId>
          <version>2.0-beta-7</version>
        </plugin>
        <plugin>
          <artifactId>maven-resources-plugin</artifactId>
          <version>2.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-site-plugin</artifactId>
          <version>2.0-beta-6</version>
        </plugin>
        <plugin>
          <artifactId>maven-source-plugin</artifactId>
          <version>2.0.4</version>
        </plugin>
        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.4.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-war-plugin</artifactId>
          <version>2.1-alpha-1</version>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.0.2</version>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.3</version>
        <configuration>
          <outputDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target\sources</outputDirectory>
          <resources>
            <resource>
              <directory>C:/BEA/integration/gems/GemsFODBAdapter/GemsFODBAdapterPOJOs/src</directory>
            </resource>
          </resources>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.sonar</groupId>
        <artifactId>sonar-maven-plugin</artifactId>
        <version>1.5.1</version>
      </plugin>
      <plugin>
        <artifactId>maven-clean-plugin</artifactId>
        <version>2.2</version>
      </plugin>
      <plugin>
        <groupId>org.codehaus.sonar</groupId>
        <artifactId>sonar-core-maven-plugin</artifactId>
        <version>1.5.1</version>
        <dependencies>
          <dependency>
            <groupId>org.codehaus.sonar.runtime.jdbc-driver</groupId>
            <artifactId>parent</artifactId>
            <version>20090129131738</version>
            <type>pom</type>
            <scope>compile</scope>
          </dependency>
          <dependency>
            <groupId>org.codehaus.sonar.runtime.plugins</groupId>
            <artifactId>parent</artifactId>
            <version>20090129131738</version>
            <type>pom</type>
            <scope>compile</scope>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>
  <repositories>
    <repository>
      <releases />
      <snapshots />
      <id>atlassian-public</id>
      <url>http://maven.atlassian.com/repository/public</url>
    </repository>
    <repository>
      <id>atlassian-m1-repository</id>
      <url>http://maven.atlassian.com/maven1</url>
      <layout>legacy</layout>
    </repository>
    <repository>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <id>central</id>
      <name>Maven Repository Switchboard</name>
      <url>http://repo1.maven.org/maven2</url>
    </repository>
    <repository>
      <releases>
        <updatePolicy>never</updatePolicy>
        <checksumPolicy>ignore</checksumPolicy>
      </releases>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <id>sonar</id>
      <name>Sonar server maven repository</name>
      <url>http://localhost:9000/deploy/maven</url>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <releases />
      <snapshots />
      <id>atlassian-public</id>
      <url>http://maven.atlassian.com/repository/public</url>
    </pluginRepository>
    <pluginRepository>
      <releases>
        <updatePolicy>never</updatePolicy>
      </releases>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <id>central</id>
      <name>Maven Plugin Repository</name>
      <url>http://repo1.maven.org/maven2</url>
    </pluginRepository>
  </pluginRepositories>
  <reporting>
    <outputDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target/site</outputDirectory>
  </reporting>
  <properties>
    REMOVED FOR SECURITY PURPOSES
  </properties>
</project>
----------------------------------------------------------------------------------------

maven log
----------------------------------------------------------------------------------------
C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs>mvn clean resources:copy-resources org.codehaus.sonar:sonar-maven-plugin:1.5.1:sonar
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'resources'.
[INFO] ------------------------------------------------------------------------
[INFO] Building FODBAdapter
[INFO]    task-segment: [clean, resources:copy-resources]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target
[INFO] [resources:copy-resources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 4 resources
[INFO] ------------------------------------------------------------------------
[INFO] Building FODBAdapter
[INFO]    task-segment: [org.codehaus.sonar:sonar-maven-plugin:1.5.1:sonar] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [sonar:sonar]
[INFO] ------------------------------------------------------------------------
[INFO] Building FODBAdapter
[INFO]    task-segment: [org.codehaus.sonar:sonar-core-maven-plugin:1.5.1:dependencies]
[INFO] ------------------------------------------------------------------------
[INFO] [sonar-core:dependencies]
[INFO] ------------------------------------------------------------------------
[INFO] Building FODBAdapter
[INFO]    task-segment: [org.codehaus.sonar:sonar-core-maven-plugin:1.5.1:prepare]
[INFO] ------------------------------------------------------------------------
[WARNING] POM for 'org.codehaus.sonar.runtime.jdbc-driver:parent:pom:20090129131738:compile' is invalid. It will be ignored for artifact resolution. R
eason: Not a v4.0.0 POM. for project org.codehaus.sonar.runtime.jdbc-driver:parent at c:\bea\maven\repo\org\codehaus\sonar\runtime\jdbc-driver\parent\
20090129131738\parent-20090129131738.pom
[WARNING] POM for 'org.codehaus.sonar.runtime.plugins:parent:pom:20090129131738:compile' is invalid. It will be ignored for artifact resolution. Reaso
n: Not a v4.0.0 POM. for project org.codehaus.sonar.runtime.plugins:parent at c:\bea\maven\repo\org\codehaus\sonar\runtime\plugins\parent\200901291317
38\parent-20090129131738.pom
[INFO] [sonar-core:prepare]
[INFO] ------------------------------------------------------------------------
[INFO] Building FODBAdapter
[INFO]    task-segment: [org.codehaus.sonar:sonar-core-maven-plugin:1.5.1:collect]
[INFO] ------------------------------------------------------------------------
[WARNING] POM for 'org.codehaus.sonar.runtime.jdbc-driver:parent:pom:20090129131738:compile' is invalid. It will be ignored for artifact resolution. R
eason: Not a v4.0.0 POM. for project org.codehaus.sonar.runtime.jdbc-driver:parent at c:\bea\maven\repo\org\codehaus\sonar\runtime\jdbc-driver\parent\
20090129131738\parent-20090129131738.pom
[WARNING] POM for 'org.codehaus.sonar.runtime.plugins:parent:pom:20090129131738:compile' is invalid. It will be ignored for artifact resolution. Reaso
n: Not a v4.0.0 POM. for project org.codehaus.sonar.runtime.plugins:parent at c:\bea\maven\repo\org\codehaus\sonar\runtime\plugins\parent\200901291317
38\parent-20090129131738.pom
[INFO] [sonar-core:collect]
[INFO] ------------------------------------------------------------------------
[INFO] Building FODBAdapter
[INFO]    task-segment: [org.codehaus.sonar:sonar-core-maven-plugin:1.5.1:batch] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[WARNING] POM for 'org.codehaus.sonar.runtime.jdbc-driver:parent:pom:20090129131738:compile' is invalid. It will be ignored for artifact resolution. R
eason: Not a v4.0.0 POM. for project org.codehaus.sonar.runtime.jdbc-driver:parent at c:\bea\maven\repo\org\codehaus\sonar\runtime\jdbc-driver\parent\
20090129131738\parent-20090129131738.pom
[WARNING] POM for 'org.codehaus.sonar.runtime.plugins:parent:pom:20090129131738:compile' is invalid. It will be ignored for artifact resolution. Reaso
n: Not a v4.0.0 POM. for project org.codehaus.sonar.runtime.plugins:parent at c:\bea\maven\repo\org\codehaus\sonar\runtime\plugins\parent\200901291317
38\parent-20090129131738.pom
[INFO] [sonar-core:batch]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 35 seconds
[INFO] Finished at: Thu Jan 29 14:19:23 GMT 2009
[INFO] Final Memory: 11M/28M
[INFO] ------------------------------------------------------------------------
----------------------------------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: user@sonar.codehaus.org

Freddy Mallet
Hi Chris,

You shouldn't get the following warnings in your maven log :

[WARNING] POM for
'org.codehaus.sonar.runtime.
jdbc-driver:parent:pom:20090129131738:compile'
is invalid. It will be ignored for artifact resolution. R
eason: Not a v4.0.0 POM. for project
org.codehaus.sonar.runtime.jdbc-driver:parent at
c:\bea\maven\repo\org\codehaus\sonar\runtime\jdbc-driver\parent\
20090129131738\parent-20090129131738.pom

Looks like, those artifacts are corrupted in your maven repository.

Could you try to delete the directory "c:\bea\maven\repo\org\codehaus\sonar" and launch again the maven command:

mvn clean resources:copy-resourcesorg.codehaus.sonar:sonar-maven-plugin:1.5.1:sonar

regards
 
Freddy

On Thu, Jan 29, 2009 at 4:01 PM, ccdigix <[hidden email]> wrote:

Hi,

I am trying to get Sonar working with a non-maven project and the command...

mvn clean resources:copy-resources
org.codehaus.sonar:sonar-maven-plugin:1.5.1:sonar

...is successful but when I try to click on the project in the Sonar web
page I get the following error:

----------------------------------------------------------------------------------------
NoMethodError in ProjectController#index
undefined method `each_pair' for nil:NilClass
RAILS_ROOT: C:\BEA/sonar-1.5.1/war/sonar-web/WEB-INF

Application Trace | Framework Trace | Full Trace
app/models/sonar/treemap.rb:102:in
`get_measures_by_snapshot_without_rule_and_rules_category'
app/models/sonar/treemap.rb:36:in `initialize'
app/controllers/project_controller.rb:200:in `init_treemap'
app/controllers/project_controller.rb:58:in `index'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in
`perform_action'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in
`call_filters'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in
`perform_action_with_filters'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_with_benchmark'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_with_benchmark'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in
`perform_action_with_rescue'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in
`perform_action_with_caching'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in
`cache'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in
`cache'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in
`perform_action_with_caching'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in
`process'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in
`process_with_filters'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in
`process_with_session_management_support'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in
`process'
:1
file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-complete-1.1.5.jar!/benchmark.rb:293:in
`measure'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in
`handle_request'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in
`dispatch'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in
`dispatch_cgi'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in
`dispatch'
file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/adapter/rails.rb:37:in
`serve_rails'
file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/adapter/rails.rb:44:in
`call'
file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/jruby/rack/rails.rb:145:in
`call'
file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/handler/servlet.rb:17:in
`call'
app/models/sonar/treemap.rb:102:in
`get_measures_by_snapshot_without_rule_and_rules_category'
app/models/sonar/treemap.rb:36:in `initialize'
app/controllers/project_controller.rb:200:in `init_treemap'
app/controllers/project_controller.rb:58:in `index'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in
`perform_action'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in
`call_filters'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in
`perform_action_with_filters'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_with_benchmark'
file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-complete-1.1.5.jar!/benchmark.rb:293:in
`measure'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_with_benchmark'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in
`perform_action_with_rescue'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in
`perform_action_with_caching'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in
`cache'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in
`cache'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in
`perform_action_with_caching'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in
`process'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in
`process_with_filters'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in
`process_with_session_management_support'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in
`process'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in
`handle_request'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in
`dispatch'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in
`dispatch_cgi'
C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in
`dispatch'
file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/adapter/rails.rb:37:in
`serve_rails'
file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/adapter/rails.rb:44:in
`call'
file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/jruby/rack/rails.rb:145:in
`call'
file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/handler/servlet.rb:17:in
`call'
:1
Request
Parameters:

{"id"=>"uk.co.mandg.fodb:FODBAdapter",
 "width"=>200,
 "height"=>200,
 "display_branch_name"=>false,
 "link_url"=>"/project/index/_id_",
 "size_name"=>"ncss",
 "color_name"=>"rules_compliance"}

Show session dump

---
flash: !map:ActionController::Flash::FlashHash {}


Response
Headers:

{"Cache-Control"=>"no-cache",
 "cookie"=>[]}

----------------------------------------------------------------------------------------

Browsing other issues this would appear to be because Sonar couldn't find
the source code; my SNAPSHOTS table has entries in it but nothing in
SNAPSHOT_SOURCES. This is confusing as maven successfully found the source
resources and copied them to the new sources folder. Please find below some
files for reference.

Many thanks for any help you can provide,

Chris


pom.xml
----------------------------------------------------------------------------------------
<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/xsd/maven-4.0.0.xsd">
 <modelVersion>4.0.0</modelVersion>
 <groupId>uk.co.mandg.fodb</groupId>
 <artifactId>FODBAdapter</artifactId>
 <name>FODBAdapter</name>
 <version>0.0.1</version>
 <build>
       <sourceDirectory>${basedir}\target\sources</sourceDirectory>
       <plugins>
          <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-compiler-plugin</artifactId>
             <configuration>
                 <source>1.5</source>
                 <target>1.5</target>
             </configuration>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-resources-plugin</artifactId>
            <version>2.3</version>
                <configuration>

<outputDirectory>${basedir}\target\sources</outputDirectory>
                  <resources>
                    <resource>

<directory>C:/BEA/integration/gems/GemsFODBAdapter/GemsFODBAdapterPOJOs/src</directory>
                    </resource>
                  </resources>
                </configuration>
          </plugin>
       </plugins>
 </build>

 <properties>
       <sonar.light>true</sonar.light>
 </properties>
</project>
----------------------------------------------------------------------------------------

sonar-pom.xml
----------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?><project>
 <modelVersion>4.0.0</modelVersion>
 <groupId>uk.co.mandg.fodb</groupId>
 <artifactId>FODBAdapter</artifactId>
 <name>FODBAdapter</name>
 <version>0.0.1</version>
 <build>

<sourceDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target\sources</sourceDirectory>
   <scriptSourceDirectory>src/main/scripts</scriptSourceDirectory>

<testSourceDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\src\test\java</testSourceDirectory>

<outputDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target\classes</outputDirectory>

<testOutputDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target\test-classes</testOutputDirectory>
   <resources>
     <resource>

<directory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\src\main\resources</directory>
     </resource>
   </resources>
   <testResources>
     <testResource>

<directory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\src\test\resources</directory>
     </testResource>
   </testResources>

<directory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target</directory>
   <finalName>FODBAdapter-0.0.1</finalName>
   <pluginManagement>
     <plugins>
       <plugin>
         <artifactId>maven-antrun-plugin</artifactId>
         <version>1.1</version>
       </plugin>
       <plugin>
         <artifactId>maven-assembly-plugin</artifactId>
         <version>2.2-beta-2</version>
       </plugin>
       <plugin>
         <artifactId>maven-clean-plugin</artifactId>
         <version>2.2</version>
       </plugin>
       <plugin>
         <artifactId>maven-compiler-plugin</artifactId>
         <version>2.0.2</version>
       </plugin>
       <plugin>
         <artifactId>maven-dependency-plugin</artifactId>
         <version>2.0</version>
       </plugin>
       <plugin>
         <artifactId>maven-deploy-plugin</artifactId>
         <version>2.3</version>
       </plugin>
       <plugin>
         <artifactId>maven-ear-plugin</artifactId>
         <version>2.3.1</version>
       </plugin>
       <plugin>
         <artifactId>maven-ejb-plugin</artifactId>
         <version>2.1</version>
       </plugin>
       <plugin>
         <artifactId>maven-install-plugin</artifactId>
         <version>2.2</version>
       </plugin>
       <plugin>
         <artifactId>maven-jar-plugin</artifactId>
         <version>2.2</version>
       </plugin>
       <plugin>
         <artifactId>maven-javadoc-plugin</artifactId>
         <version>2.4</version>
       </plugin>
       <plugin>
         <artifactId>maven-plugin-plugin</artifactId>
         <version>2.4.1</version>
       </plugin>
       <plugin>
         <artifactId>maven-rar-plugin</artifactId>
         <version>2.2</version>
       </plugin>
       <plugin>
         <artifactId>maven-release-plugin</artifactId>
         <version>2.0-beta-7</version>
       </plugin>
       <plugin>
         <artifactId>maven-resources-plugin</artifactId>
         <version>2.2</version>
       </plugin>
       <plugin>
         <artifactId>maven-site-plugin</artifactId>
         <version>2.0-beta-6</version>
       </plugin>
       <plugin>
         <artifactId>maven-source-plugin</artifactId>
         <version>2.0.4</version>
       </plugin>
       <plugin>
         <artifactId>maven-surefire-plugin</artifactId>
         <version>2.4.2</version>
       </plugin>
       <plugin>
         <artifactId>maven-war-plugin</artifactId>
         <version>2.1-alpha-1</version>
       </plugin>
     </plugins>
   </pluginManagement>
   <plugins>
     <plugin>
       <artifactId>maven-compiler-plugin</artifactId>
       <version>2.0.2</version>
       <configuration>
         <source>1.5</source>
         <target>1.5</target>
       </configuration>
     </plugin>
     <plugin>
       <artifactId>maven-resources-plugin</artifactId>
       <version>2.3</version>
       <configuration>

<outputDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target\sources</outputDirectory>
         <resources>
           <resource>

<directory>C:/BEA/integration/gems/GemsFODBAdapter/GemsFODBAdapterPOJOs/src</directory>
           </resource>
         </resources>
       </configuration>
     </plugin>
     <plugin>
       <groupId>org.codehaus.sonar</groupId>
       <artifactId>sonar-maven-plugin</artifactId>
       <version>1.5.1</version>
     </plugin>
     <plugin>
       <artifactId>maven-clean-plugin</artifactId>
       <version>2.2</version>
     </plugin>
     <plugin>
       <groupId>org.codehaus.sonar</groupId>
       <artifactId>sonar-core-maven-plugin</artifactId>
       <version>1.5.1</version>
       <dependencies>
         <dependency>
           <groupId>org.codehaus.sonar.runtime.jdbc-driver</groupId>
           <artifactId>parent</artifactId>
           <version>20090129131738</version>
           <type>pom</type>
           <scope>compile</scope>
         </dependency>
         <dependency>
           <groupId>org.codehaus.sonar.runtime.plugins</groupId>
           <artifactId>parent</artifactId>
           <version>20090129131738</version>
           <type>pom</type>
           <scope>compile</scope>
         </dependency>
       </dependencies>
     </plugin>
   </plugins>
 </build>
 <repositories>
   <repository>
     <releases />
     <snapshots />
     <id>atlassian-public</id>
     <url>http://maven.atlassian.com/repository/public</url>
   </repository>
   <repository>
     <id>atlassian-m1-repository</id>
     <url>http://maven.atlassian.com/maven1</url>
     <layout>legacy</layout>
   </repository>
   <repository>
     <snapshots>
       <enabled>false</enabled>
     </snapshots>
     <id>central</id>
     <name>Maven Repository Switchboard</name>
     <url>http://repo1.maven.org/maven2</url>
   </repository>
   <repository>
     <releases>
       <updatePolicy>never</updatePolicy>
       <checksumPolicy>ignore</checksumPolicy>
     </releases>
     <snapshots>
       <enabled>false</enabled>
     </snapshots>
     <id>sonar</id>
     <name>Sonar server maven repository</name>
     <url>http://localhost:9000/deploy/maven</url>
   </repository>
 </repositories>
 <pluginRepositories>
   <pluginRepository>
     <releases />
     <snapshots />
     <id>atlassian-public</id>
     <url>http://maven.atlassian.com/repository/public</url>
   </pluginRepository>
   <pluginRepository>
     <releases>
       <updatePolicy>never</updatePolicy>
     </releases>
     <snapshots>
       <enabled>false</enabled>
     </snapshots>
     <id>central</id>
     <name>Maven Plugin Repository</name>
     <url>http://repo1.maven.org/maven2</url>
   </pluginRepository>
 </pluginRepositories>
 <reporting>

<outputDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target/site</outputDirectory>
 </reporting>
 <properties>
   REMOVED FOR SECURITY PURPOSES
 </properties>
</project>
----------------------------------------------------------------------------------------

maven log
----------------------------------------------------------------------------------------
C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs>mvn clean
resources:copy-resources org.codehaus.sonar:sonar-maven-plugin:1.5.1:sonar
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'resources'.
[INFO]
------------------------------------------------------------------------
[INFO] Building FODBAdapter
[INFO]    task-segment: [clean, resources:copy-resources]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory
C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target
[INFO] [resources:copy-resources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 4 resources
[INFO]
------------------------------------------------------------------------
[INFO] Building FODBAdapter
[INFO]    task-segment: [org.codehaus.sonar:sonar-maven-plugin:1.5.1:sonar]
(aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] [sonar:sonar]
[INFO]
------------------------------------------------------------------------
[INFO] Building FODBAdapter
[INFO]    task-segment:
[org.codehaus.sonar:sonar-core-maven-plugin:1.5.1:dependencies]
[INFO]
------------------------------------------------------------------------
[INFO] [sonar-core:dependencies]
[INFO]
------------------------------------------------------------------------
[INFO] Building FODBAdapter
[INFO]    task-segment:
[org.codehaus.sonar:sonar-core-maven-plugin:1.5.1:prepare]
[INFO]
------------------------------------------------------------------------
[WARNING] POM for
'org.codehaus.sonar.runtime.jdbc-driver:parent:pom:20090129131738:compile'
is invalid. It will be ignored for artifact resolution. R
eason: Not a v4.0.0 POM. for project
org.codehaus.sonar.runtime.jdbc-driver:parent at
c:\bea\maven\repo\org\codehaus\sonar\runtime\jdbc-driver\parent\
20090129131738\parent-20090129131738.pom
[WARNING] POM for
'org.codehaus.sonar.runtime.plugins:parent:pom:20090129131738:compile' is
invalid. It will be ignored for artifact resolution. Reaso
n: Not a v4.0.0 POM. for project org.codehaus.sonar.runtime.plugins:parent
at c:\bea\maven\repo\org\codehaus\sonar\runtime\plugins\parent\200901291317
38\parent-20090129131738.pom
[INFO] [sonar-core:prepare]
[INFO]
------------------------------------------------------------------------
[INFO] Building FODBAdapter
[INFO]    task-segment:
[org.codehaus.sonar:sonar-core-maven-plugin:1.5.1:collect]
[INFO]
------------------------------------------------------------------------
[WARNING] POM for
'org.codehaus.sonar.runtime.jdbc-driver:parent:pom:20090129131738:compile'
is invalid. It will be ignored for artifact resolution. R
eason: Not a v4.0.0 POM. for project
org.codehaus.sonar.runtime.jdbc-driver:parent at
c:\bea\maven\repo\org\codehaus\sonar\runtime\jdbc-driver\parent\
20090129131738\parent-20090129131738.pom
[WARNING] POM for
'org.codehaus.sonar.runtime.plugins:parent:pom:20090129131738:compile' is
invalid. It will be ignored for artifact resolution. Reaso
n: Not a v4.0.0 POM. for project org.codehaus.sonar.runtime.plugins:parent
at c:\bea\maven\repo\org\codehaus\sonar\runtime\plugins\parent\200901291317
38\parent-20090129131738.pom
[INFO] [sonar-core:collect]
[INFO]
------------------------------------------------------------------------
[INFO] Building FODBAdapter
[INFO]    task-segment:
[org.codehaus.sonar:sonar-core-maven-plugin:1.5.1:batch] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[WARNING] POM for
'org.codehaus.sonar.runtime.jdbc-driver:parent:pom:20090129131738:compile'
is invalid. It will be ignored for artifact resolution. R
eason: Not a v4.0.0 POM. for project
org.codehaus.sonar.runtime.jdbc-driver:parent at
c:\bea\maven\repo\org\codehaus\sonar\runtime\jdbc-driver\parent\
20090129131738\parent-20090129131738.pom
[WARNING] POM for
'org.codehaus.sonar.runtime.plugins:parent:pom:20090129131738:compile' is
invalid. It will be ignored for artifact resolution. Reaso
n: Not a v4.0.0 POM. for project org.codehaus.sonar.runtime.plugins:parent
at c:\bea\maven\repo\org\codehaus\sonar\runtime\plugins\parent\200901291317
38\parent-20090129131738.pom
[INFO] [sonar-core:batch]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 35 seconds
[INFO] Finished at: Thu Jan 29 14:19:23 GMT 2009
[INFO] Final Memory: 11M/28M
[INFO]
------------------------------------------------------------------------
----------------------------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/user%40sonar.codehaus.org-tp21728560p21728560.html
Sent from the Sonar mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





--
Freddy Mallet
SonarSource S.A.

Sonar , embrace Quality
http://sonar.codehaus.org
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: user@sonar.codehaus.org

ccdigix
Thanks for that Freddy, it turns out there was an issue with Maven going to the Atlassian repository in my settings first, and what it was getting back was confusing it and not even bothering going to the local Sonar repository. After removing the Atlassian one it works fine. I am very impressed with the results.

Many thanks again,

Chris


Freddy Mallet wrote
Hi Chris,

You shouldn't get the following warnings in your maven log :

[WARNING] POM for
'org.codehaus.sonar.runtime.
>
> jdbc-driver:parent:pom:20090129131738:compile'
> is invalid. It will be ignored for artifact resolution. R
> eason: Not a v4.0.0 POM. for project
> org.codehaus.sonar.runtime.jdbc-driver:parent at
> c:\bea\maven\repo\org\codehaus\sonar\runtime\jdbc-driver\parent\
> 20090129131738\parent-20090129131738.pom


Looks like, those artifacts are corrupted in your maven repository.

Could you try to delete the directory "c:\bea\maven\repo\org\codehaus\sonar"
and launch again the maven command:

mvn clean
resources:copy-resourcesorg.codehaus.sonar:sonar-maven-plugin:1.5.1:sonar

regards

Freddy

On Thu, Jan 29, 2009 at 4:01 PM, ccdigix <Chris.Clohosy@mandg.co.uk> wrote:

>
> Hi,
>
> I am trying to get Sonar working with a non-maven project and the
> command...
>
> mvn clean resources:copy-resources
> org.codehaus.sonar:sonar-maven-plugin:1.5.1:sonar
>
> ...is successful but when I try to click on the project in the Sonar web
> page I get the following error:
>
>
> ----------------------------------------------------------------------------------------
> NoMethodError in ProjectController#index
> undefined method `each_pair' for nil:NilClass
> RAILS_ROOT: C:\BEA/sonar-1.5.1/war/sonar-web/WEB-INF
>
> Application Trace | Framework Trace | Full Trace
> app/models/sonar/treemap.rb:102:in
> `get_measures_by_snapshot_without_rule_and_rules_category'
> app/models/sonar/treemap.rb:36:in `initialize'
> app/controllers/project_controller.rb:200:in `init_treemap'
> app/controllers/project_controller.rb:58:in `index'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in
> `perform_action'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in
> `call_filters'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in
> `perform_action_with_filters'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
> `perform_action_with_benchmark'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
> `perform_action_with_benchmark'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in
> `perform_action_with_rescue'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in
> `perform_action_with_caching'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in
> `cache'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in
> `cache'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in
> `perform_action_with_caching'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in
> `process'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in
> `process_with_filters'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in
> `process_with_session_management_support'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in
> `process'
> :1
>
> file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-complete-1.1.5.jar!/benchmark.rb:293:in
> `measure'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in
> `handle_request'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in
> `dispatch'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in
> `dispatch_cgi'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in
> `dispatch'
>
> file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/adapter/rails.rb:37:in
> `serve_rails'
>
> file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/adapter/rails.rb:44:in
> `call'
>
> file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/jruby/rack/rails.rb:145:in
> `call'
>
> file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/handler/servlet.rb:17:in
> `call'
> app/models/sonar/treemap.rb:102:in
> `get_measures_by_snapshot_without_rule_and_rules_category'
> app/models/sonar/treemap.rb:36:in `initialize'
> app/controllers/project_controller.rb:200:in `init_treemap'
> app/controllers/project_controller.rb:58:in `index'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in
> `perform_action'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in
> `call_filters'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in
> `perform_action_with_filters'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
> `perform_action_with_benchmark'
>
> file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-complete-1.1.5.jar!/benchmark.rb:293:in
> `measure'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
> `perform_action_with_benchmark'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in
> `perform_action_with_rescue'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in
> `perform_action_with_caching'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in
> `cache'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in
> `cache'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in
> `perform_action_with_caching'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in
> `process'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in
> `process_with_filters'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in
> `process_with_session_management_support'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in
> `process'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in
> `handle_request'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in
> `dispatch'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in
> `dispatch_cgi'
>
> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in
> `dispatch'
>
> file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/adapter/rails.rb:37:in
> `serve_rails'
>
> file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/adapter/rails.rb:44:in
> `call'
>
> file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/jruby/rack/rails.rb:145:in
> `call'
>
> file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/handler/servlet.rb:17:in
> `call'
> :1
> Request
> Parameters:
>
> {"id"=>"uk.co.mandg.fodb:FODBAdapter",
>  "width"=>200,
>  "height"=>200,
>  "display_branch_name"=>false,
>  "link_url"=>"/project/index/_id_",
>  "size_name"=>"ncss",
>  "color_name"=>"rules_compliance"}
>
> Show session dump
>
> ---
> flash: !map:ActionController::Flash::FlashHash {}
>
>
> Response
> Headers:
>
> {"Cache-Control"=>"no-cache",
>  "cookie"=>[]}
>
>
> ----------------------------------------------------------------------------------------
>
> Browsing other issues this would appear to be because Sonar couldn't find
> the source code; my SNAPSHOTS table has entries in it but nothing in
> SNAPSHOT_SOURCES. This is confusing as maven successfully found the source
> resources and copied them to the new sources folder. Please find below some
> files for reference.
>
> Many thanks for any help you can provide,
>
> Chris
>
>
> pom.xml
>
> ----------------------------------------------------------------------------------------
> <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/xsd/maven-4.0.0.xsd">
>  <modelVersion>4.0.0</modelVersion>
>  <groupId>uk.co.mandg.fodb</groupId>
>  <artifactId>FODBAdapter</artifactId>
>  <name>FODBAdapter</name>
>  <version>0.0.1</version>
>  <build>
>        <sourceDirectory>${basedir}\target\sources</sourceDirectory>
>        <plugins>
>           <plugin>
>              <groupId>org.apache.maven.plugins</groupId>
>              <artifactId>maven-compiler-plugin</artifactId>
>              <configuration>
>                  <source>1.5</source>
>                  <target>1.5</target>
>              </configuration>
>           </plugin>
>           <plugin>
>             <groupId>org.apache.maven.plugins</groupId>
>             <artifactId>maven-resources-plugin</artifactId>
>             <version>2.3</version>
>                 <configuration>
>
> <outputDirectory>${basedir}\target\sources</outputDirectory>
>                   <resources>
>                     <resource>
>
>
> <directory>C:/BEA/integration/gems/GemsFODBAdapter/GemsFODBAdapterPOJOs/src</directory>
>                     </resource>
>                   </resources>
>                 </configuration>
>           </plugin>
>        </plugins>
>  </build>
>
>  <properties>
>        <sonar.light>true</sonar.light>
>  </properties>
> </project>
>
> ----------------------------------------------------------------------------------------
>
> sonar-pom.xml
>
> ----------------------------------------------------------------------------------------
> <?xml version="1.0" encoding="UTF-8"?><project>
>  <modelVersion>4.0.0</modelVersion>
>  <groupId>uk.co.mandg.fodb</groupId>
>  <artifactId>FODBAdapter</artifactId>
>  <name>FODBAdapter</name>
>  <version>0.0.1</version>
>  <build>
>
>
> <sourceDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target\sources</sourceDirectory>
>    <scriptSourceDirectory>src/main/scripts</scriptSourceDirectory>
>
>
> <testSourceDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\src\test\java</testSourceDirectory>
>
>
> <outputDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target\classes</outputDirectory>
>
>
> <testOutputDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target\test-classes</testOutputDirectory>
>    <resources>
>      <resource>
>
>
> <directory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\src\main\resources</directory>
>      </resource>
>    </resources>
>    <testResources>
>      <testResource>
>
>
> <directory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\src\test\resources</directory>
>      </testResource>
>    </testResources>
>
>
> <directory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target</directory>
>    <finalName>FODBAdapter-0.0.1</finalName>
>    <pluginManagement>
>      <plugins>
>        <plugin>
>          <artifactId>maven-antrun-plugin</artifactId>
>          <version>1.1</version>
>        </plugin>
>        <plugin>
>          <artifactId>maven-assembly-plugin</artifactId>
>          <version>2.2-beta-2</version>
>        </plugin>
>        <plugin>
>          <artifactId>maven-clean-plugin</artifactId>
>          <version>2.2</version>
>        </plugin>
>        <plugin>
>          <artifactId>maven-compiler-plugin</artifactId>
>          <version>2.0.2</version>
>        </plugin>
>        <plugin>
>          <artifactId>maven-dependency-plugin</artifactId>
>          <version>2.0</version>
>        </plugin>
>        <plugin>
>          <artifactId>maven-deploy-plugin</artifactId>
>          <version>2.3</version>
>        </plugin>
>        <plugin>
>          <artifactId>maven-ear-plugin</artifactId>
>          <version>2.3.1</version>
>        </plugin>
>        <plugin>
>          <artifactId>maven-ejb-plugin</artifactId>
>          <version>2.1</version>
>        </plugin>
>        <plugin>
>          <artifactId>maven-install-plugin</artifactId>
>          <version>2.2</version>
>        </plugin>
>        <plugin>
>          <artifactId>maven-jar-plugin</artifactId>
>          <version>2.2</version>
>        </plugin>
>        <plugin>
>          <artifactId>maven-javadoc-plugin</artifactId>
>          <version>2.4</version>
>        </plugin>
>        <plugin>
>          <artifactId>maven-plugin-plugin</artifactId>
>          <version>2.4.1</version>
>        </plugin>
>        <plugin>
>          <artifactId>maven-rar-plugin</artifactId>
>          <version>2.2</version>
>        </plugin>
>        <plugin>
>          <artifactId>maven-release-plugin</artifactId>
>          <version>2.0-beta-7</version>
>        </plugin>
>        <plugin>
>          <artifactId>maven-resources-plugin</artifactId>
>          <version>2.2</version>
>        </plugin>
>        <plugin>
>          <artifactId>maven-site-plugin</artifactId>
>          <version>2.0-beta-6</version>
>        </plugin>
>        <plugin>
>          <artifactId>maven-source-plugin</artifactId>
>          <version>2.0.4</version>
>        </plugin>
>        <plugin>
>          <artifactId>maven-surefire-plugin</artifactId>
>          <version>2.4.2</version>
>        </plugin>
>        <plugin>
>          <artifactId>maven-war-plugin</artifactId>
>          <version>2.1-alpha-1</version>
>        </plugin>
>      </plugins>
>    </pluginManagement>
>    <plugins>
>      <plugin>
>        <artifactId>maven-compiler-plugin</artifactId>
>        <version>2.0.2</version>
>        <configuration>
>          <source>1.5</source>
>          <target>1.5</target>
>        </configuration>
>      </plugin>
>      <plugin>
>        <artifactId>maven-resources-plugin</artifactId>
>        <version>2.3</version>
>        <configuration>
>
>
> <outputDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target\sources</outputDirectory>
>          <resources>
>            <resource>
>
>
> <directory>C:/BEA/integration/gems/GemsFODBAdapter/GemsFODBAdapterPOJOs/src</directory>
>            </resource>
>          </resources>
>        </configuration>
>      </plugin>
>      <plugin>
>        <groupId>org.codehaus.sonar</groupId>
>        <artifactId>sonar-maven-plugin</artifactId>
>        <version>1.5.1</version>
>      </plugin>
>      <plugin>
>        <artifactId>maven-clean-plugin</artifactId>
>        <version>2.2</version>
>      </plugin>
>      <plugin>
>        <groupId>org.codehaus.sonar</groupId>
>        <artifactId>sonar-core-maven-plugin</artifactId>
>        <version>1.5.1</version>
>        <dependencies>
>          <dependency>
>            <groupId>org.codehaus.sonar.runtime.jdbc-driver</groupId>
>            <artifactId>parent</artifactId>
>            <version>20090129131738</version>
>            <type>pom</type>
>            <scope>compile</scope>
>          </dependency>
>          <dependency>
>            <groupId>org.codehaus.sonar.runtime.plugins</groupId>
>            <artifactId>parent</artifactId>
>            <version>20090129131738</version>
>            <type>pom</type>
>            <scope>compile</scope>
>          </dependency>
>        </dependencies>
>      </plugin>
>    </plugins>
>  </build>
>  <repositories>
>    <repository>
>      <releases />
>      <snapshots />
>      <id>atlassian-public</id>
>      <url>http://maven.atlassian.com/repository/public</url>
>    </repository>
>    <repository>
>      <id>atlassian-m1-repository</id>
>      <url>http://maven.atlassian.com/maven1</url>
>      <layout>legacy</layout>
>    </repository>
>    <repository>
>      <snapshots>
>        <enabled>false</enabled>
>      </snapshots>
>      <id>central</id>
>      <name>Maven Repository Switchboard</name>
>      <url>http://repo1.maven.org/maven2</url>
>    </repository>
>    <repository>
>      <releases>
>        <updatePolicy>never</updatePolicy>
>        <checksumPolicy>ignore</checksumPolicy>
>      </releases>
>      <snapshots>
>        <enabled>false</enabled>
>      </snapshots>
>      <id>sonar</id>
>      <name>Sonar server maven repository</name>
>      <url>http://localhost:9000/deploy/maven</url>
>    </repository>
>  </repositories>
>  <pluginRepositories>
>    <pluginRepository>
>      <releases />
>      <snapshots />
>      <id>atlassian-public</id>
>      <url>http://maven.atlassian.com/repository/public</url>
>    </pluginRepository>
>    <pluginRepository>
>      <releases>
>        <updatePolicy>never</updatePolicy>
>      </releases>
>      <snapshots>
>        <enabled>false</enabled>
>      </snapshots>
>      <id>central</id>
>      <name>Maven Plugin Repository</name>
>      <url>http://repo1.maven.org/maven2</url>
>    </pluginRepository>
>  </pluginRepositories>
>  <reporting>
>
>
> <outputDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target/site</outputDirectory>
>  </reporting>
>  <properties>
>    REMOVED FOR SECURITY PURPOSES
>  </properties>
> </project>
>
> ----------------------------------------------------------------------------------------
>
> maven log
>
> ----------------------------------------------------------------------------------------
> C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs>mvn clean
> resources:copy-resources org.codehaus.sonar:sonar-maven-plugin:1.5.1:sonar
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'resources'.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building FODBAdapter
> [INFO]    task-segment: [clean, resources:copy-resources]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] Deleting directory
> C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target
> [INFO] [resources:copy-resources]
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] Copying 4 resources
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building FODBAdapter
> [INFO]    task-segment: [org.codehaus.sonar:sonar-maven-plugin:1.5.1:sonar]
> (aggregator-style)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [sonar:sonar]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building FODBAdapter
> [INFO]    task-segment:
> [org.codehaus.sonar:sonar-core-maven-plugin:1.5.1:dependencies]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [sonar-core:dependencies]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building FODBAdapter
> [INFO]    task-segment:
> [org.codehaus.sonar:sonar-core-maven-plugin:1.5.1:prepare]
> [INFO]
> ------------------------------------------------------------------------
> [WARNING] POM for
> 'org.codehaus.sonar.runtime.jdbc-driver:parent:pom:20090129131738:compile'
> is invalid. It will be ignored for artifact resolution. R
> eason: Not a v4.0.0 POM. for project
> org.codehaus.sonar.runtime.jdbc-driver:parent at
> c:\bea\maven\repo\org\codehaus\sonar\runtime\jdbc-driver\parent\
> 20090129131738\parent-20090129131738.pom
> [WARNING] POM for
> 'org.codehaus.sonar.runtime.plugins:parent:pom:20090129131738:compile' is
> invalid. It will be ignored for artifact resolution. Reaso
> n: Not a v4.0.0 POM. for project org.codehaus.sonar.runtime.plugins:parent
> at c:\bea\maven\repo\org\codehaus\sonar\runtime\plugins\parent\200901291317
> 38\parent-20090129131738.pom
> [INFO] [sonar-core:prepare]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building FODBAdapter
> [INFO]    task-segment:
> [org.codehaus.sonar:sonar-core-maven-plugin:1.5.1:collect]
> [INFO]
> ------------------------------------------------------------------------
> [WARNING] POM for
> 'org.codehaus.sonar.runtime.jdbc-driver:parent:pom:20090129131738:compile'
> is invalid. It will be ignored for artifact resolution. R
> eason: Not a v4.0.0 POM. for project
> org.codehaus.sonar.runtime.jdbc-driver:parent at
> c:\bea\maven\repo\org\codehaus\sonar\runtime\jdbc-driver\parent\
> 20090129131738\parent-20090129131738.pom
> [WARNING] POM for
> 'org.codehaus.sonar.runtime.plugins:parent:pom:20090129131738:compile' is
> invalid. It will be ignored for artifact resolution. Reaso
> n: Not a v4.0.0 POM. for project org.codehaus.sonar.runtime.plugins:parent
> at c:\bea\maven\repo\org\codehaus\sonar\runtime\plugins\parent\200901291317
> 38\parent-20090129131738.pom
> [INFO] [sonar-core:collect]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building FODBAdapter
> [INFO]    task-segment:
> [org.codehaus.sonar:sonar-core-maven-plugin:1.5.1:batch] (aggregator-style)
> [INFO]
> ------------------------------------------------------------------------
> [WARNING] POM for
> 'org.codehaus.sonar.runtime.jdbc-driver:parent:pom:20090129131738:compile'
> is invalid. It will be ignored for artifact resolution. R
> eason: Not a v4.0.0 POM. for project
> org.codehaus.sonar.runtime.jdbc-driver:parent at
> c:\bea\maven\repo\org\codehaus\sonar\runtime\jdbc-driver\parent\
> 20090129131738\parent-20090129131738.pom
> [WARNING] POM for
> 'org.codehaus.sonar.runtime.plugins:parent:pom:20090129131738:compile' is
> invalid. It will be ignored for artifact resolution. Reaso
> n: Not a v4.0.0 POM. for project org.codehaus.sonar.runtime.plugins:parent
> at c:\bea\maven\repo\org\codehaus\sonar\runtime\plugins\parent\200901291317
> 38\parent-20090129131738.pom
> [INFO] [sonar-core:batch]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 35 seconds
> [INFO] Finished at: Thu Jan 29 14:19:23 GMT 2009
> [INFO] Final Memory: 11M/28M
> [INFO]
> ------------------------------------------------------------------------
>
> ----------------------------------------------------------------------------------------
> --
> View this message in context:
> http://www.nabble.com/user%40sonar.codehaus.org-tp21728560p21728560.html
> Sent from the Sonar mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>


--
Freddy Mallet
SonarSource S.A.

Sonar , embrace Quality
http://sonar.codehaus.org
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: user@sonar.codehaus.org

Freddy Mallet
Good news Chris, have fun with Sonar !

On Fri, Jan 30, 2009 at 3:40 PM, ccdigix <[hidden email]> wrote:

Thanks for that Freddy, it turns out there was an issue with Maven going to
the Atlassian repository in my settings first, and what it was getting back
was confusing it and not even bothering going to the local Sonar repository.
After removing the Atlassian one it works fine. I am very impressed with the
results.

Many thanks again,

Chris



Freddy Mallet wrote:
>
> Hi Chris,
>
> You shouldn't get the following warnings in your maven log :
>
> [WARNING] POM for
> 'org.codehaus.sonar.runtime.
>>
>> jdbc-driver:parent:pom:20090129131738:compile'
>> is invalid. It will be ignored for artifact resolution. R
>> eason: Not a v4.0.0 POM. for project
>> org.codehaus.sonar.runtime.jdbc-driver:parent at
>> c:\bea\maven\repo\org\codehaus\sonar\runtime\jdbc-driver\parent\
>> 20090129131738\parent-20090129131738.pom
>
>
> Looks like, those artifacts are corrupted in your maven repository.
>
> Could you try to delete the directory
> "c:\bea\maven\repo\org\codehaus\sonar"
> and launch again the maven command:
>
> mvn clean
> resources:copy-resourcesorg.codehaus.sonar:sonar-maven-plugin:1.5.1:sonar
>
> regards
>
> Freddy
>
> On Thu, Jan 29, 2009 at 4:01 PM, ccdigix <[hidden email]>
> wrote:
>
>>
>> Hi,
>>
>> I am trying to get Sonar working with a non-maven project and the
>> command...
>>
>> mvn clean resources:copy-resources
>> org.codehaus.sonar:sonar-maven-plugin:1.5.1:sonar
>>
>> ...is successful but when I try to click on the project in the Sonar web
>> page I get the following error:
>>
>>
>> ----------------------------------------------------------------------------------------
>> NoMethodError in ProjectController#index
>> undefined method `each_pair' for nil:NilClass
>> RAILS_ROOT: C:\BEA/sonar-1.5.1/war/sonar-web/WEB-INF
>>
>> Application Trace | Framework Trace | Full Trace
>> app/models/sonar/treemap.rb:102:in
>> `get_measures_by_snapshot_without_rule_and_rules_category'
>> app/models/sonar/treemap.rb:36:in `initialize'
>> app/controllers/project_controller.rb:200:in `init_treemap'
>> app/controllers/project_controller.rb:58:in `index'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in
>> `perform_action'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in
>> `call_filters'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in
>> `perform_action_with_filters'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
>> `perform_action_with_benchmark'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
>> `perform_action_with_benchmark'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in
>> `perform_action_with_rescue'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in
>> `perform_action_with_caching'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in
>> `cache'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in
>> `cache'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in
>> `perform_action_with_caching'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in
>> `process'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in
>> `process_with_filters'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in
>> `process_with_session_management_support'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in
>> `process'
>> :1
>>
>> file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-complete-1.1.5.jar!/benchmark.rb:293:in
>> `measure'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in
>> `handle_request'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in
>> `dispatch'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in
>> `dispatch_cgi'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in
>> `dispatch'
>>
>> file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/adapter/rails.rb:37:in
>> `serve_rails'
>>
>> file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/adapter/rails.rb:44:in
>> `call'
>>
>> file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/jruby/rack/rails.rb:145:in
>> `call'
>>
>> file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/handler/servlet.rb:17:in
>> `call'
>> app/models/sonar/treemap.rb:102:in
>> `get_measures_by_snapshot_without_rule_and_rules_category'
>> app/models/sonar/treemap.rb:36:in `initialize'
>> app/controllers/project_controller.rb:200:in `init_treemap'
>> app/controllers/project_controller.rb:58:in `index'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in
>> `perform_action'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in
>> `call_filters'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in
>> `perform_action_with_filters'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
>> `perform_action_with_benchmark'
>>
>> file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-complete-1.1.5.jar!/benchmark.rb:293:in
>> `measure'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
>> `perform_action_with_benchmark'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in
>> `perform_action_with_rescue'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in
>> `perform_action_with_caching'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in
>> `cache'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in
>> `cache'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in
>> `perform_action_with_caching'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in
>> `process'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in
>> `process_with_filters'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in
>> `process_with_session_management_support'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in
>> `process'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in
>> `handle_request'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in
>> `dispatch'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in
>> `dispatch_cgi'
>>
>> C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in
>> `dispatch'
>>
>> file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/adapter/rails.rb:37:in
>> `serve_rails'
>>
>> file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/adapter/rails.rb:44:in
>> `call'
>>
>> file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/jruby/rack/rails.rb:145:in
>> `call'
>>
>> file:/C:/BEA/sonar-1.5.1/war/sonar-web/WEB-INF/lib/jruby-rack-0.9.3.jar!/rack/handler/servlet.rb:17:in
>> `call'
>> :1
>> Request
>> Parameters:
>>
>> {"id"=>"uk.co.mandg.fodb:FODBAdapter",
>>  "width"=>200,
>>  "height"=>200,
>>  "display_branch_name"=>false,
>>  "link_url"=>"/project/index/_id_",
>>  "size_name"=>"ncss",
>>  "color_name"=>"rules_compliance"}
>>
>> Show session dump
>>
>> ---
>> flash: !map:ActionController::Flash::FlashHash {}
>>
>>
>> Response
>> Headers:
>>
>> {"Cache-Control"=>"no-cache",
>>  "cookie"=>[]}
>>
>>
>> ----------------------------------------------------------------------------------------
>>
>> Browsing other issues this would appear to be because Sonar couldn't find
>> the source code; my SNAPSHOTS table has entries in it but nothing in
>> SNAPSHOT_SOURCES. This is confusing as maven successfully found the
>> source
>> resources and copied them to the new sources folder. Please find below
>> some
>> files for reference.
>>
>> Many thanks for any help you can provide,
>>
>> Chris
>>
>>
>> pom.xml
>>
>> ----------------------------------------------------------------------------------------
>> <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/xsd/maven-4.0.0.xsd">
>>  <modelVersion>4.0.0</modelVersion>
>>  <groupId>uk.co.mandg.fodb</groupId>
>>  <artifactId>FODBAdapter</artifactId>
>>  <name>FODBAdapter</name>
>>  <version>0.0.1</version>
>>  <build>
>>        <sourceDirectory>${basedir}\target\sources</sourceDirectory>
>>        <plugins>
>>           <plugin>
>>              <groupId>org.apache.maven.plugins</groupId>
>>              <artifactId>maven-compiler-plugin</artifactId>
>>              <configuration>
>>                  <source>1.5</source>
>>                  <target>1.5</target>
>>              </configuration>
>>           </plugin>
>>           <plugin>
>>             <groupId>org.apache.maven.plugins</groupId>
>>             <artifactId>maven-resources-plugin</artifactId>
>>             <version>2.3</version>
>>                 <configuration>
>>
>> <outputDirectory>${basedir}\target\sources</outputDirectory>
>>                   <resources>
>>                     <resource>
>>
>>
>> <directory>C:/BEA/integration/gems/GemsFODBAdapter/GemsFODBAdapterPOJOs/src</directory>
>>                     </resource>
>>                   </resources>
>>                 </configuration>
>>           </plugin>
>>        </plugins>
>>  </build>
>>
>>  <properties>
>>        <sonar.light>true</sonar.light>
>>  </properties>
>> </project>
>>
>> ----------------------------------------------------------------------------------------
>>
>> sonar-pom.xml
>>
>> ----------------------------------------------------------------------------------------
>> <?xml version="1.0" encoding="UTF-8"?><project>
>>  <modelVersion>4.0.0</modelVersion>
>>  <groupId>uk.co.mandg.fodb</groupId>
>>  <artifactId>FODBAdapter</artifactId>
>>  <name>FODBAdapter</name>
>>  <version>0.0.1</version>
>>  <build>
>>
>>
>> <sourceDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target\sources</sourceDirectory>
>>    <scriptSourceDirectory>src/main/scripts</scriptSourceDirectory>
>>
>>
>> <testSourceDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\src\test\java</testSourceDirectory>
>>
>>
>> <outputDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target\classes</outputDirectory>
>>
>>
>> <testOutputDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target\test-classes</testOutputDirectory>
>>    <resources>
>>      <resource>
>>
>>
>> <directory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\src\main\resources</directory>
>>      </resource>
>>    </resources>
>>    <testResources>
>>      <testResource>
>>
>>
>> <directory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\src\test\resources</directory>
>>      </testResource>
>>    </testResources>
>>
>>
>> <directory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target</directory>
>>    <finalName>FODBAdapter-0.0.1</finalName>
>>    <pluginManagement>
>>      <plugins>
>>        <plugin>
>>          <artifactId>maven-antrun-plugin</artifactId>
>>          <version>1.1</version>
>>        </plugin>
>>        <plugin>
>>          <artifactId>maven-assembly-plugin</artifactId>
>>          <version>2.2-beta-2</version>
>>        </plugin>
>>        <plugin>
>>          <artifactId>maven-clean-plugin</artifactId>
>>          <version>2.2</version>
>>        </plugin>
>>        <plugin>
>>          <artifactId>maven-compiler-plugin</artifactId>
>>          <version>2.0.2</version>
>>        </plugin>
>>        <plugin>
>>          <artifactId>maven-dependency-plugin</artifactId>
>>          <version>2.0</version>
>>        </plugin>
>>        <plugin>
>>          <artifactId>maven-deploy-plugin</artifactId>
>>          <version>2.3</version>
>>        </plugin>
>>        <plugin>
>>          <artifactId>maven-ear-plugin</artifactId>
>>          <version>2.3.1</version>
>>        </plugin>
>>        <plugin>
>>          <artifactId>maven-ejb-plugin</artifactId>
>>          <version>2.1</version>
>>        </plugin>
>>        <plugin>
>>          <artifactId>maven-install-plugin</artifactId>
>>          <version>2.2</version>
>>        </plugin>
>>        <plugin>
>>          <artifactId>maven-jar-plugin</artifactId>
>>          <version>2.2</version>
>>        </plugin>
>>        <plugin>
>>          <artifactId>maven-javadoc-plugin</artifactId>
>>          <version>2.4</version>
>>        </plugin>
>>        <plugin>
>>          <artifactId>maven-plugin-plugin</artifactId>
>>          <version>2.4.1</version>
>>        </plugin>
>>        <plugin>
>>          <artifactId>maven-rar-plugin</artifactId>
>>          <version>2.2</version>
>>        </plugin>
>>        <plugin>
>>          <artifactId>maven-release-plugin</artifactId>
>>          <version>2.0-beta-7</version>
>>        </plugin>
>>        <plugin>
>>          <artifactId>maven-resources-plugin</artifactId>
>>          <version>2.2</version>
>>        </plugin>
>>        <plugin>
>>          <artifactId>maven-site-plugin</artifactId>
>>          <version>2.0-beta-6</version>
>>        </plugin>
>>        <plugin>
>>          <artifactId>maven-source-plugin</artifactId>
>>          <version>2.0.4</version>
>>        </plugin>
>>        <plugin>
>>          <artifactId>maven-surefire-plugin</artifactId>
>>          <version>2.4.2</version>
>>        </plugin>
>>        <plugin>
>>          <artifactId>maven-war-plugin</artifactId>
>>          <version>2.1-alpha-1</version>
>>        </plugin>
>>      </plugins>
>>    </pluginManagement>
>>    <plugins>
>>      <plugin>
>>        <artifactId>maven-compiler-plugin</artifactId>
>>        <version>2.0.2</version>
>>        <configuration>
>>          <source>1.5</source>
>>          <target>1.5</target>
>>        </configuration>
>>      </plugin>
>>      <plugin>
>>        <artifactId>maven-resources-plugin</artifactId>
>>        <version>2.3</version>
>>        <configuration>
>>
>>
>> <outputDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target\sources</outputDirectory>
>>          <resources>
>>            <resource>
>>
>>
>> <directory>C:/BEA/integration/gems/GemsFODBAdapter/GemsFODBAdapterPOJOs/src</directory>
>>            </resource>
>>          </resources>
>>        </configuration>
>>      </plugin>
>>      <plugin>
>>        <groupId>org.codehaus.sonar</groupId>
>>        <artifactId>sonar-maven-plugin</artifactId>
>>        <version>1.5.1</version>
>>      </plugin>
>>      <plugin>
>>        <artifactId>maven-clean-plugin</artifactId>
>>        <version>2.2</version>
>>      </plugin>
>>      <plugin>
>>        <groupId>org.codehaus.sonar</groupId>
>>        <artifactId>sonar-core-maven-plugin</artifactId>
>>        <version>1.5.1</version>
>>        <dependencies>
>>          <dependency>
>>            <groupId>org.codehaus.sonar.runtime.jdbc-driver</groupId>
>>            <artifactId>parent</artifactId>
>>            <version>20090129131738</version>
>>            <type>pom</type>
>>            <scope>compile</scope>
>>          </dependency>
>>          <dependency>
>>            <groupId>org.codehaus.sonar.runtime.plugins</groupId>
>>            <artifactId>parent</artifactId>
>>            <version>20090129131738</version>
>>            <type>pom</type>
>>            <scope>compile</scope>
>>          </dependency>
>>        </dependencies>
>>      </plugin>
>>    </plugins>
>>  </build>
>>  <repositories>
>>    <repository>
>>      <releases />
>>      <snapshots />
>>      <id>atlassian-public</id>
>>      <url>http://maven.atlassian.com/repository/public</url>
>>    </repository>
>>    <repository>
>>      <id>atlassian-m1-repository</id>
>>      <url>http://maven.atlassian.com/maven1</url>
>>      <layout>legacy</layout>
>>    </repository>
>>    <repository>
>>      <snapshots>
>>        <enabled>false</enabled>
>>      </snapshots>
>>      <id>central</id>
>>      <name>Maven Repository Switchboard</name>
>>      <url>http://repo1.maven.org/maven2</url>
>>    </repository>
>>    <repository>
>>      <releases>
>>        <updatePolicy>never</updatePolicy>
>>        <checksumPolicy>ignore</checksumPolicy>
>>      </releases>
>>      <snapshots>
>>        <enabled>false</enabled>
>>      </snapshots>
>>      <id>sonar</id>
>>      <name>Sonar server maven repository</name>
>>      <url>http://localhost:9000/deploy/maven</url>
>>    </repository>
>>  </repositories>
>>  <pluginRepositories>
>>    <pluginRepository>
>>      <releases />
>>      <snapshots />
>>      <id>atlassian-public</id>
>>      <url>http://maven.atlassian.com/repository/public</url>
>>    </pluginRepository>
>>    <pluginRepository>
>>      <releases>
>>        <updatePolicy>never</updatePolicy>
>>      </releases>
>>      <snapshots>
>>        <enabled>false</enabled>
>>      </snapshots>
>>      <id>central</id>
>>      <name>Maven Plugin Repository</name>
>>      <url>http://repo1.maven.org/maven2</url>
>>    </pluginRepository>
>>  </pluginRepositories>
>>  <reporting>
>>
>>
>> <outputDirectory>C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target/site</outputDirectory>
>>  </reporting>
>>  <properties>
>>    REMOVED FOR SECURITY PURPOSES
>>  </properties>
>> </project>
>>
>> ----------------------------------------------------------------------------------------
>>
>> maven log
>>
>> ----------------------------------------------------------------------------------------
>> C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs>mvn clean
>> resources:copy-resources
>> org.codehaus.sonar:sonar-maven-plugin:1.5.1:sonar
>> [INFO] Scanning for projects...
>> [INFO] Searching repository for plugin with prefix: 'resources'.
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building FODBAdapter
>> [INFO]    task-segment: [clean, resources:copy-resources]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [clean:clean]
>> [INFO] Deleting directory
>> C:\BEA\integration\gems\GemsFODBAdapter\GemsFODBAdapterPOJOs\target
>> [INFO] [resources:copy-resources]
>> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
>> resources, i.e. build is platform dependent!
>> [INFO] Copying 4 resources
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building FODBAdapter
>> [INFO]    task-segment:
>> [org.codehaus.sonar:sonar-maven-plugin:1.5.1:sonar]
>> (aggregator-style)
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [sonar:sonar]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building FODBAdapter
>> [INFO]    task-segment:
>> [org.codehaus.sonar:sonar-core-maven-plugin:1.5.1:dependencies]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [sonar-core:dependencies]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building FODBAdapter
>> [INFO]    task-segment:
>> [org.codehaus.sonar:sonar-core-maven-plugin:1.5.1:prepare]
>> [INFO]
>> ------------------------------------------------------------------------
>> [WARNING] POM for
>> 'org.codehaus.sonar.runtime.jdbc-driver:parent:pom:20090129131738:compile'
>> is invalid. It will be ignored for artifact resolution. R
>> eason: Not a v4.0.0 POM. for project
>> org.codehaus.sonar.runtime.jdbc-driver:parent at
>> c:\bea\maven\repo\org\codehaus\sonar\runtime\jdbc-driver\parent\
>> 20090129131738\parent-20090129131738.pom
>> [WARNING] POM for
>> 'org.codehaus.sonar.runtime.plugins:parent:pom:20090129131738:compile' is
>> invalid. It will be ignored for artifact resolution. Reaso
>> n: Not a v4.0.0 POM. for project
>> org.codehaus.sonar.runtime.plugins:parent
>> at
>> c:\bea\maven\repo\org\codehaus\sonar\runtime\plugins\parent\200901291317
>> 38\parent-20090129131738.pom
>> [INFO] [sonar-core:prepare]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building FODBAdapter
>> [INFO]    task-segment:
>> [org.codehaus.sonar:sonar-core-maven-plugin:1.5.1:collect]
>> [INFO]
>> ------------------------------------------------------------------------
>> [WARNING] POM for
>> 'org.codehaus.sonar.runtime.jdbc-driver:parent:pom:20090129131738:compile'
>> is invalid. It will be ignored for artifact resolution. R
>> eason: Not a v4.0.0 POM. for project
>> org.codehaus.sonar.runtime.jdbc-driver:parent at
>> c:\bea\maven\repo\org\codehaus\sonar\runtime\jdbc-driver\parent\
>> 20090129131738\parent-20090129131738.pom
>> [WARNING] POM for
>> 'org.codehaus.sonar.runtime.plugins:parent:pom:20090129131738:compile' is
>> invalid. It will be ignored for artifact resolution. Reaso
>> n: Not a v4.0.0 POM. for project
>> org.codehaus.sonar.runtime.plugins:parent
>> at
>> c:\bea\maven\repo\org\codehaus\sonar\runtime\plugins\parent\200901291317
>> 38\parent-20090129131738.pom
>> [INFO] [sonar-core:collect]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building FODBAdapter
>> [INFO]    task-segment:
>> [org.codehaus.sonar:sonar-core-maven-plugin:1.5.1:batch]
>> (aggregator-style)
>> [INFO]
>> ------------------------------------------------------------------------
>> [WARNING] POM for
>> 'org.codehaus.sonar.runtime.jdbc-driver:parent:pom:20090129131738:compile'
>> is invalid. It will be ignored for artifact resolution. R
>> eason: Not a v4.0.0 POM. for project
>> org.codehaus.sonar.runtime.jdbc-driver:parent at
>> c:\bea\maven\repo\org\codehaus\sonar\runtime\jdbc-driver\parent\
>> 20090129131738\parent-20090129131738.pom
>> [WARNING] POM for
>> 'org.codehaus.sonar.runtime.plugins:parent:pom:20090129131738:compile' is
>> invalid. It will be ignored for artifact resolution. Reaso
>> n: Not a v4.0.0 POM. for project
>> org.codehaus.sonar.runtime.plugins:parent
>> at
>> c:\bea\maven\repo\org\codehaus\sonar\runtime\plugins\parent\200901291317
>> 38\parent-20090129131738.pom
>> [INFO] [sonar-core:batch]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD SUCCESSFUL
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 35 seconds
>> [INFO] Finished at: Thu Jan 29 14:19:23 GMT 2009
>> [INFO] Final Memory: 11M/28M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> ----------------------------------------------------------------------------------------
>> --
>> View this message in context:
>> http://www.nabble.com/user%40sonar.codehaus.org-tp21728560p21728560.html
>> Sent from the Sonar mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>>
>
>
> --
> Freddy Mallet
> SonarSource S.A.
>
> Sonar , embrace Quality
> http://sonar.codehaus.org
>
>

--
View this message in context: http://www.nabble.com/undefined-method-%60each_pair%27-for-nil%3ANilClass-tp21728560p21748329.html
Sent from the Sonar mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





--
Freddy Mallet
SonarSource S.A.

Sonar , embrace Quality
http://sonar.codehaus.org
Loading...