summaryrefslogtreecommitdiffstats
path: root/onboarding/pom.xml
diff options
context:
space:
mode:
authorvempo <vitaliy.emporopulo@amdocs.com>2017-08-29 18:15:04 +0300
committervempo <vitaliy.emporopulo@amdocs.com>2017-08-29 18:21:34 +0300
commit09d4f069e48a0b4ab7359bbcc3b299d222721230 (patch)
tree25d5c0677ebe0984e1f74f31ecd1100953b82228 /onboarding/pom.xml
parent7cd1156c3cab009146ca02989df394412d209483 (diff)
Set up static analysis for on-boarding
Configured PMD Maven plugin in the onboarding pom.xml, with a custom ruleset. Currently disabled by default, can be ran on demand. Change-Id: I0e7ba1aeb1aefcea86fc2534ebc62343057f7c34 Issue-ID: SDC-246 Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>
Diffstat (limited to 'onboarding/pom.xml')
-rw-r--r--onboarding/pom.xml56
1 files changed, 56 insertions, 0 deletions
diff --git a/onboarding/pom.xml b/onboarding/pom.xml
index 0e600287bf..36a36ee325 100644
--- a/onboarding/pom.xml
+++ b/onboarding/pom.xml
@@ -93,5 +93,61 @@
<ws.rs.version>2.0.1</ws.rs.version> <!-- New version 2.0.1 to fix blackduck violation Failing with comiplation issues-->
<zusammen.version>0.2.0</zusammen.version>
<zusammen-state-store.version>0.2.1</zusammen-state-store.version>
+ <skipSA>true</skipSA>
+ <build.tools.version>1.1.0-SNAPSHOT</build.tools.version>
</properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jxr-plugin</artifactId>
+ <version>2.5</version>
+ <configuration>
+ <skip>${skipSA}</skip>
+ </configuration>
+ <executions>
+ <execution>
+ <id>jxr-generation</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>jxr</goal>
+ <goal>test-jxr</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-pmd-plugin</artifactId>
+ <version>3.8</version>
+ <configuration>
+ <skip>${skipSA}</skip>
+ <aggregate>false</aggregate>
+ <targetJdk>${maven.compiler.target}</targetJdk>
+ <rulesets>
+ <ruleset>build-pmd-ruleset.xml</ruleset>
+ </rulesets>
+ </configuration>
+ <executions>
+ <execution>
+ <id>pmd-check</id>
+ <phase>validate</phase>
+ <goals>
+ <!-- violations fail build -->
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>org.openecomp.sdc</groupId>
+ <artifactId>build-tools</artifactId>
+ <version>${build.tools.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+
</project>