a6615228481c0cc68fdcaa46dd5c7a8916f1de45
[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
4         <modelVersion>4.0.0</modelVersion>
5         
6         <groupId>org.onap.sdc.sdc-tosca</groupId>
7         <artifactId>sdc-tosca</artifactId>
8         <name>sdc-sdc-tosca</name>
9         <description>SDC Tosca Parser JAR file for use by consumers</description>
10         <version>1.6.1-SNAPSHOT</version>
11         <packaging>jar</packaging>
12
13         <parent>
14                 <groupId>org.onap.oparent</groupId>
15                 <artifactId>oparent</artifactId>
16                 <version>2.0.0</version>
17                 <relativePath/>
18         </parent>
19
20         <properties>
21
22                 <!-- ==================== -->
23                 <!-- Generic properties -->
24                 <!-- ==================== -->
25                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
26
27                 <!-- ==================== -->
28                 <!-- Versions -->
29                 <!-- ==================== -->
30                 <!-- Global project version -->
31
32                 <!-- Dependencies projects version -->
33                 <!--<sonar.skipDesign>true</sonar.skipDesign>-->
34                 <!--<sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir>-->
35                 <sonar.jacoco.reportPath>${project.basedir}/target/jacoco.exec</sonar.jacoco.reportPath>
36                 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
37                 <sitePath>/content/sites/site/org/onap/sdc/sdc-tosca/${project.version}</sitePath>
38                 <snapshots.path>snapshots</snapshots.path>
39                 <releases.path>releases</releases.path>
40                 <!-- Sonar properties -->
41                 <sonar.sourceEncoding>${project.build.sourceEncoding}</sonar.sourceEncoding>
42                 <sonar.skipDesign>true</sonar.skipDesign>
43                 <sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir>
44                 <sonar.sources>.</sonar.sources>
45                 <sonar.exclusions>**/scripts/**/*</sonar.exclusions>
46                 <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions>
47                 <sonar.inclusions>app/**/*.js,server-mock/**/*.js,src/**/*.js,src/main/**/*.java</sonar.inclusions>
48                 <sonar.branch>${project.version}</sonar.branch>
49
50         </properties>
51
52         <dependencies>
53                 <dependency>
54                         <groupId>org.slf4j</groupId>
55                         <artifactId>slf4j-api</artifactId>
56                         <scope>compile</scope>
57                         <version>1.7.10</version>
58                 </dependency>
59                 <dependency>
60                         <groupId>org.slf4j</groupId>
61                         <artifactId>slf4j-log4j12</artifactId>
62                         <scope>test</scope>
63                         <version>1.7.10</version>
64                 </dependency>
65
66                 <dependency>
67                         <groupId>com.google.code.gson</groupId>
68                         <artifactId>gson</artifactId>
69                         <version>2.3.1</version>
70                         <scope>compile</scope>
71                 </dependency>
72
73                 <dependency>
74                         <groupId>org.functionaljava</groupId>
75                         <artifactId>functionaljava</artifactId>
76                         <version>4.2</version>
77                         <scope>compile</scope>
78                 </dependency>
79
80                 <dependency>
81                         <groupId>commons-io</groupId>
82                         <artifactId>commons-io</artifactId>
83                         <version>2.5</version>
84                         <scope>compile</scope>
85                 </dependency>
86
87                 <!-- YAML parser -->
88                 <dependency>
89                         <groupId>org.yaml</groupId>
90                         <artifactId>snakeyaml</artifactId>
91                         <version>1.14</version>
92                         <scope>compile</scope>
93                 </dependency>
94
95                 <!-- Apache Commons -->
96                 <dependency>
97                         <groupId>org.apache.commons</groupId>
98                         <artifactId>commons-lang3</artifactId>
99                         <version>3.5</version>
100                         <scope>compile</scope>
101                 </dependency>
102                 
103                 <dependency>
104                         <groupId>com.google.guava</groupId>
105                         <artifactId>guava</artifactId>
106                         <version>21.0</version>
107                         <scope>compile</scope>
108                 </dependency>
109                 <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
110                 <dependency>
111                     <groupId>com.fasterxml.jackson.core</groupId>
112                     <artifactId>jackson-databind</artifactId>
113                     <version>2.9.9</version>
114                 </dependency>
115
116                 <!-- jtosca Tosca Parser -->
117                 <dependency>
118                         <groupId>org.onap.sdc.jtosca</groupId>
119                         <artifactId>jtosca</artifactId>
120                         <version>1.6.0</version>
121                 </dependency>
122
123
124                 <!-- TEST -->
125                 <dependency>
126                         <groupId>org.eclipse.jetty</groupId>
127                         <artifactId>jetty-servlet</artifactId>
128                         <scope>test</scope>
129                         <version>9.4.18.v20190429</version>
130                 </dependency>
131
132                 <dependency>
133                         <groupId>org.eclipse.jetty</groupId>
134                         <artifactId>jetty-webapp</artifactId>
135                         <version>9.4.18.v20190429</version>
136                         <scope>test</scope>
137                 </dependency>
138
139
140                 <dependency>
141                         <groupId>org.testng</groupId>
142                         <artifactId>testng</artifactId>
143                         <version>6.11</version>
144                         <scope>test</scope>
145                 </dependency>
146
147                 <dependency>
148                         <groupId>org.mockito</groupId>
149                         <artifactId>mockito-all</artifactId>
150                         <version>1.10.19</version>
151                         <scope>test</scope>
152                 </dependency>
153         <dependency>
154             <groupId>junit</groupId>
155             <artifactId>junit</artifactId>
156             <version>4.11</version>
157             <scope>test</scope>
158         </dependency>
159
160     </dependencies>
161         
162         <reporting>
163                 <plugins>
164                         <plugin>
165                                 <groupId>org.apache.maven.plugins</groupId>
166                                 <artifactId>maven-javadoc-plugin</artifactId>
167                                 <version>2.10.4</version>
168                                 <configuration>
169                                         <failOnError>false</failOnError>
170                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
171                                         <docletArtifact>
172                                                 <groupId>org.umlgraph</groupId>
173                                                 <artifactId>umlgraph</artifactId>
174                                                 <version>5.6</version>
175                                         </docletArtifact>
176                                         <additionalparam>-views</additionalparam>
177                                         <useStandardDocletOptions>true</useStandardDocletOptions>
178                                 </configuration>
179                         </plugin>
180                 </plugins>
181         </reporting>
182
183         <build>
184                 <plugins>
185                         <plugin>
186                                 <groupId>org.apache.maven.plugins</groupId>
187                                 <artifactId>maven-site-plugin</artifactId>
188                                 <version>3.4</version>
189                                 <dependencies>
190                                         <dependency>
191                                                 <groupId>org.apache.maven.wagon</groupId>
192                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
193                                                 <version>2.10</version>
194                                         </dependency>
195                                 </dependencies>
196                         </plugin>
197
198                         <plugin>
199                                 <artifactId>maven-checkstyle-plugin</artifactId>
200                                 <version>2.17</version>
201                                 <configuration>
202                                         <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
203                                         <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
204                                 </configuration>
205                         </plugin>
206
207                         <plugin>
208                                 <groupId>org.jacoco</groupId>
209                                 <artifactId>jacoco-maven-plugin</artifactId>
210                                 <version>0.7.8</version>
211                                 <executions>
212                                         <!-- Unit-Tests -->
213                                         <execution>
214                                                 <id>prepare-agent</id>
215                                                 <goals>
216                                                         <goal>prepare-agent</goal>
217                                                 </goals>
218                                                 <configuration>
219                                                         <destFile>${sonar.jacoco.reportPath}</destFile>
220                                                 </configuration>
221                                         </execution>
222                                 </executions>
223                         </plugin>
224
225                         <plugin>
226                                 <groupId>org.apache.maven.plugins</groupId>
227                                 <artifactId>maven-compiler-plugin</artifactId>
228                                 <version>2.5.1</version>
229                                 <inherited>true</inherited>
230                                 <configuration>
231                                         <source>1.8</source>
232                                         <target>1.8</target>
233                                 </configuration>
234                         </plugin>
235                         <plugin>
236                                 <groupId>org.apache.maven.plugins</groupId>
237                                 <artifactId>maven-javadoc-plugin</artifactId>
238                                 <version>2.10.3</version>
239                                 <configuration />
240                         </plugin>
241                         <!-- Test -->
242                         <plugin>
243                                 <groupId>org.apache.maven.plugins</groupId>
244                                 <artifactId>maven-surefire-plugin</artifactId>
245                                 <version>2.19.1</version>
246                                 <configuration>
247                                         <argLine>${argLine} -Xmx2048m</argLine>
248                                         <includes>
249                                                 <include>**/ToscaParser***Test.class</include>
250                                         </includes>
251                                 </configuration>
252                         </plugin>
253
254                         <plugin>
255                                 <groupId>org.sonarsource.scanner.maven</groupId>
256                                 <artifactId>sonar-maven-plugin</artifactId>
257                                 <version>3.0.2</version>
258                         </plugin>
259
260                         <plugin>
261                                 <groupId>com.github.sylvainlaurent.maven</groupId>
262                                 <artifactId>yaml-json-validator-maven-plugin</artifactId>
263                                 <version>1.0.1</version>
264                                 <executions>
265                                         <execution>
266                                                 <id>validate</id>
267                                                 <phase>validate</phase>
268                                                 <goals>
269                                                         <goal>validate</goal>
270                                                 </goals>
271                                                 <configuration>
272                                                         <validationSets>
273                                                                 <validationSet>
274                                                                         <includes>
275                                                                                 <include>src/main/resources/**/*.y*ml</include>
276                                                                                 <include>src/test/resources/**/*.y*ml</include>
277                                                                         </includes>
278                                                                 </validationSet>
279                                                                 <validationSet>
280                                                                         <includes>
281                                                                                 <include>src/main/resources/**/*.json</include>
282                                                                                 <include>src/test/resources/**/*.json</include>
283                                                                         </includes>
284                                                                 </validationSet>
285                                                         </validationSets>
286                                                 </configuration>
287                                         </execution>
288                                 </executions>
289                         </plugin>
290                 </plugins>
291         </build>
292
293         <repositories>
294                 <repository>
295                         <id>central</id>
296                         <name>Official Maven repository</name>
297                         <url>http://repo2.maven.org/maven2/</url>
298                 </repository>
299                 <repository>
300                         <id>ecomp-releases</id>
301                         <name>Release Repository</name>
302                         <url>${nexus.proxy}/content/repositories/releases/</url>
303                 </repository>
304                 <repository>
305                         <id>ecomp-snapshots</id>
306                         <name>Snapshots Repository</name>
307                         <url>${nexus.proxy}/content/repositories/snapshots/</url>
308                 </repository>
309         </repositories>
310
311         <distributionManagement>
312                 <repository>
313                         <id>ecomp-releases</id>
314                         <name>Release Repository</name>
315                         <url>${nexus.proxy}/content/repositories/${releases.path}/</url>
316                 </repository>
317                 <snapshotRepository>
318                         <id>ecomp-snapshots</id>
319                         <name>Snapshot Repository</name>
320                         <url>${nexus.proxy}/content/repositories/${snapshots.path}/</url>
321                 </snapshotRepository>
322                 <site>
323                         <id>ecomp-site</id>
324                         <url>dav:${nexus.proxy}${sitePath}</url>
325                 </site>
326         </distributionManagement>
327 </project>