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