{"action":"created","issue":{"url":"https://api.github.com/repos/sgoertzen/sonar-break-maven-plugin/issues/30","repository_url":"https://api.github.com/repos/sgoertzen/sonar-break-maven-plugin","labels_url":"https://api.github.com/repos/sgoertzen/sonar-break-maven-plugin/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/sgoertzen/sonar-break-maven-plugin/issues/30/comments","events_url":"https://api.github.com/repos/sgoertzen/sonar-break-maven-plugin/issues/30/events","html_url":"https://github.com/sgoertzen/sonar-break-maven-plugin/issues/30","id":174234270,"number":30,"title":"Failed to execute goal - always timed out","user":{"login":"yuvarajapril91","id":21358650,"avatar_url":"https://avatars.githubusercontent.com/u/21358650?v=3","gravatar_id":"","url":"https://api.github.com/users/yuvarajapril91","html_url":"https://github.com/yuvarajapril91","followers_url":"https://api.github.com/users/yuvarajapril91/followers","following_url":"https://api.github.com/users/yuvarajapril91/following{/other_user}","gists_url":"https://api.github.com/users/yuvarajapril91/gists{/gist_id}","starred_url":"https://api.github.com/users/yuvarajapril91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuvarajapril91/subscriptions","organizations_url":"https://api.github.com/users/yuvarajapril91/orgs","repos_url":"https://api.github.com/users/yuvarajapril91/repos","events_url":"https://api.github.com/users/yuvarajapril91/events{/privacy}","received_events_url":"https://api.github.com/users/yuvarajapril91/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-31T10:07:17Z","updated_at":"2016-09-13T14:02:00Z","closed_at":"2016-09-13T14:02:00Z","body":"I'm trying to build my code with sonar-break-maven-plugin 1.2, sonar-maven-plugin 3.0.2 in Maven 3.0.4. Irrespective of the Quality Gate status in sonarqube(5.5), the goal always fails with timeout.\r\n\r\nThe values for sonarLookBackSeconds and waitForProcessingSeconds - tried all the default values and max 600 seconds too, still it gets timed out always.\r\n\r\nLogs:\r\n[DEBUG] Configuring mojo com.github.sgoertzen:sonar-break-maven-plugin:1.2:sonar-break from plugin realm ClassRealm[plugin>com.github.sgoertzen:sonar-break-maven-plugin:1.2, parent: sun.misc.Launcher$AppClassLoader@19134f4]\r\n[DEBUG] Configuring mojo 'com.github.sgoertzen:sonar-break-maven-plugin:1.2:sonar-break' with basic configurator -->\r\n[DEBUG]   (f) sonarLookBackSeconds = 10\r\n[DEBUG]   (f) sonarServer = http://localhost:9000\r\n[DEBUG]   (f) waitForProcessingSeconds = 20\r\n[DEBUG] -- end configuration --\r\n[INFO] Querying sonar for analysis on appName, version: 1.0.0\r\n[DEBUG] Parameter sonarLookBackSeconds set to value of 10\r\n[DEBUG] Parameter waitForProcessingSeconds set to value of 20\r\n[DEBUG] Built a sonar query url of: http://localhost:9000/api/resources/index?resource=appName&metrics=quality_gate_details\r\n[DEBUG] Got a valid response of 200 from http://localhost:9000\r\n[DEBUG] Got a valid response of 200 from http://localhost:9000/api/resources/index?resource=appName&metrics=quality_gate_details\r\n[DEBUG] Sleeping while waiting for sonar to process job.  Target Version: 1.0.0.  Sonar reporting Version: 1.0.0.  Looking back until: 2016-08-31T15:29:53.286+05:30  Last result time: 2016-08-31T14:52:54.000+05:30\r\n[DEBUG] Got a valid response of 200 from http://localhost:9000/api/resources/index?resource=appName&metrics=quality_gate_details\r\n[DEBUG] Sleeping while waiting for sonar to process job.  Target Version: 1.0.0.  Sonar reporting Version: 1.0.0.  Looking back until: 2016-08-31T15:29:53.286+05:30  Last result time: 2016-08-31T14:52:54.000+05:30\r\n[INFO]                                                                         \r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Skipping appName Maven Webapp\r\n[INFO] This project has been banned from the build due to previous failures.\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Reactor Summary:\r\n[INFO] \r\n[INFO] appName ................................. FAILURE [26.557s]\r\n[INFO] appName1......................................... SKIPPED\r\n[INFO] appName2.......................................... SKIPPED\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] BUILD FAILURE\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Total time: 27.257s\r\n[INFO] Finished at: Wed Aug 31 15:30:27 IST 2016\r\n[INFO] Final Memory: 6M/18M\r\n[INFO] ------------------------------------------------------------------------\r\n[ERROR] Failed to execute goal com.github.sgoertzen:sonar-break-maven-plugin:1.2:sonar-break (default-cli) on project appName: Error while running sonar break: Timed out while waiting for Sonar.  Waited 20 seconds.  This time can be extended using the \"waitForProcessingSeconds\" configuration parameter. -> [Help 1]\r\norg.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.sgoertzen:sonar-break-maven-plugin:1.2:sonar-break (default-cli) on project appName: Error while running sonar break\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)\r\n\tat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)\r\n\tat org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)\r\n\tat org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)\r\n\tat org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)\r\n\tat org.apache.maven.cli.MavenCli.main(MavenCli.java:141)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)\r\nCaused by: org.apache.maven.plugin.MojoExecutionException: Error while running sonar break\r\n\tat com.sgoertzen.sonarbreak.SonarBreakMojo.execute(SonarBreakMojo.java:58)\r\n\tat org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)\r\n\t... 19 more\r\nCaused by: com.sgoertzen.sonarbreak.SonarBreakException: Timed out while waiting for Sonar.  Waited 20 seconds.  This time can be extended using the \"waitForProcessingSeconds\" configuration parameter.\r\n\tat com.sgoertzen.sonarbreak.QueryExecutor.fetchSonarStatusWithRetries(QueryExecutor.java:126)\r\n\tat com.sgoertzen.sonarbreak.QueryExecutor.execute(QueryExecutor.java:69)\r\n\tat com.sgoertzen.sonarbreak.SonarBreakMojo.execute(SonarBreakMojo.java:54)\r\n\t... 21 more\r\n[ERROR] \r\n[ERROR] \r\n[ERROR] For more information about the errors and possible solutions, please read the following articles:\r\n[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException\r\n"},"comment":{"url":"https://api.github.com/repos/sgoertzen/sonar-break-maven-plugin/issues/comments/246691057","html_url":"https://github.com/sgoertzen/sonar-break-maven-plugin/issues/30#issuecomment-246691057","issue_url":"https://api.github.com/repos/sgoertzen/sonar-break-maven-plugin/issues/30","id":246691057,"user":{"login":"yuvarajapril91","id":21358650,"avatar_url":"https://avatars.githubusercontent.com/u/21358650?v=3","gravatar_id":"","url":"https://api.github.com/users/yuvarajapril91","html_url":"https://github.com/yuvarajapril91","followers_url":"https://api.github.com/users/yuvarajapril91/followers","following_url":"https://api.github.com/users/yuvarajapril91/following{/other_user}","gists_url":"https://api.github.com/users/yuvarajapril91/gists{/gist_id}","starred_url":"https://api.github.com/users/yuvarajapril91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuvarajapril91/subscriptions","organizations_url":"https://api.github.com/users/yuvarajapril91/orgs","repos_url":"https://api.github.com/users/yuvarajapril91/repos","events_url":"https://api.github.com/users/yuvarajapril91/events{/privacy}","received_events_url":"https://api.github.com/users/yuvarajapril91/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T14:02:00Z","updated_at":"2016-09-13T14:02:00Z","body":"Hi Sgoertzen,\r\n\r\nFound the issue. Its with sonarLookBackSeconds. I increased it to some 180 seconds and it is working like a charm. Hence closing this issue.\r\n\r\nThanks for your immediate response."}}
{"actor":{"display_login":"yuvarajapril91"}}