Validation to ThreadsLocalHolder instead stdout
[sdc/sdc-tosca.git] / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2                  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3         <modelVersion>4.0.0</modelVersion>
4
5         <groupId>org.onap.sdc.jtosca</groupId>
6         <artifactId>jtosca</artifactId>
7         <version>1.6.0-SNAPSHOT</version>
8         <name>sdc-jtosca</name>
9
10         <parent>
11                 <groupId>org.onap.oparent</groupId>
12                 <artifactId>oparent</artifactId>
13                 <version>2.0.0</version>
14                 <relativePath/>
15         </parent>
16
17         <properties>
18
19                 <!-- ==================== -->
20                 <!-- Generic properties -->
21                 <!-- ==================== -->
22                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23
24                 <!-- ==================== -->
25                 <!-- Versions -->
26                 <hamcrest.version>2.1</hamcrest.version>
27                 <!-- ==================== -->
28                 <!-- Global project version -->
29
30                 <!-- Dependencies projects version -->
31                 <!--<sonar.skipDesign>true</sonar.skipDesign>-->
32                 <!--<sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir>-->
33                 <sonar.jacoco.reportPath>${project.basedir}/target/jacoco.exec</sonar.jacoco.reportPath>
34                 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
35                 <sitePath>/content/sites/site/org/onap/sdc/jtosca/${project.version}</sitePath>
36                 <snapshots.path>snapshots</snapshots.path>
37                 <releases.path>releases</releases.path>
38                 <!-- Sonar properties -->
39                 <sonar.sourceEncoding>${project.build.sourceEncoding}</sonar.sourceEncoding>
40                 <sonar.skipDesign>true</sonar.skipDesign>
41                 <sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir>
42                 <sonar.sources>.</sonar.sources>
43                 <sonar.exclusions>**/scripts/**/*</sonar.exclusions>
44                 <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions>
45                 <sonar.inclusions>app/**/*.js,server-mock/**/*.js,src/**/*.js,src/main/**/*.java</sonar.inclusions>
46                 <sonar.branch>${project.version}</sonar.branch>
47
48         </properties>
49
50         <dependencies>
51                 <!-- YAML parser -->
52                 <dependency>
53                         <groupId>org.yaml</groupId>
54                         <artifactId>snakeyaml</artifactId>
55                         <version>1.14</version>
56                         <scope>compile</scope>
57                 </dependency>
58
59                 <dependency>
60                         <groupId>org.slf4j</groupId>
61                         <artifactId>slf4j-api</artifactId>
62                         <version>1.7.25</version>
63                 </dependency>
64
65                 <!-- <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId>
66             <version>1.1.2</version> <scope>test</scope> </dependency> -->
67
68                 <dependency>
69                         <groupId>org.hamcrest</groupId>
70                         <artifactId>hamcrest</artifactId>
71                         <version>${hamcrest.version}</version>
72                         <scope>test</scope>
73                 </dependency>
74                 <dependency>
75                         <groupId>org.hamcrest</groupId>
76                         <artifactId>hamcrest-library</artifactId>
77                         <version>${hamcrest.version}</version>
78                         <scope>test</scope>
79                 </dependency>
80                 <dependency>
81                         <groupId>junit</groupId>
82                         <artifactId>junit</artifactId>
83                         <version>4.12</version>
84                         <scope>test</scope>
85                 </dependency>
86
87                 <dependency>
88                         <groupId>com.opencsv</groupId>
89                         <artifactId>opencsv</artifactId>
90                         <version>3.10</version>
91                         <scope>test</scope>
92                 </dependency>
93
94                 <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-io -->
95                 <dependency>
96                         <groupId>org.apache.commons</groupId>
97                         <artifactId>commons-io</artifactId>
98                         <version>1.3.2</version>
99                 </dependency>
100
101                 <dependency>
102                         <groupId>org.reflections</groupId>
103                         <artifactId>reflections</artifactId>
104                         <version>0.9.11</version>
105                         <exclusions>
106                                 <exclusion>  <!-- declare the exclusion here -->
107                                         <groupId>com.google.guava</groupId>
108                                         <artifactId>guava</artifactId>
109                                 </exclusion>
110                         </exclusions>
111                 </dependency>
112                 <dependency>
113                         <groupId>com.google.guava</groupId>
114                         <artifactId>guava</artifactId>
115                         <scope>compile</scope>
116                         <version>25.1-jre</version>
117                 </dependency>
118
119         </dependencies>
120
121         <reporting>
122                 <plugins>
123
124                         <plugin>
125                                 <groupId>org.apache.maven.plugins</groupId>
126                                 <artifactId>maven-javadoc-plugin</artifactId>
127                                 <version>2.10.4</version>
128                                 <configuration>
129                                         <failOnError>false</failOnError>
130                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
131                                         <docletArtifact>
132                                                 <groupId>org.umlgraph</groupId>
133                                                 <artifactId>umlgraph</artifactId>
134                                                 <version>5.6</version>
135                                         </docletArtifact>
136                                         <additionalparam>-views</additionalparam>
137                                         <useStandardDocletOptions>true</useStandardDocletOptions>
138                                 </configuration>
139                         </plugin>
140                 </plugins>
141         </reporting>
142
143         <build>
144                 <plugins>
145                         <plugin>
146                                 <artifactId>maven-checkstyle-plugin</artifactId>
147                                 <version>2.17</version>
148                                 <configuration>
149                                         <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
150                                         <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
151                                 </configuration>
152                         </plugin>
153                         <plugin>
154                                 <groupId>org.apache.maven.plugins</groupId>
155                                 <artifactId>maven-site-plugin</artifactId>
156                                 <version>3.4</version>
157                                 <dependencies>
158                                         <dependency>
159                                                 <groupId>org.apache.maven.wagon</groupId>
160                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
161                                                 <version>2.10</version>
162                                         </dependency>
163                                 </dependencies>
164                         </plugin>
165
166                         <plugin>
167                                 <groupId>org.jacoco</groupId>
168                                 <artifactId>jacoco-maven-plugin</artifactId>
169                                 <version>0.7.8</version>
170                                 <executions>
171                                         <!-- Unit-Tests -->
172                                         <execution>
173                                                 <id>prepare-agent</id>
174                                                 <goals>
175                                                         <goal>prepare-agent</goal>
176                                                 </goals>
177                                                 <configuration>
178                                                         <destFile>${sonar.jacoco.reportPath}</destFile>
179                                                 </configuration>
180                                         </execution>
181                                 </executions>
182                         </plugin>
183
184                         <plugin>
185                                 <groupId>org.apache.maven.plugins</groupId>
186                                 <artifactId>maven-compiler-plugin</artifactId>
187                                 <version>2.5.1</version>
188                                 <inherited>true</inherited>
189                                 <configuration>
190                                         <source>1.8</source>
191                                         <target>1.8</target>
192                                 </configuration>
193                         </plugin>
194                         <plugin>
195                                 <groupId>org.apache.maven.plugins</groupId>
196                                 <artifactId>maven-javadoc-plugin</artifactId>
197                                 <version>2.10.3</version>
198                                 <configuration/>
199                         </plugin>
200                         <!-- Test -->
201                         <plugin>
202                                 <groupId>org.apache.maven.plugins</groupId>
203                                 <artifactId>maven-surefire-plugin</artifactId>
204                                 <version>2.19.1</version>
205                                 <configuration>
206                                         <includes>
207                                                 <include>*/*</include>
208                                         </includes>
209                                 </configuration>
210                         </plugin>
211                         <plugin>
212                                 <groupId>org.sonarsource.scanner.maven</groupId>
213                                 <artifactId>sonar-maven-plugin</artifactId>
214                                 <version>3.0.2</version>
215                         </plugin>
216                         <plugin>
217                                 <groupId>com.github.sylvainlaurent.maven</groupId>
218                                 <artifactId>yaml-json-validator-maven-plugin</artifactId>
219                                 <version>1.0.1</version>
220                                 <executions>
221                                         <execution>
222                                                 <id>validate</id>
223                                                 <phase>validate</phase>
224                                                 <goals>
225                                                         <goal>validate</goal>
226                                                 </goals>
227                                                 <configuration>
228                                                         <validationSets>
229                                                                 <validationSet>
230                                                                         <includes>
231                                                                                 <include>src/main/resources/**/*.y*ml</include>
232                                                                                 <include>src/test/resources/**/*.y*ml</include>
233                                                                         </includes>
234                                                                 </validationSet>
235                                                                 <validationSet>
236                                                                         <includes>
237                                                                                 <include>src/main/resources/**/*.json</include>
238                                                                                 <include>src/test/resources/**/*.json</include>
239                                                                         </includes>
240                                                                 </validationSet>
241                                                         </validationSets>
242                                                 </configuration>
243                                         </execution>
244                                 </executions>
245                         </plugin>
246                 </plugins>
247         </build>
248
249         <repositories>
250                 <repository>
251                         <id>central</id>
252                         <name>Official Maven repository</name>
253                         <url>http://repo2.maven.org/maven2/</url>
254                 </repository>
255                 <repository>
256                         <id>onap-releases</id>
257                         <name>Release Repository</name>
258                         <url>${nexus.proxy}/content/repositories/releases/</url>
259                 </repository>
260                 <repository>
261                         <id>onap-snapshots</id>
262                         <name>Snapshots Repository</name>
263                         <url>${nexus.proxy}/content/repositories/snapshots/</url>
264                 </repository>
265         </repositories>
266
267         <distributionManagement>
268                 <repository>
269                         <id>onap-releases</id>
270                         <name>Release Repository</name>
271                         <url>${nexus.proxy}/content/repositories/${releases.path}/</url>
272                 </repository>
273                 <snapshotRepository>
274                         <id>onap-snapshots</id>
275                         <name>Snapshot Repository</name>
276                         <url>${nexus.proxy}/content/repositories/${snapshots.path}/</url>
277                 </snapshotRepository>
278                 <site>
279                         <id>onap-site</id>
280                         <url>dav:${nexus.proxy}${sitePath}</url>
281                 </site>
282         </distributionManagement>
283
284 </project>