blob: abfa615cc780ae7df47094f000a5ab9cea0c25bd [file] [log] [blame]
TamasBakai114c21c2019-03-19 09:56:28 +00001<?xml version="1.0" encoding="UTF-8"?>
2
3<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5 <modelVersion>4.0.0</modelVersion>
6
7 <parent>
8 <groupId>org.onap.oparent</groupId>
9 <artifactId>oparent</artifactId>
10 <version>1.2.1</version>
11 </parent>
12
13 <groupId>org.onap.masspnfsimulator</groupId>
14 <artifactId>masspnf-simulator</artifactId>
15 <version>1.0.0-SNAPSHOT</version>
16
17 <name>pnf-simulator-sandbox</name>
18
19 <properties>
20 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21 <maven.compiler.source>1.8</maven.compiler.source>
22 <maven.compiler.target>1.8</maven.compiler.target>
23 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
24
25 <simulator.main.class>org.onap.pnfsimulator.Main</simulator.main.class>
26 <docker.image.tag>latest</docker.image.tag>
27 <junit.jupiter.version>5.1.0</junit.jupiter.version>
28 <junit.vintage.version>5.1.0</junit.vintage.version>
29 <docker.image.name>onap/${project.artifactId}</docker.image.name>
30
31 <dependency.directory.name>libs</dependency.directory.name>
32 <dependency.directory.location>${project.build.directory}/${dependency.directory.name}
33 </dependency.directory.location>
34
35 <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
36 </properties>
37
38 <dependencies>
39 <dependency>
40 <groupId>org.springframework.boot</groupId>
41 <artifactId>spring-boot-starter</artifactId>
42 <version>2.0.2.RELEASE</version>
43 <exclusions>
44 <exclusion>
45 <groupId>org.springframework.boot</groupId>
46 <artifactId>spring-boot-starter-logging</artifactId>
47 </exclusion>
48 </exclusions>
49 </dependency>
50 <dependency>
51 <groupId>org.springframework.boot</groupId>
52 <artifactId>spring-boot-starter-web</artifactId>
53 <version>2.0.2.RELEASE</version>
54 </dependency>
55<dependency>
56 <groupId>com.fasterxml.jackson.dataformat</groupId>
57 <artifactId>jackson-dataformat-yaml</artifactId>
58 <version>2.9.8</version>
59</dependency>
60
61 <dependency>
62 <groupId>ch.qos.logback</groupId>
63 <artifactId>logback-classic</artifactId>
64 <version>1.2.3</version>
65 </dependency>
66 <dependency>
67 <groupId>ch.qos.logback</groupId>
68 <artifactId>logback-core</artifactId>
69 <version>1.2.3</version>
70 </dependency>
71 <dependency>
72 <groupId>org.slf4j</groupId>
73 <artifactId>slf4j-api</artifactId>
74 <version>1.7.25</version>
75 </dependency>
76 <dependency>
77 <groupId>commons-io</groupId>
78 <artifactId>commons-io</artifactId>
79 <version>2.6</version>
80 </dependency>
81 <dependency>
82 <groupId>org.json</groupId>
83 <artifactId>json</artifactId>
84 <version>20180130</version>
85 </dependency>
86 <dependency>
87 <groupId>org.everit.json</groupId>
88 <artifactId>org.everit.json.schema</artifactId>
89 <version>1.3.0</version>
90 </dependency>
91 <dependency>
92 <groupId>com.github.fge</groupId>
93 <artifactId>json-schema-validator</artifactId>
94 <version>2.2.6</version>
95 </dependency>
96 <dependency>
97 <groupId>com.google.code.gson</groupId>
98 <artifactId>gson</artifactId>
99 <version>2.8.2</version>
100 </dependency>
101 <dependency>
102 <groupId>org.apache.httpcomponents</groupId>
103 <artifactId>httpclient</artifactId>
104 <version>4.5.5</version>
105 </dependency>
106 <dependency>
107 <groupId>com.google.guava</groupId>
108 <artifactId>guava</artifactId>
109 <version>21.0</version>
110 </dependency>
111 <dependency>
112 <groupId>commons-cli</groupId>
113 <artifactId>commons-cli</artifactId>
114 <version>1.4</version>
115 </dependency>
116 <dependency>
117 <groupId>org.apache.commons</groupId>
118 <artifactId>commons-lang3</artifactId>
119 <version>3.7</version>
120 </dependency>
121 <dependency>
122 <groupId>org.onosproject</groupId>
123 <artifactId>jnc</artifactId>
124 <version>1.0</version>
125 </dependency>
126
127 <dependency>
128 <groupId>org.junit.jupiter</groupId>
129 <artifactId>junit-jupiter-engine</artifactId>
130 <version>5.1.1</version>
131 <scope>test</scope>
132 </dependency>
133 <dependency>
134 <groupId>org.junit.jupiter</groupId>
135 <artifactId>junit-jupiter-migrationsupport</artifactId>
136 <version>${junit.jupiter.version}</version>
137 <scope>test</scope>
138 </dependency>
139 <dependency>
140 <groupId>org.assertj</groupId>
141 <artifactId>assertj-core</artifactId>
142 <version>3.9.1</version>
143 <scope>test</scope>
144 </dependency>
145 <dependency>
146 <groupId>org.apache.sshd</groupId>
147 <artifactId>sshd-core</artifactId>
148 <version>0.9.0</version>
149 <scope>test</scope>
150 </dependency>
151 <dependency>
152 <groupId>org.mockito</groupId>
153 <artifactId>mockito-core</artifactId>
154 <version>2.18.3</version>
155 <scope>test</scope>
156 </dependency>
157
158 <dependency>
159 <groupId>org.springframework</groupId>
160 <artifactId>spring-test</artifactId>
161 <version>5.0.4.RELEASE</version>
162 <scope>test</scope>
163 </dependency>
164
165 <dependency>
166 <groupId>org.springframework.boot</groupId>
167 <artifactId>spring-boot-starter-test</artifactId>
168 <version>2.0.1.RELEASE</version>
169 <scope>test</scope>
170 </dependency>
171 </dependencies>
172
173 <build>
174 <plugins>
175 <plugin>
176 <groupId>org.apache.maven.plugins</groupId>
177 <artifactId>maven-assembly-plugin</artifactId>
178 <configuration>
179 <descriptor>src/assembly/resources.xml</descriptor>
180 <finalName>${project.artifactId}-${project.version}</finalName>
181 </configuration>
182 <executions>
183 <execution>
184 <phase>package</phase>
185 <goals>
186 <goal>single</goal>
187 </goals>
188 </execution>
189 </executions>
190 </plugin>
191 <plugin>
192 <groupId>org.apache.maven.plugins</groupId>
193 <artifactId>maven-compiler-plugin</artifactId>
194 <version>3.7.0</version>
195 <configuration>
196 <source>${maven.compiler.source}</source>
197 <target>${maven.compiler.target}</target>
198 <showWarnings>true</showWarnings>
199 <showDeprecation>true</showDeprecation>
200 </configuration>
201 </plugin>
202 <plugin>
203 <groupId>org.apache.maven.plugins</groupId>
204 <artifactId>maven-jar-plugin</artifactId>
205 <version>3.0.2</version>
206 <configuration>
207 <archive>
208 <manifestEntries>
209 <Main-Class>${simulator.main.class}</Main-Class>
210 <Build-Time>${maven.build.timestamp}</Build-Time>
211 </manifestEntries>
212 </archive>
213 </configuration>
214 </plugin>
215 <plugin>
216 <groupId>pl.project13.maven</groupId>
217 <artifactId>git-commit-id-plugin</artifactId>
218 <version>2.2.4</version>
219 <executions>
220 <execution>
221 <id>get-commit-info</id>
222 <goals>
223 <goal>revision</goal>
224 </goals>
225 </execution>
226 </executions>
227 <configuration>
228 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
229 <generateGitPropertiesFile>true</generateGitPropertiesFile>
230 <includeOnlyProperties>git.commit.id.abbrev</includeOnlyProperties>
231 </configuration>
232 </plugin>
233 <plugin>
234 <artifactId>maven-surefire-plugin</artifactId>
235 <version>2.19</version>
236 <dependencies>
237 <dependency>
238 <groupId>org.junit.platform</groupId>
239 <artifactId>junit-platform-surefire-provider</artifactId>
240 <version>1.1.1</version>
241 </dependency>
242 </dependencies>
243 <configuration>
244 <detail>true</detail>
245 <printSummary>true</printSummary>
246 </configuration>
247 </plugin>
248 <plugin>
249 <groupId>org.apache.maven.plugins</groupId>
250 <artifactId>maven-dependency-plugin</artifactId>
251 <configuration>
252 <outputDirectory>${dependency.directory.location}</outputDirectory>
253 <includeScope>runtime</includeScope>
254 <silent>true</silent>
255 </configuration>
256 <executions>
257 <execution>
258 <id>copy-external-dependencies</id>
259 <phase>package</phase>
260 <goals>
261 <goal>copy-dependencies</goal>
262 </goals>
263 </execution>
264 </executions>
265 </plugin>
266 <plugin>
267 <groupId>com.spotify</groupId>
268 <artifactId>docker-maven-plugin</artifactId>
269 <version>1.0.0</version>
270 <configuration>
271 <registryUrl>${onap.nexus.dockerregistry.daily}</registryUrl>
272 <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName>
273 <forceTags>true</forceTags>
274 <imageTags>
275 <tag>${project.version}</tag>
276 <tag>${project.version}-${maven.build.timestamp}</tag>
277 </imageTags>
278 <baseImage>openjdk:8-jre-alpine</baseImage>
279 <cmd>java -cp ${dependency.directory.name}/*:${project.build.finalName}.jar ${simulator.main.class}</cmd>
280 <resources>
281 <resource>
282 <targetPath>${dependency.directory.name}</targetPath>
283 <directory>${dependency.directory.location}</directory>
284 </resource>
285 <resource>
286 <targetPath>/</targetPath>
287 <directory>${project.build.directory}</directory>
288 <include>${project.build.finalName}.jar</include>
289 </resource>
290 </resources>
291 <forceTags>true</forceTags>
292 </configuration>
293 </plugin>
294 <plugin>
295 <groupId>org.jacoco</groupId>
296 <artifactId>jacoco-maven-plugin</artifactId>
297 <version>0.8.1</version>
298 <configuration>
299 <excludes>
300 <exclude>org/onap/pnfsimulator/Main.class</exclude>
301 </excludes>
302 </configuration>
303 <executions>
304 <execution>
305 <id>default-prepare-agent</id>
306 <goals>
307 <goal>prepare-agent</goal>
308 </goals>
309 </execution>
310 <execution>
311 <id>report</id>
312 <phase>prepare-package</phase>
313 <goals>
314 <goal>report</goal>
315 </goals>
316 </execution>
317 <execution>
318 <id>check</id>
319 <goals>
320 <goal>check</goal>
321 </goals>
322 <configuration>
323 <rules>
324 <rule>
325 <element>CLASS</element>
326 <limits>
327 <limit>
328 <value>COVEREDRATIO</value>
329 <minimum>0.70</minimum>
330 </limit>
331 <limit>
332 <counter>BRANCH</counter>
333 <value>COVEREDRATIO</value>
334 <minimum>0.75</minimum>
335 </limit>
336 </limits>
337 </rule>
338 </rules>
339 </configuration>
340 </execution>
341 </executions>
342 </plugin>
343 </plugins>
344 </build>
345</project>