aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuli Shlosberg <ys9693@att.com>2017-11-07 17:01:14 +0200
committerYuli Shlosberg <ys9693@att.com>2017-11-07 17:05:06 +0200
commitb4a13fb4abe20753a176a3958879d39fa920c4e5 (patch)
tree2c8e38e3e2b8764ac01b5e780b7a91ac578fd7c6
parentf3f4dc3d82aed8424f820747c19ab546d8ca02b6 (diff)
add sonar to JTOSCArelease-1.1.0
Change-Id: Ic87fa456ec3833a8c33b2d127c1599ab95fad9b9 Issue-Id: SDC-632 Signed-off-by: Yuli Shlosberg <ys9693@att.com>
-rw-r--r--pom.xml18
1 files changed, 16 insertions, 2 deletions
diff --git a/pom.xml b/pom.xml
index 6af670b..60cf4c9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -19,14 +19,23 @@
<!-- Global project version -->
<!-- Dependencies projects version -->
- <sonar.skipDesign>true</sonar.skipDesign>
- <sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir>
+ <!--<sonar.skipDesign>true</sonar.skipDesign>-->
+ <!--<sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir>-->
<sonar.jacoco.reportPath>${project.basedir}/target/jacoco.exec</sonar.jacoco.reportPath>
<nexus.proxy>https://nexus.onap.org</nexus.proxy>
<sitePath>/content/sites/site/org/openecomp/sdc/jtosca/${project.version}</sitePath>
<snapshots.path>snapshots</snapshots.path>
<releases.path>releases</releases.path>
<staging.profile.id>176c31dfe190a</staging.profile.id>
+ <!-- Sonar properties -->
+ <sonar.sourceEncoding>${project.build.sourceEncoding}</sonar.sourceEncoding>
+ <sonar.skipDesign>true</sonar.skipDesign>
+ <sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir>
+ <sonar.sources>.</sonar.sources>
+ <sonar.exclusions>**/scripts/**/*</sonar.exclusions>
+ <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions>
+ <sonar.inclusions>app/**/*.js,server-mock/**/*.js,src/**/*.js,src/main/**/*.java</sonar.inclusions>
+ <sonar.branch>${project.version}</sonar.branch>
</properties>
@@ -171,6 +180,11 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.sonarsource.scanner.maven</groupId>
+ <artifactId>sonar-maven-plugin</artifactId>
+ <version>3.0.2</version>
+ </plugin>
</plugins>
</build>