1 <?xml version="1.0" encoding="UTF-8"?>
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>
8 <groupId>org.onap.oparent</groupId>
9 <artifactId>oparent</artifactId>
10 <version>1.2.1</version>
13 <groupId>org.onap.masspnfsimulator</groupId>
14 <artifactId>masspnf-simulator</artifactId>
15 <version>1.0.0-SNAPSHOT</version>
17 <name>pnf-simulator-sandbox</name>
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>
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>
31 <dependency.directory.name>libs</dependency.directory.name>
32 <dependency.directory.location>${project.build.directory}/${dependency.directory.name}
33 </dependency.directory.location>
35 <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
40 <groupId>org.springframework.boot</groupId>
41 <artifactId>spring-boot-starter</artifactId>
42 <version>2.0.2.RELEASE</version>
45 <groupId>org.springframework.boot</groupId>
46 <artifactId>spring-boot-starter-logging</artifactId>
51 <groupId>org.springframework.boot</groupId>
52 <artifactId>spring-boot-starter-web</artifactId>
53 <version>2.0.2.RELEASE</version>
56 <groupId>com.fasterxml.jackson.dataformat</groupId>
57 <artifactId>jackson-dataformat-yaml</artifactId>
58 <version>2.9.8</version>
62 <groupId>ch.qos.logback</groupId>
63 <artifactId>logback-classic</artifactId>
64 <version>1.2.3</version>
67 <groupId>ch.qos.logback</groupId>
68 <artifactId>logback-core</artifactId>
69 <version>1.2.3</version>
72 <groupId>org.slf4j</groupId>
73 <artifactId>slf4j-api</artifactId>
74 <version>1.7.25</version>
77 <groupId>commons-io</groupId>
78 <artifactId>commons-io</artifactId>
79 <version>2.6</version>
82 <groupId>org.json</groupId>
83 <artifactId>json</artifactId>
84 <version>20180130</version>
87 <groupId>org.everit.json</groupId>
88 <artifactId>org.everit.json.schema</artifactId>
89 <version>1.3.0</version>
92 <groupId>com.github.fge</groupId>
93 <artifactId>json-schema-validator</artifactId>
94 <version>2.2.6</version>
97 <groupId>com.google.code.gson</groupId>
98 <artifactId>gson</artifactId>
99 <version>2.8.2</version>
102 <groupId>org.apache.httpcomponents</groupId>
103 <artifactId>httpclient</artifactId>
104 <version>4.5.5</version>
107 <groupId>com.google.guava</groupId>
108 <artifactId>guava</artifactId>
109 <version>21.0</version>
112 <groupId>commons-cli</groupId>
113 <artifactId>commons-cli</artifactId>
114 <version>1.4</version>
117 <groupId>org.apache.commons</groupId>
118 <artifactId>commons-lang3</artifactId>
119 <version>3.7</version>
122 <groupId>org.onosproject</groupId>
123 <artifactId>jnc</artifactId>
124 <version>1.0</version>
128 <groupId>org.junit.jupiter</groupId>
129 <artifactId>junit-jupiter-engine</artifactId>
130 <version>5.1.1</version>
134 <groupId>org.junit.jupiter</groupId>
135 <artifactId>junit-jupiter-migrationsupport</artifactId>
136 <version>${junit.jupiter.version}</version>
140 <groupId>org.assertj</groupId>
141 <artifactId>assertj-core</artifactId>
142 <version>3.9.1</version>
146 <groupId>org.apache.sshd</groupId>
147 <artifactId>sshd-core</artifactId>
148 <version>0.9.0</version>
152 <groupId>org.mockito</groupId>
153 <artifactId>mockito-core</artifactId>
154 <version>2.18.3</version>
159 <groupId>org.springframework</groupId>
160 <artifactId>spring-test</artifactId>
161 <version>5.0.4.RELEASE</version>
166 <groupId>org.springframework.boot</groupId>
167 <artifactId>spring-boot-starter-test</artifactId>
168 <version>2.0.1.RELEASE</version>
176 <groupId>org.apache.maven.plugins</groupId>
177 <artifactId>maven-assembly-plugin</artifactId>
179 <descriptor>src/assembly/resources.xml</descriptor>
180 <finalName>${project.artifactId}-${project.version}</finalName>
184 <phase>package</phase>
192 <groupId>org.apache.maven.plugins</groupId>
193 <artifactId>maven-compiler-plugin</artifactId>
194 <version>3.7.0</version>
196 <source>${maven.compiler.source}</source>
197 <target>${maven.compiler.target}</target>
198 <showWarnings>true</showWarnings>
199 <showDeprecation>true</showDeprecation>
203 <groupId>org.apache.maven.plugins</groupId>
204 <artifactId>maven-jar-plugin</artifactId>
205 <version>3.0.2</version>
209 <Main-Class>${simulator.main.class}</Main-Class>
210 <Build-Time>${maven.build.timestamp}</Build-Time>
216 <groupId>pl.project13.maven</groupId>
217 <artifactId>git-commit-id-plugin</artifactId>
218 <version>2.2.4</version>
221 <id>get-commit-info</id>
223 <goal>revision</goal>
228 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
229 <generateGitPropertiesFile>true</generateGitPropertiesFile>
230 <includeOnlyProperties>git.commit.id.abbrev</includeOnlyProperties>
234 <artifactId>maven-surefire-plugin</artifactId>
235 <version>2.19</version>
238 <groupId>org.junit.platform</groupId>
239 <artifactId>junit-platform-surefire-provider</artifactId>
240 <version>1.1.1</version>
244 <detail>true</detail>
245 <printSummary>true</printSummary>
249 <groupId>org.apache.maven.plugins</groupId>
250 <artifactId>maven-dependency-plugin</artifactId>
252 <outputDirectory>${dependency.directory.location}</outputDirectory>
253 <includeScope>runtime</includeScope>
254 <silent>true</silent>
258 <id>copy-external-dependencies</id>
259 <phase>package</phase>
261 <goal>copy-dependencies</goal>
267 <groupId>com.spotify</groupId>
268 <artifactId>docker-maven-plugin</artifactId>
269 <version>1.0.0</version>
271 <registryUrl>${onap.nexus.dockerregistry.daily}</registryUrl>
272 <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName>
273 <forceTags>true</forceTags>
275 <tag>${project.version}</tag>
276 <tag>${project.version}-${maven.build.timestamp}</tag>
278 <baseImage>openjdk:8-jre-alpine</baseImage>
279 <cmd>java -cp ${dependency.directory.name}/*:${project.build.finalName}.jar ${simulator.main.class}</cmd>
282 <targetPath>${dependency.directory.name}</targetPath>
283 <directory>${dependency.directory.location}</directory>
286 <targetPath>/</targetPath>
287 <directory>${project.build.directory}</directory>
288 <include>${project.build.finalName}.jar</include>
291 <forceTags>true</forceTags>
295 <groupId>org.jacoco</groupId>
296 <artifactId>jacoco-maven-plugin</artifactId>
297 <version>0.8.1</version>
300 <exclude>org/onap/pnfsimulator/Main.class</exclude>
305 <id>default-prepare-agent</id>
307 <goal>prepare-agent</goal>
312 <phase>prepare-package</phase>
325 <element>CLASS</element>
328 <value>COVEREDRATIO</value>
329 <minimum>0.70</minimum>
332 <counter>BRANCH</counter>
333 <value>COVEREDRATIO</value>
334 <minimum>0.75</minimum>