blob: 7c8d5c78e7066ae3eae9b5800c04c44c8691671f [file] [log] [blame]
Wojciech Sliwka032ff222019-07-10 13:48:52 +02001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
4 Simulator
5 ================================================================================
6 Copyright (C) 2019 Nokia. All rights reserved.
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
20 -->
21
22<project xmlns="http://maven.apache.org/POM/4.0.0"
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25 <modelVersion>4.0.0</modelVersion>
26
27 <parent>
28 <groupId>org.onap.simulator</groupId>
29 <artifactId>simulator-parent</artifactId>
30 <version>5.0.0-SNAPSHOT</version>
31 </parent>
32
33 <artifactId>netconfsimulator</artifactId>
34 <version>5.0.0-SNAPSHOT</version>
35
36 <properties>
37 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38 <maven.compiler.source>1.8</maven.compiler.source>
39 <maven.compiler.target>1.8</maven.compiler.target>
40 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
41 <docker.registry>nexus3.onap.org:10003</docker.registry>
42 <docker.image.tag>latest</docker.image.tag>
43 <docker.image.name>onap/${project.artifactId}</docker.image.name>
44 <spring.boot.version>2.1.6.RELEASE</spring.boot.version>
45 <spring.kafka.version>2.2.7.RELEASE</spring.kafka.version>
46 <apache.httpclient.version>4.5.6</apache.httpclient.version>
47 <dependency.directory.name>libs</dependency.directory.name>
48 <dependency.directory.location>${project.build.directory}/${dependency.directory.name}
49 </dependency.directory.location>
50 <netopeer-saver-project-name>netopeer-change-saver</netopeer-saver-project-name>
51 <netopeer-saver-source-dir>${project.basedir}/netopeer-change-saver-native</netopeer-saver-source-dir>
52 <netopeer-saver-build-dir>${project.build.directory}/cmake</netopeer-saver-build-dir>
53 <netopeer-saver-executable-dir>${netopeer-saver-build-dir}/bin</netopeer-saver-executable-dir>
54 <skipITs>true</skipITs>
55 </properties>
56
57 <dependencies>
58 <dependency>
59 <groupId>org.springframework.boot</groupId>
60 <artifactId>spring-boot-starter</artifactId>
61 <version>${spring.boot.version}</version>
62 </dependency>
63 <dependency>
64 <groupId>org.springframework.boot</groupId>
65 <artifactId>spring-boot-starter-web</artifactId>
66 <version>${spring.boot.version}</version>
67 </dependency>
68 <dependency>
69 <groupId>org.projectlombok</groupId>
70 <artifactId>lombok</artifactId>
71 <version>1.18.2</version>
72 <scope>provided</scope>
73 </dependency>
74 <dependency>
75 <groupId>org.onosproject</groupId>
76 <artifactId>jnc</artifactId>
77 <version>1.0</version>
78 </dependency>
79 <dependency>
80 <groupId>org.springframework.boot</groupId>
81 <artifactId>spring-boot-starter-websocket</artifactId>
82 <version>${spring.boot.version}</version>
83 </dependency>
84 <dependency>
85 <groupId>javax.websocket</groupId>
86 <artifactId>javax.websocket-api</artifactId>
87 <version>1.1</version>
88 </dependency>
89
90 <!-- Kafka -->
91
92 <dependency>
93 <groupId>org.springframework.kafka</groupId>
94 <artifactId>spring-kafka</artifactId>
95 <version>${spring.kafka.version}</version>
96 </dependency>
97
98 <!-- TEST DEPENDENCIES -->
99
100 <dependency>
101 <groupId>org.assertj</groupId>
102 <artifactId>assertj-core</artifactId>
103 <version>3.9.1</version>
104 <scope>test</scope>
105 </dependency>
106 <dependency>
107 <groupId>org.mockito</groupId>
108 <artifactId>mockito-core</artifactId>
109 <version>2.18.3</version>
110 <scope>test</scope>
111 </dependency>
112 <dependency>
113 <groupId>org.junit.jupiter</groupId>
114 <artifactId>junit-jupiter-engine</artifactId>
115 <version>5.3.1</version>
116 <scope>test</scope>
117 </dependency>
118 <dependency>
119 <groupId>org.junit.vintage</groupId>
120 <artifactId>junit-vintage-engine</artifactId>
121 <version>5.3.1</version>
122 <scope>test</scope>
123 </dependency>
124 <dependency>
125 <groupId>junit</groupId>
126 <artifactId>junit</artifactId>
127 <version>4.12</version>
128 <scope>test</scope>
129 </dependency>
130 <dependency>
131 <groupId>org.springframework.boot</groupId>
132 <artifactId>spring-boot-starter-test</artifactId>
133 <version>${spring.boot.version}</version>
134 <scope>test</scope>
135 </dependency>
136 <dependency>
137 <groupId>org.springframework.kafka</groupId>
138 <artifactId>spring-kafka-test</artifactId>
139 <version>${spring.kafka.version}</version>
140 <scope>test</scope>
141 </dependency>
142 <dependency>
143 <groupId>org.bitbucket.radistao.test</groupId>
144 <artifactId>before-after-spring-test-runner</artifactId>
145 <version>0.1.0</version>
146 <scope>test</scope>
147 </dependency>
148 <dependency>
149 <groupId>com.palantir.docker.compose</groupId>
150 <artifactId>docker-compose-rule-junit4</artifactId>
151 <version>0.29.1</version>
152 <scope>test</scope>
153 </dependency>
154 <dependency>
155 <groupId>org.apache.httpcomponents</groupId>
156 <artifactId>httpclient</artifactId>
157 <version>4.5.6</version>
158 <scope>test</scope>
159 </dependency>
160 <dependency>
161 <groupId>org.apache.httpcomponents</groupId>
162 <artifactId>httpmime</artifactId>
163 <version>4.5.6</version>
164 <scope>test</scope>
165 </dependency>
166 <dependency>
167 <groupId>org.apache.httpcomponents</groupId>
168 <artifactId>httpclient</artifactId>
169 <version>${apache.httpclient.version}</version>
170 </dependency>
171 <dependency>
172 <groupId>org.apache.httpcomponents</groupId>
173 <artifactId>httpmime</artifactId>
174 <version>${apache.httpclient.version}</version>
175 </dependency>
176
177 <dependency>
178 <groupId>io.springfox</groupId>
179 <artifactId>springfox-swagger2</artifactId>
180 <version>2.9.2</version>
181 </dependency>
182 <dependency>
183 <groupId>io.springfox</groupId>
184 <artifactId>springfox-swagger-ui</artifactId>
185 <version>2.9.2</version>
186 </dependency>
187
188 </dependencies>
189
190 <build>
191 <plugins>
192 <plugin>
193 <groupId>org.apache.maven.plugins</groupId>
194 <artifactId>maven-dependency-plugin</artifactId>
195 <configuration>
196 <outputDirectory>${dependency.directory.location}</outputDirectory>
197 <includeScope>runtime</includeScope>
198 <silent>true</silent>
199 </configuration>
200 <executions>
201 <execution>
202 <id>copy-external-dependencies</id>
203 <phase>package</phase>
204 <goals>
205 <goal>copy-dependencies</goal>
206 </goals>
207 </execution>
208 </executions>
209 </plugin>
210 <plugin>
211 <artifactId>maven-surefire-plugin</artifactId>
212 <version>2.19</version>
213 <dependencies>
214 <dependency>
215 <groupId>org.junit.platform</groupId>
216 <artifactId>junit-platform-surefire-provider</artifactId>
217 <version>1.1.1</version>
218 </dependency>
219 </dependencies>
220 <configuration>
221 <detail>true</detail>
222 <printSummary>true</printSummary>
223 <useSystemClassLoader>false</useSystemClassLoader>
224 </configuration>
225 </plugin>
226 <plugin>
227 <groupId>org.apache.maven.plugins</groupId>
228 <artifactId>maven-failsafe-plugin</artifactId>
229 <version>2.19.1</version>
230 <configuration>
231 <skipITs>${skipITs}</skipITs>
232 </configuration>
233 <executions>
234 <execution>
235 <goals>
236 <goal>integration-test</goal>
237 <goal>verify</goal>
238 </goals>
239 </execution>
240 </executions>
241 </plugin>
242 <plugin>
243 <groupId>com.spotify</groupId>
244 <artifactId>docker-maven-plugin</artifactId>
245 <version>1.1.1</version>
246 <configuration>
247 <imageName>${docker.registry}/${docker.image.name}</imageName>
248 <dockerDirectory>${project.basedir}/docker</dockerDirectory>
249 <forceTags>true</forceTags>
250 <registryUrl>${docker.registry}</registryUrl>
251 <imageTags>
252 <tag>latest</tag>
253 <tag>${project.version}</tag>
254 <tag>${project.version}-${maven.build.timestamp}</tag>
255 </imageTags>
256 <resources>
257 <resource>
258 <targetPath>${dependency.directory.name}</targetPath>
259 <directory>${dependency.directory.location}</directory>
260 </resource>
261 <resource>
262 <targetPath>/</targetPath>
263 <directory>${project.build.directory}</directory>
264 <include>${project.build.finalName}.jar</include>
265 </resource>
266 </resources>
267 <forceTags>true</forceTags>
268 </configuration>
269 </plugin>
270 </plugins>
271 </build>
272 <repositories>
273 <repository>
274 <id>Palantir</id>
275 <url>https://dl.bintray.com/palantir/releases/</url>
276 </repository>
277 </repositories>
278</project>