nandeeshb
(nandeesh)
December 5, 2019, 3:27pm
1
Hi Team,
we are seeing below issue while analysing the PR.
Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar (default-cli) on project messaging: PUT https://api.bitbucket.org/2.0/repositories/mediaiq/messaging/pullrequests/169/comments/127155637 returned a response status of 404 Not Found
If we delete this PR , for next PR it will be successful.
For every time , we dont want to delete this PR and try.
Is there any solution for this?
sonarqube version 7.6
we have this in pom file.
org.codehaus.mojo
sonar-maven-plugin
3.4.0.905
ganncamp
(G Ann Campbell)
December 6, 2019, 7:21pm
2
Hi,
It looks like you’ve pinned an old version of the scanner in your pom. I suggest you remove that; let Maven do its thing and apply the latest version. Older versions of the scanner call a URL that is indeed 404 now.
HTH,
Ann
nandeeshb
(nandeesh)
December 9, 2019, 6:14am
3
@ganncamp But we are using sonar-scanner maven plugin version is 3.4.0.905 even in old pom file of PR and new PR also.
You meant say , we have to use the latest version in pom? which is 3.7 ?
ganncamp
(G Ann Campbell)
December 9, 2019, 7:45pm
4
Hi,
I mean to say that you shouldn’t pin any version in your pom. Just remove that whole block and the right thing should happen when you analyze.
Ann
nandeeshb
(nandeesh)
December 27, 2019, 9:26am
5
Hi Ann,
Even after removing plugin version its the same issue. Can you please help on this, because of this stuck on many tasks.
Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar (default-cli) on project amap-repo: PUT https://api.bitbucket.org/2.0/repositories/mediaiq/amap-common-lib/pullrequests/175/comments/130003966 returned a response status of 404 Not Found -> [Help 1] 14:22:15 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar (default-cli) on project amap-repo: PUT https://api.bitbucket.org/2.0/repositories/mediaiq/amap-common-lib/pullrequests/175/comments/130003966 returned a response status of 404 Not Found 14:22:15 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) 14:22:15 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
ganncamp
(G Ann Campbell)
January 6, 2020, 6:51pm
7
Hi,
There’s not a lot of context to go on here, but getting a 404 during analysis means that somewhere a URL is misconfigured.
Ann
nandeeshb
(nandeesh)
January 7, 2020, 2:59pm
8
Its not an issue with URL, if we try to delete the PR and create a new PR ,next run it will be successful.
nandeeshb
(nandeesh)
March 23, 2020, 8:15am
9
hey gann,
https://api.bitbucket.org/2.0/repositories/mediaiq/scheduling-service/pullrequests/6/comments/140702334 , this url is miss configured.
Not able to find where to update this and even we checked with bitbucket team.