[ https://issues.apache.org/jira/browse/GORA-368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14877305#comment-14877305 ]
Furkan KAMACI commented on GORA-368: ------------------------------------ So we can close it :) > Address flagged Sonar error in Gora package design > -------------------------------------------------- > > Key: GORA-368 > URL: https://issues.apache.org/jira/browse/GORA-368 > Project: Apache Gora > Issue Type: Improvement > Components: build process > Affects Versions: 0.5 > Reporter: Lewis John McGibbney > Fix For: 0.7 > > > 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 -- This message was sent by Atlassian JIRA (v6.3.4#6332)