+ Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'sonar'. [INFO] ------------------------------------------------------------------------ [INFO] Building testSonar [INFO] task-segment: [sonar:sonar] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] [sonar:sonar] [INFO] Sonar host: http://localhost:9000 [INFO] Sonar version: 1.9 [INFO] [sonar-core:internal] [INFO] Sonar JDBC URL: jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8 [INFO] Sonar JDBC login: sonar [INFO] Sonar JDBC driver: com.mysql.jdbc.Driver [INFO] Sonar branch: [INFO] testSonar Selected quality profile : own profile, language=java [INFO] testSonar Executing org.codehaus.mojo:findbugs-maven-plugin:[findbugs] [INFO] ------------------------------------------------------------------------ [INFO] Building testSonar [INFO] task-segment: [org.codehaus.mojo:findbugs-maven-plugin:1.2:findbugs] [INFO] ------------------------------------------------------------------------ [INFO] Preparing findbugs:findbugs [INFO] [resources:resources] [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory c:\a_arbeit\Masterarbeit\testSonar\src\main\resources Downloading: http://localhost:9000/deploy/maven/com/db4o/com.springsource.com.db4o.java5/6.3/com.springsource.com.db4o.java5-6.3.pom [INFO] Unable to find resource 'com.db4o:com.springsource.com.db4o.java5:pom:6.3' in repository sonar (http://localhost:9000/deploy/maven) Downloading: http://repository.codehaus.org/com/db4o/com.springsource.com.db4o.java5/6.3/com.springsource.com.db4o.java5-6.3.pom [INFO] Unable to find resource 'com.db4o:com.springsource.com.db4o.java5:pom:6.3' in repository central (http://repo1.maven.org/maven2) Downloading: http://localhost:9000/deploy/maven/org/jvnet/substance/3.3_01/substance-3.3_01.pom [INFO] Unable to find resource 'org.jvnet:substance:pom:3.3_01' in repository sonar (http://localhost:9000/deploy/maven) Downloading: http://repository.codehaus.org/org/jvnet/substance/3.3_01/substance-3.3_01.pom [INFO] Unable to find resource 'org.jvnet:substance:pom:3.3_01' in repository central (http://repo1.maven.org/maven2) [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] ************************************************************** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [findbugs:findbugs] [INFO] Using maximum effort. [INFO] Using low threshold. [INFO] Using FindBugs Version: 1.3.2 [INFO] Using low threshold. [INFO] Using low threshold. [INFO] Using the xdoc format [INFO] Using maximum effort. [INFO] Using low threshold. [INFO] Using low threshold. [INFO] Debugging is Off [INFO] Using bug include filter C:\a_arbeit\Masterarbeit\testSonar\target\sonar\findbugs-include.xml [INFO] No bug exclude filter. [INFO] Printing Errors [INFO] Printing Missing classes [INFO] Printing Source Roots [INFO] testSonar Executing org.apache.maven.plugins:maven-checkstyle-plugin:[checkstyle] [INFO] ------------------------------------------------------------------------ [INFO] Building testSonar [INFO] task-segment: [org.apache.maven.plugins:maven-checkstyle-plugin:2.2:checkstyle] [INFO] ------------------------------------------------------------------------ [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] ************************************************************** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [checkstyle:checkstyle] [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! [INFO] There are 21 checkstyle errors. [INFO] testSonar Executing org.apache.maven.plugins:maven-pmd-plugin:[pmd] [INFO] ------------------------------------------------------------------------ [INFO] Building testSonar [INFO] task-segment: [org.apache.maven.plugins:maven-pmd-plugin:2.4:pmd] [INFO] ------------------------------------------------------------------------ [INFO] [pmd:pmd] [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! [INFO] testSonar Executing org.codehaus.mojo:cobertura-maven-plugin:[cobertura] [INFO] ------------------------------------------------------------------------ [INFO] Building testSonar [INFO] task-segment: [org.codehaus.mojo:cobertura-maven-plugin:2.2:cobertura] [INFO] ------------------------------------------------------------------------ [INFO] Preparing cobertura:cobertura [INFO] [resources:resources] [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory c:\a_arbeit\Masterarbeit\testSonar\src\main\resources [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [cobertura:instrument] [INFO] Cobertura 1.9 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file Cobertura: Loaded information on 19 classes. Instrumenting 19 files to c:\a_arbeit\Masterarbeit\testSonar\target\generated-classes\cobertura Cobertura: Saved information on 19 classes. Instrument time: 188ms [INFO] Instrumentation was successful. [INFO] [resources:testResources] [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory c:\a_arbeit\Masterarbeit\testSonar\src\test\resources [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] [INFO] Surefire report directory: c:\a_arbeit\Masterarbeit\testSonar\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running de.fhs.AppTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec Results : Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] [cobertura:cobertura] [INFO] Cobertura 1.9 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file Cobertura: Loaded information on 19 classes. Report time: 250ms [INFO] Cobertura Report generation was successful. [INFO] testSonar Executing org.apache.maven.plugins:maven-surefire-plugin:[] [INFO] testSonar [class org.sonar.plugins.findbugs.FindbugsMavenCollector] executing [INFO] testSonar [class org.sonar.plugins.cpd.CpdMavenCollector] executing [INFO] testSonar Collecting duplications... [INFO] testSonar File suffixes : java [INFO] testSonar Exclusions : {} [WARN] testSonar CPD - File not found : c:\a_arbeit\Masterarbeit\testSonar\src\main\java\de\fhs\buhl\appres\AppartementDetail.java [INFO] testSonar [class org.sonar.plugins.checkstyle.CheckstyleMavenCollector] executing [INFO] testSonar [class org.sonar.plugins.pmd.PmdMavenCollector] executing [INFO] testSonar [class org.sonar.plugins.core.SaveProfileMavenCollector] executing [INFO] testSonar [class org.sonar.plugins.core.sources.ImportJavaSourcesMavenCollector] executing [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Can not execute Sonar [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Can not execute Sonar at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at org.apache.maven.cli.MavenCli.main(MavenCli.java:356) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Can not execute Sonar at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:87) at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65) at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:117) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678) ... 16 more Caused by: java.lang.NullPointerException at org.sonar.plugins.api.Java.newUnitTestClassFromAbsolutePath(Java.java:159) at org.sonar.plugins.core.sources.ImportJavaSourcesMavenCollector.createTestResource(ImportJavaSourcesMavenCollector.java:46) at org.sonar.plugins.api.maven.AbstractImportSourceMavenCollector.parseFiles(AbstractImportSourceMavenCollector.java:77) at org.sonar.plugins.api.maven.AbstractImportSourceMavenCollector.parseTestDirs(AbstractImportSourceMavenCollector.java:68) at org.sonar.plugins.api.maven.AbstractImportSourceMavenCollector.collect(AbstractImportSourceMavenCollector.java:56) at org.sonar.mojo.InternalMojo.executeCollectors(InternalMojo.java:294) at org.sonar.mojo.InternalMojo.processModules(InternalMojo.java:176) at org.sonar.mojo.InternalMojo.execute(InternalMojo.java:160) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483) at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:82) ... 20 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 21 seconds [INFO] Finished at: Mon Jun 01 18:13:22 CEST 2009 [INFO] Final Memory: 35M/113M [INFO] ------------------------------------------------------------------------