Uploaded image for project: 'Apache Gora'
  1. Apache Gora
  2. GORA-368

Address flagged Sonar error in Gora package design

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 0.5
    • Fix Version/s: 0.7
    • Component/s: build process
    • Labels:
      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lewismc Lewis John McGibbney
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: