sgoertzen / sonar-break-maven-plugin

Fail your maven build if sonar detects issues with the code
MIT License
10 stars 15 forks source link

This plugin is not able to query sonar server #57

Open SanithVarma opened 6 years ago

SanithVarma commented 6 years ago

Querying sonar for analysis on {my project} taking lot of time.

Its failing

Failed to execute goal com.github.sgoertzen:sonar-break-maven-plugin:1.2.5:sonar-break (default-cli) on project client: Error while running sonar break: Timed out while waiting for Sonar. Waited 2000 seconds. This time can be extended using the "waitForProcessingSeconds" configuration parameter. -> [Help 1]

here is my pom.xml related to this plugin

 <dependency>
        <groupId>com.github.sgoertzen</groupId>
        <artifactId>sonar-break-maven-plugin</artifactId>
        <version>1.2.5</version>
    </dependency>
<plugin>
             <groupId>org.sonarsource.scanner.maven</groupId>
    <artifactId>sonar-maven-plugin</artifactId>
    <version>3.4.1.1168</version>
        </plugin>
        <plugin>
            <groupId>com.github.sgoertzen</groupId>
            <artifactId>sonar-break-maven-plugin</artifactId>
            <version>1.2.5</version>
            <configuration>
                <sonarServer>http://localhost:9000</sonarServer>
                 <sonarLookBackSeconds>480</sonarLookBackSeconds>
                 <waitForProcessingSeconds>2000</waitForProcessingSeconds>
            </configuration>
        </plugin>

After debug I found this Query url not available yet: http://localhost:9000/api/resources/index?resource=com.infoarmor:client&metrics=quality_gate_details

iancesar commented 4 years ago

Same problem here