sonarqube - Configure sonar and maven to analyze Webapp -
we need analyze webapp using sonar
the webapp has been developed using java, ejb's , adf. structure below - root directory main workspace .jws subdirectories individual project .jpr's, each having own pom.xml
a | | a.jws | pom.xml | | - b | - b/b.jpr | - b/pom.xml | - b/src | | - c | - c/c.jpr | - c/pom.xml | - c/src |
we build ear webapp maven root directory containing main .jws , main pom.xml
a/sonar-project.properties has entries below
# required metadata sonar.projectkey=a sonar.projectname=a sonar.projectversion=v1 # set modules ids sonar.modules=b,c # path source directories (required) sonar.sources=src sonar.sourceencoding=utf-8 sonar.language=java b.sonar.projectbasedir=b b.sonar.projectname=b c.sonar.projectbasedir=c c.sonar.projectname=c
when execute mvn sonar:sonar /a, build output shows sucess, , skipped b, c
sonar dashboard shows 0 loc covered , no issues reported
our objective mvn sonar:sonar build a, b, c , report data in sonar dashboard
any pointers ?
Comments
Post a Comment