mibexsoftware / sonar-bitbucket-plugin

SonarQube plug-in to create pull request comments for found issues in Bitbucket Cloud
Other
122 stars 72 forks source link

Non-maven PHP project hosted on bitbucket #30

Closed jauyzed closed 8 years ago

jauyzed commented 8 years ago

Hello,

This might not be an issue but quick question about the plugin. I have a PHP project which is not based on maven, hosted on bitbucket. I do have jenkins job which is building this php project. I have integrated this plugin's config "mvn clean" before build on the job. I do have maven and sonarqube 5.6 configured correctly.

Here is the error: org.apache.maven.lifecycle.MissingProjectException: The goal you specified requires a project to execute but there is no POM in this directory

Thanks!

mrueegg commented 8 years ago

Hi,

When you run a Maven command, it expects that you have a pom.xml file in the current directory (unless you specify an explicit path to it). If you don't want to use Maven with your PHP project, you could use SonarRunner where you don't need a pom.xml file:

sonar-runner -Dsonar.analysis.mode=issues <other-options>

Best regards, Michael

jauyzed commented 8 years ago

Hi Michael,

Appreciate your quick reply. I am using sonarqube jenkins plugin which did the job for me.

Thanks Abe