aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTal Gitelman <tal.gitelman@att.com>2019-01-10 17:44:52 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2019-01-21 15:38:38 +0000
commit1003aeb5392947fec84ee70301e649f0e13c57b4 (patch)
treeaab52507028ff3683f7af92239491be6906885b8
parent8b7eb2c7c60a8a8be540e810967bff8542c45cd1 (diff)
yaml and json validation maven plug in1.5.0
Change-Id: I62355149010d042c6d33dd81dd111f15cf4e0d85 Issue-ID: SDC-1955 Signed-off-by: Tal Gitelman <tal.gitelman@att.com>
-rw-r--r--pom.xml30
1 files changed, 30 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 7497f2d..02b4861 100644
--- a/pom.xml
+++ b/pom.xml
@@ -197,6 +197,36 @@
<artifactId>sonar-maven-plugin</artifactId>
<version>3.0.2</version>
</plugin>
+ <plugin>
+ <groupId>com.github.sylvainlaurent.maven</groupId>
+ <artifactId>yaml-json-validator-maven-plugin</artifactId>
+ <version>1.0.1</version>
+ <executions>
+ <execution>
+ <id>validate</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>validate</goal>
+ </goals>
+ <configuration>
+ <validationSets>
+ <validationSet>
+ <includes>
+ <include>src/main/resources/**/*.y*ml</include>
+ <include>src/test/resources/**/*.y*ml</include>
+ </includes>
+ </validationSet>
+ <validationSet>
+ <includes>
+ <include>src/main/resources/**/*.json</include>
+ <include>src/test/resources/**/*.json</include>
+ </includes>
+ </validationSet>
+ </validationSets>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>