C:\workspaces\sonar\projects\rla3>mvn -e clean compile sonar:sonar + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'sonar'. [INFO] ------------------------------------------------------------------------ [INFO] Building Retail Loan Application [INFO] task-segment: [clean, compile] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] Deleting directory C:\workspaces\sonar\projects\rla3\target [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:\workspaces\sonar\projects\rla3\src\main\resources [INFO] [compiler:compile] [INFO] Compiling 1531 source files to C:\workspaces\sonar\projects\rla3\target\classes [INFO] ------------------------------------------------------------------------ [INFO] Building Retail Loan Application [INFO] task-segment: [sonar:sonar] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] [sonar:sonar] [INFO] Sonar host: http://192.168.150.188:9000 [INFO] Sonar version: 1.10RC2 [INFO] [sonar-core:internal] [INFO] Sonar JDBC URL: jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8 [INFO] Sonar JDBC login: root [INFO] Sonar JDBC driver: com.mysql.jdbc.Driver [INFO] Sonar branch: [INFO] ------------- Analyse Retail Loan Application... [INFO] Selected quality profile : Sonar way with Findbugs and alerts, language=java [INFO] Configure maven plugins... [INFO] Executing sensor class org.sonar.plugins.core.sensors.JavaSourceImporter [INFO] Executing sensor class org.sonar.plugins.core.sensors.AsynchronousMeasuresSensor [INFO] Executing sensor class org.sonar.plugins.findbugs.FindbugsSensor [INFO] ------------------------------------------------------------------------ [INFO] Building Retail Loan Application [INFO] task-segment: [org.codehaus.mojo:findbugs-maven-plugin:2.0.1: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:\workspaces\sonar\projects\rla3\src\main\resources [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 source root: [INFO] C:\workspaces\sonar\projects\rla3\target\classes [INFO] Using test source root: [INFO] C:\workspaces\sonar\projects\rla3\target\test-classes [INFO] Using normal effort. [INFO] Adding Source Directory: C:\workspaces\sonar\projects\rla3\src [INFO] Using low threshold. [INFO] Using FindBugs Version: 1.3.8 [INFO] Using low threshold. [INFO] Using low threshold. [INFO] Using the xdoc format [INFO] Using normal effort. [INFO] Using low threshold. [INFO] Using low threshold. [INFO] Debugging is Off [INFO] Using bug include filter C:\workspaces\sonar\projects\rla3\target\sonar\findbugs-include.xml [INFO] Using bug exclude filter C:\workspaces\sonar\projects\rla3\target\sonar\findbugs-exclude.xml [INFO] Printing Errors [INFO] Printing Missing classes [INFO] Printing Source Roots [INFO] Executing sensor class org.sonar.plugins.cobertura.CoberturaSensor [INFO] ------------------------------------------------------------------------ [INFO] Building Retail Loan Application [INFO] task-segment: [org.codehaus.mojo:cobertura-maven-plugin:2.3: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:\workspaces\sonar\projects\rla3\src\main\resources [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [cobertura:instrument] [INFO] Cobertura 1.9.2 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file Instrumenting 1542 files to C:\workspaces\sonar\projects\rla3\target\generated-classes\cobertura Cobertura: Saved information on 1542 classes. Instrument time: 3156ms [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:\workspaces\sonar\projects\rla3\src\test\resources [INFO] [compiler:testCompile] [INFO] Compiling 14 source files to C:\workspaces\sonar\projects\rla3\target\test-classes [INFO] [surefire:test] [INFO] Surefire report directory: C:\workspaces\sonar\projects\rla3\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running ro.company.product.dao.CompanyDAOTest Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec <<< FAILURE! Running ro.company.product.dao.MarcaDAOTest Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec <<< FAILURE! Running ro.company.product.dao.ComisDocDAOTest Tests run: 4, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE! Running ro.company.product.dao.buget.CoefFinanceServiceTest Tests run: 5, Failures: 5, Errors: 0, Skipped: 0, Time elapsed: 0 sec <<< FAILURE! Running ro.company.product.service.user.UserServiceTest Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE! Running ro.ucs.gdoc.marquer.ComisioaneMarquerTest Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0 sec <<< FAILURE! Running ro.company.product.rapoarte.Raport13Test Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec <<< FAILURE! Running ro.company.product.BaseTestCase Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0 sec <<< FAILURE! Running ro.company.product.bizlogic.TaxeComisTest Tests run: 5, Failures: 5, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE! Running ro.company.product.dao.PartenerDAOTest Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0 sec <<< FAILURE! Running ro.company.product.cereri.documente.DocumentTest Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE! Running ro.company.product.alocare.AlocareCereriServiceTest Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0 sec <<< FAILURE! Running ro.company.product.dao.cereri.CerereInfoAchizitiiDAOTest Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0 sec <<< FAILURE! Results : Failed tests: warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) warning(junit.framework.TestSuite$1) Tests run: 28, Failures: 28, Errors: 0, Skipped: 0 Cobertura: Loaded information on 1542 classes. Cobertura: Saved information on 1542 classes. [ERROR] There are test failures. Please refer to C:\workspaces\sonar\projects\rla3\target\surefire-reports for the individual test results. [INFO] [cobertura:cobertura] [INFO] Cobertura 1.9.2 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file Cobertura: Loaded information on 1542 classes. Report time: 4828ms [INFO] Cobertura Report generation was successful. [INFO] parsing C:\workspaces\sonar\projects\rla3\target\site\cobertura\coverage.xml [INFO] Executing sensor class org.sonar.plugins.cpd.CpdSensor [INFO] Executing sensor class org.sonar.plugins.checkstyle.CheckstyleSensor [INFO] ------------------------------------------------------------------------ [INFO] Building Retail Loan Application [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 2866 checkstyle errors. [WARNING] Unable to locate Source XRef to link to - DISABLED [INFO] Executing sensor class org.sonar.plugins.pmd.PmdSensor [INFO] ------------------------------------------------------------------------ [INFO] Building Retail Loan Application [INFO] task-segment: [org.apache.maven.plugins:maven-pmd-plugin:2.4:pmd] [INFO] ------------------------------------------------------------------------ [INFO] [pmd:pmd] [WARNING] Unable to locate Source XRef to link to - DISABLED [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! [INFO] Executing sensor class org.sonar.plugins.core.sensors.ProfileSensor [INFO] Executing sensor class org.sonar.plugins.core.sensors.ProjectLinksSensor [INFO] Executing sensor class org.sonar.plugins.core.sensors.VersionEventsSensor [INFO] Executing sensor class org.sonar.plugins.squid.SquidSensor [INFO] Starting audit... [INFO] Audit done. [INFO] Executing sensor class org.sonar.plugins.surefire.SurefireSensor [INFO] parsing C:\workspaces\sonar\projects\rla3\target\surefire-reports [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Can not execute Sonar Embedded error: Can not parse surefire reports Java inner classes are not supported yet. [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: org.sonar.api.utils.XmlParserException: Can not parse surefire reports at org.sonar.plugins.surefire.SurefireSensor.parseFiles(SurefireSensor.java:165) at org.sonar.plugins.surefire.SurefireSensor.collect(SurefireSensor.java:125) at org.sonar.plugins.surefire.SurefireSensor.analyse(SurefireSensor.java:68) at org.sonar.batch.core.SensorsExecutor.execute(SensorsExecutor.java:53) at org.sonar.batch.Batch.executeJobs(Batch.java:91) at org.sonar.batch.Batch.analyse(Batch.java:79) at org.sonar.batch.Batch.start(Batch.java:54) at org.sonar.batch.BatchMojo.executeBatch(BatchMojo.java:153) at org.sonar.batch.BatchMojo.execute(BatchMojo.java:145) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483) at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:82) ... 20 more Caused by: java.lang.IllegalArgumentException: Java inner classes are not supported yet. at org.sonar.api.resources.JavaFile.setKey(JavaFile.java:64) at org.sonar.api.resources.JavaFile.(JavaFile.java:51) at org.sonar.plugins.surefire.SurefireSensor.getUnitTestResource(SurefireSensor.java:238) at org.sonar.plugins.surefire.SurefireSensor.saveClassMeasure(SurefireSensor.java:233) at org.sonar.plugins.surefire.SurefireSensor.parseFiles(SurefireSensor.java:150) ... 30 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4 minutes 47 seconds [INFO] Finished at: Fri Jul 31 20:11:07 EEST 2009 [INFO] Final Memory: 50M/254M [INFO] ------------------------------------------------------------------------ C:\workspaces\sonar\projects\rla3>mvn -version Apache Maven 2.1.0 (r755702; 2009-03-18 21:10:27+0200) Java version: 1.6.0_14 Java home: c:\java\jdk\jdk1.6\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" C:\workspaces\sonar\projects\rla3>java -version java version "1.6.0_14" Java(TM) SE Runtime Environment (build 1.6.0_14-b08) Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing) C:\workspaces\sonar\projects\rla3>