aboutsummaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorTal Gitelman <tal.gitelman@att.com>2019-01-10 17:42:51 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2019-01-21 15:38:53 +0000
commitf88cee9d9e7e77dfdea743928199472dad7bde82 (patch)
tree698ce20a67f0ac72ed28d75037eb72300adb28d1 /pom.xml
parente10154ff631cf86a978899db8533e86bbc0e658e (diff)
yaml and json validation maven plug in
Change-Id: Ie7058a22595fbe30617756668ea2b6fd8333e6bf Issue-ID: SDC-1955 Signed-off-by: Tal Gitelman <tal.gitelman@att.com>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml31
1 files changed, 31 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index c64b5f5..a3e2699 100644
--- a/pom.xml
+++ b/pom.xml
@@ -260,6 +260,37 @@
<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>