Migrate TestNG to Junit5
[sdc/sdc-tosca.git] / sdc-tosca / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
5     <modelVersion>4.0.0</modelVersion>
6
7     <artifactId>sdc-tosca</artifactId>
8     <name>sdc-tosca</name>
9     <description>SDC Tosca Parser JAR file for use by consumers</description>
10     <packaging>jar</packaging>
11
12     <parent>
13         <groupId>org.onap.sdc.sdc-tosca</groupId>
14         <artifactId>sdc-tosca-jtosca</artifactId>
15         <version>1.6.6-SNAPSHOT</version>
16     </parent>
17
18     <dependencies>
19         <dependency>
20             <groupId>org.projectlombok</groupId>
21             <artifactId>lombok</artifactId>
22         </dependency>
23         <!-- jtosca Tosca Parser -->
24         <dependency>
25             <groupId>org.onap.sdc.sdc-tosca</groupId>
26             <artifactId>jtosca</artifactId>
27             <version>${project.version}</version>
28         </dependency>
29
30         <dependency>
31             <groupId>com.fasterxml.jackson.core</groupId>
32             <artifactId>jackson-databind</artifactId>
33             <version>2.13.2.2</version>
34         </dependency>
35
36         <dependency>
37             <groupId>com.fasterxml.jackson.core</groupId>
38             <artifactId>jackson-core</artifactId>
39             <version>2.13.2</version>
40         </dependency>
41
42         <!-- Apache Commons -->
43         <dependency>
44             <groupId>org.apache.commons</groupId>
45             <artifactId>commons-lang3</artifactId>
46             <version>3.12.0</version>
47             <scope>compile</scope>
48         </dependency>
49
50         <!-- TEST -->
51         <dependency>
52             <groupId>org.mockito</groupId>
53             <artifactId>mockito-all</artifactId>
54             <version>1.10.19</version>
55             <scope>test</scope>
56         </dependency>
57         <!-- Provides everything you need to write JUnit 5 Jupiter tests. -->
58         <dependency>
59             <groupId>org.junit.jupiter</groupId>
60             <artifactId>junit-jupiter</artifactId>
61             <scope>test</scope>
62         </dependency>
63         <!-- Enables any legacy JUnit 3 and JUnit 4 tests you may have. Not needed for JUnit 5 tests. -->
64         <dependency>
65             <groupId>org.junit.vintage</groupId>
66             <artifactId>junit-vintage-engine</artifactId>
67             <scope>test</scope>
68         </dependency>
69     </dependencies>
70
71     <reporting>
72         <plugins>
73             <plugin>
74                 <groupId>org.apache.maven.plugins</groupId>
75                 <artifactId>maven-javadoc-plugin</artifactId>
76                 <configuration>
77                     <failOnError>false</failOnError>
78                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
79                     <docletArtifact>
80                         <groupId>org.umlgraph</groupId>
81                         <artifactId>umlgraph</artifactId>
82                         <version>5.6</version>
83                     </docletArtifact>
84                     <additionalparam>-views</additionalparam>
85                     <useStandardDocletOptions>true</useStandardDocletOptions>
86                 </configuration>
87             </plugin>
88         </plugins>
89     </reporting>
90
91     <build>
92         <plugins>
93             <plugin>
94                 <groupId>org.apache.maven.plugins</groupId>
95                 <artifactId>maven-checkstyle-plugin</artifactId>
96                 <configuration>
97                     <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
98                     <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
99                 </configuration>
100             </plugin>
101
102             <plugin>
103                 <groupId>org.jacoco</groupId>
104                 <artifactId>jacoco-maven-plugin</artifactId>
105                 <version>0.8.6</version>
106                 <executions>
107                     <!-- Unit-Tests -->
108                     <execution>
109                         <id>prepare-agent</id>
110                         <goals>
111                             <goal>prepare-agent</goal>
112                         </goals>
113                         <configuration>
114                             <destFile>${sonar.jacoco.reportPath}</destFile>
115                         </configuration>
116                     </execution>
117                 </executions>
118             </plugin>
119
120             <!-- Test -->
121             <plugin>
122                 <groupId>org.apache.maven.plugins</groupId>
123                 <artifactId>maven-surefire-plugin</artifactId>
124                 <configuration>
125                     <argLine>${argLine} -Xmx2048m</argLine>
126                     <includes>
127                         <include>**/ToscaParser***Test.class</include>
128                     </includes>
129                 </configuration>
130             </plugin>
131
132             <plugin>
133                 <groupId>com.github.sylvainlaurent.maven</groupId>
134                 <artifactId>yaml-json-validator-maven-plugin</artifactId>
135                 <version>1.0.1</version>
136                 <executions>
137                     <execution>
138                         <id>validate</id>
139                         <phase>validate</phase>
140                         <goals>
141                             <goal>validate</goal>
142                         </goals>
143                         <configuration>
144                             <validationSets>
145                                 <validationSet>
146                                     <includes>
147                                         <include>src/main/resources/**/*.y*ml</include>
148                                         <include>src/test/resources/**/*.y*ml</include>
149                                     </includes>
150                                 </validationSet>
151                                 <validationSet>
152                                     <includes>
153                                         <include>src/main/resources/**/*.json</include>
154                                         <include>src/test/resources/**/*.json</include>
155                                     </includes>
156                                 </validationSet>
157                             </validationSets>
158                         </configuration>
159                     </execution>
160                 </executions>
161             </plugin>
162         </plugins>
163     </build>
164
165     <repositories>
166         <repository>
167             <id>central</id>
168             <name>Official Maven repository</name>
169             <url>http://repo2.maven.org/maven2/</url>
170         </repository>
171         <repository>
172             <id>ecomp-releases</id>
173             <name>Release Repository</name>
174             <url>${nexus.proxy}/content/repositories/releases/</url>
175         </repository>
176         <repository>
177             <id>ecomp-snapshots</id>
178             <name>Snapshots Repository</name>
179             <url>${nexus.proxy}/content/repositories/snapshots/</url>
180         </repository>
181     </repositories>
182
183     <distributionManagement>
184         <repository>
185             <id>ecomp-releases</id>
186             <name>Release Repository</name>
187             <url>${nexus.proxy}/content/repositories/${releases.path}/</url>
188         </repository>
189         <snapshotRepository>
190             <id>ecomp-snapshots</id>
191             <name>Snapshot Repository</name>
192             <url>${nexus.proxy}/content/repositories/${snapshots.path}/</url>
193         </snapshotRepository>
194         <site>
195             <id>ecomp-site</id>
196             <url>dav:${nexus.proxy}${sitePath}</url>
197         </site>
198     </distributionManagement>
199 </project>