Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
0.5
-
None
Description
Right now the sonar:sonar job is configured on our trunk build to execute the following target
sonar:sonar -Dsonar.skipPackageDesign=true, this prevents the following error. We need to address this.
BTW, to reproduce this error, you can download sonarqube and run the Sonar analysis from here
http://www.sonarqube.org/downloads/
[ERROR] Failed to execute goal
org.codehaus.sonar:sonar-maven-plugin:4.3:sonar (default-cli) on project
imap-core: Directory contains files belonging to different packages :
/path/to/some/project/sources/package Please fix your source code or use
sonar.skipPackageDesign=true to continue the analysis. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal org.codehaus.sonar:sonar-maven-plugin:4.3:sonar
(default-cli) on project imap-core: Directory contains files belonging
to different packages : /path/to/some/project/sources/package Please fix
your source code or use sonar.skipPackageDesign=true to continue the
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:108)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
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:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Del