[ERROR] Unable to read and import the source file : 'C:\Users\Administrator\.hudson\jobs\Deeplan\wor

[INFO] [17:48:27.822] Execute org.apache.maven.plugins:maven-surefire-plugin:2.18:test done: 967 ms
[INFO] [17:48:27.822] Execute maven plugin maven-surefire-plugin done: 967 ms
[INFO] [17:48:27.822] Initializer JacocoMavenInitializer...
[INFO] [17:48:27.822] Initializer JacocoMavenInitializer done: 0 ms
[INFO] [17:48:27.822] Base dir: C:\Users\Administrator\.hudson\jobs\Deeplan\workspace\DEEPLAN\DEEPLAN-MR
[INFO] [17:48:27.822] Working dir: C:\Users\Administrator\.hudson\jobs\Deeplan\workspace\DEEPLAN\DEEPLAN-MR\target\sonar
[INFO] [17:48:27.822] Source dirs: C:\Users\Administrator\.hudson\jobs\Deeplan\workspace\DEEPLAN\DEEPLAN-MR\src
[INFO] [17:48:27.822] Test dirs: C:\Users\Administrator\.hudson\jobs\Deeplan\workspace\DEEPLAN\DEEPLAN-MR\src
[INFO] [17:48:27.822] Binary dirs: C:\Users\Administrator\.hudson\jobs\Deeplan\workspace\DEEPLAN\DEEPLAN-MR\target\classes
[INFO] [17:48:27.822] Source encoding: UTF-8, default locale: zh_CN
[INFO] [17:48:27.869] Sensor JavaSourceImporter...
[ERROR] Unable to read and import the source file : 'C:\Users\Administrator\.hudson\jobs\Deeplan\workspace\DEEPLAN\DEEPLAN-MR\src\main\java\cn\howso\deeplan\hbase\config\HBaseConfig.java' with the charset : 'UTF-8'.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] DEEPLAN ............................................ FAILURE [ 23.103 s]
[INFO] DEEPLAN-MRCOMN ..................................... SKIPPED
[INFO] DEEPLAN-MR ......................................... SUCCESS [  0.780 s]
[INFO] DEEPLAN-UTIL ....................................... SKIPPED
[INFO] DEEPLAN-BASE ....................................... SKIPPED
[INFO] DEEPLAN-CORE ....................................... SKIPPED
[INFO] DEEPLAN-BEAN ....................................... SKIPPED
[INFO] DEEPLAN-DAO ........................................ SKIPPED
[INFO] DEEPLAN-SERVICE .................................... SKIPPED
[INFO] DEEPLAN-WEB Maven Webapp ........................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.259 s
[INFO] Finished at: 2015-04-23T17:48:42+08:00
[INFO] Final Memory: 33M/605M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.4:sonar (default-cli) on project DEEPLAN: Can not execute SonarQube analysis: Unable to read and import the source file : 'C:\Users\Administrator\.hudson\jobs\Deeplan\workspace\DEEPLAN\DEEPLAN-MR\src\main\java\cn\howso\deeplan\hbase\config\HBaseConfig.java' with the charset : 'UTF-8'. Duplicate source for resource: main.java.cn.howso.deeplan.hbase.config.HBaseConfig -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.4:sonar (default-cli) on project DEEPLAN: Can not execute SonarQube analysis
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Can not execute SonarQube analysis
	at org.codehaus.mojo.sonar.bootstrap.InternalMojoBootstraper.executeMojo(InternalMojoBootstraper.java:111)
	at org.codehaus.mojo.sonar.bootstrap.InternalMojoBootstraper.start(InternalMojoBootstraper.java:69)
	at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:142)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
	... 19 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to read and import the source file : 'C:\Users\Administrator\.hudson\jobs\Deeplan\workspace\DEEPLAN\DEEPLAN-MR\src\main\java\cn\howso\deeplan\hbase\config\HBaseConfig.java' with the charset : 'UTF-8'.
	at org.sonar.maven.ExceptionHandling.handle(ExceptionHandling.java:37)
	at org.sonar.maven.SonarMojo.execute(SonarMojo.java:175)
	at org.codehaus.mojo.sonar.bootstrap.InternalMojoBootstraper.executeMojo(InternalMojoBootstraper.java:106)
	... 23 more
Caused by: org.sonar.api.utils.SonarException: Unable to read and import the source file : 'C:\Users\Administrator\.hudson\jobs\Deeplan\workspace\DEEPLAN\DEEPLAN-MR\src\main\java\cn\howso\deeplan\hbase\config\HBaseConfig.java' with the charset : 'UTF-8'.
	at org.sonar.plugins.java.JavaSourceImporter.importSource(JavaSourceImporter.java:86)
	at org.sonar.plugins.java.JavaSourceImporter.parseDirs(JavaSourceImporter.java:70)
	at org.sonar.plugins.java.JavaSourceImporter.analyse(JavaSourceImporter.java:64)
	at org.sonar.plugins.java.JavaSourceImporter.analyse(JavaSourceImporter.java:59)
	at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:72)
	at org.sonar.batch.phases.PhaseExecutor.execute(PhaseExecutor.java:114)
	at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:142)
	at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
	at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
	at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:187)
	at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:182)
	at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:180)
	at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:175)
	at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
	at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
	at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:57)
	at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:45)
	at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:82)
	at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
	at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
	at org.sonar.batch.bootstrap.BootstrapContainer.executeTask(BootstrapContainer.java:156)
	at org.sonar.batch.bootstrap.BootstrapContainer.doAfterStart(BootstrapContainer.java:144)
	at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
	at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
	at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:92)
	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:74)
	at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:45)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
	at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
	at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
	at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
	at org.sonar.runner.api.Runner.execute(Runner.java:90)
	at org.sonar.maven.SonarMojo.execute(SonarMojo.java:173)
	... 24 more
Caused by: org.sonar.api.resources.DuplicatedSourceException: Duplicate source for resource: main.java.cn.howso.deeplan.hbase.config.HBaseConfig
	at org.sonar.batch.index.SourcePersister.saveSource(SourcePersister.java:45)
	at org.sonar.batch.index.DefaultPersistenceManager.setSource(DefaultPersistenceManager.java:78)
	at org.sonar.batch.index.DefaultIndex.setSource(DefaultIndex.java:420)
	at org.sonar.batch.DefaultSensorContext.saveSource(DefaultSensorContext.java:161)
	at org.sonar.plugins.java.JavaSourceImporter.importSource(JavaSourceImporter.java:83)
	... 62 more
[ERROR] 
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Sonar analysis completed: FAILURE

            
阅读更多
个人分类: 问题
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭