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>
9 <groupId>org.onap.oparent</groupId>
10 <artifactId>oparent</artifactId>
11 <version>1.1.0</version>
14 <groupId>org.onap.pnfsimulator</groupId>
15 <artifactId>pnf-simulator</artifactId>
16 <version>2.0.0-SNAPSHOT</version>
18 <name>pnf-simulator</name>
21 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
22 <maven.compiler.source>1.8</maven.compiler.source>
23 <maven.compiler.target>1.8</maven.compiler.target>
24 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
26 <simulator.main.class>org.onap.pnfsimulator.Main</simulator.main.class>
27 <docker.image.tag>latest</docker.image.tag>
28 <junit.jupiter.version>5.1.0</junit.jupiter.version>
29 <junit.vintage.version>5.1.0</junit.vintage.version>
30 <docker.image.name>onap/${project.artifactId}</docker.image.name>
32 <dependency.directory.name>libs</dependency.directory.name>
33 <dependency.directory.location>${project.build.directory}/${dependency.directory.name}
34 </dependency.directory.location>
36 <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
41 <groupId>org.springframework.boot</groupId>
42 <artifactId>spring-boot-starter</artifactId>
43 <version>2.0.2.RELEASE</version>
46 <groupId>org.springframework.boot</groupId>
47 <artifactId>spring-boot-starter-logging</artifactId>
52 <groupId>org.springframework.boot</groupId>
53 <artifactId>spring-boot-starter-web</artifactId>
54 <version>2.0.2.RELEASE</version>
57 <groupId>ch.qos.logback</groupId>
58 <artifactId>logback-classic</artifactId>
59 <version>1.2.3</version>
62 <groupId>ch.qos.logback</groupId>
63 <artifactId>logback-core</artifactId>
64 <version>1.2.3</version>
67 <groupId>org.slf4j</groupId>
68 <artifactId>slf4j-api</artifactId>
69 <version>1.7.25</version>
72 <groupId>commons-io</groupId>
73 <artifactId>commons-io</artifactId>
74 <version>2.6</version>
77 <groupId>org.json</groupId>
78 <artifactId>json</artifactId>
79 <version>20180130</version>
82 <groupId>org.everit.json</groupId>
83 <artifactId>org.everit.json.schema</artifactId>
84 <version>1.3.0</version>
87 <groupId>com.github.fge</groupId>
88 <artifactId>json-schema-validator</artifactId>
89 <version>2.2.6</version>
92 <groupId>com.google.code.gson</groupId>
93 <artifactId>gson</artifactId>
94 <version>2.8.2</version>
97 <groupId>org.apache.httpcomponents</groupId>
98 <artifactId>httpclient</artifactId>
99 <version>4.5.5</version>
102 <groupId>com.google.guava</groupId>
103 <artifactId>guava</artifactId>
104 <version>21.0</version>
107 <groupId>commons-cli</groupId>
108 <artifactId>commons-cli</artifactId>
109 <version>1.4</version>
112 <groupId>org.apache.commons</groupId>
113 <artifactId>commons-lang3</artifactId>
114 <version>3.7</version>
117 <groupId>org.onosproject</groupId>
118 <artifactId>jnc</artifactId>
119 <version>1.0</version>
123 <groupId>org.junit.jupiter</groupId>
124 <artifactId>junit-jupiter-engine</artifactId>
125 <version>5.1.1</version>
129 <groupId>org.junit.jupiter</groupId>
130 <artifactId>junit-jupiter-migrationsupport</artifactId>
131 <version>${junit.jupiter.version}</version>
135 <groupId>org.assertj</groupId>
136 <artifactId>assertj-core</artifactId>
137 <version>3.9.1</version>
141 <groupId>org.apache.sshd</groupId>
142 <artifactId>sshd-core</artifactId>
143 <version>0.9.0</version>
147 <groupId>org.mockito</groupId>
148 <artifactId>mockito-core</artifactId>
149 <version>2.18.3</version>
154 <groupId>org.springframework</groupId>
155 <artifactId>spring-test</artifactId>
156 <version>5.0.4.RELEASE</version>
160 <groupId>org.springframework.boot</groupId>
161 <artifactId>spring-boot-starter-test</artifactId>
162 <version>2.0.1.RELEASE</version>
170 <groupId>org.apache.maven.plugins</groupId>
171 <artifactId>maven-compiler-plugin</artifactId>
172 <version>3.7.0</version>
174 <source>${maven.compiler.source}</source>
175 <target>${maven.compiler.target}</target>
176 <showWarnings>true</showWarnings>
177 <showDeprecation>true</showDeprecation>
181 <groupId>org.apache.maven.plugins</groupId>
182 <artifactId>maven-jar-plugin</artifactId>
183 <version>3.0.2</version>
187 <Main-Class>${simulator.main.class}</Main-Class>
188 <Build-Time>${maven.build.timestamp}</Build-Time>
194 <groupId>pl.project13.maven</groupId>
195 <artifactId>git-commit-id-plugin</artifactId>
196 <version>2.2.4</version>
199 <id>get-commit-info</id>
201 <goal>revision</goal>
206 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
207 <generateGitPropertiesFile>true</generateGitPropertiesFile>
208 <includeOnlyProperties>git.commit.id.abbrev</includeOnlyProperties>
212 <artifactId>maven-surefire-plugin</artifactId>
213 <version>2.19</version>
216 <groupId>org.junit.platform</groupId>
217 <artifactId>junit-platform-surefire-provider</artifactId>
218 <version>1.1.1</version>
222 <detail>true</detail>
223 <printSummary>true</printSummary>
227 <groupId>org.apache.maven.plugins</groupId>
228 <artifactId>maven-dependency-plugin</artifactId>
230 <outputDirectory>${dependency.directory.location}</outputDirectory>
231 <includeScope>runtime</includeScope>
232 <silent>true</silent>
236 <id>copy-external-dependencies</id>
237 <phase>package</phase>
239 <goal>copy-dependencies</goal>
245 <groupId>com.spotify</groupId>
246 <artifactId>docker-maven-plugin</artifactId>
247 <version>1.0.0</version>
249 <registryUrl>${onap.nexus.dockerregistry.daily}</registryUrl>
250 <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName>
251 <forceTags>true</forceTags>
254 <tag>${project.version}</tag>
255 <tag>${project.version}-${maven.build.timestamp}</tag>
257 <baseImage>openjdk:8-jre-alpine</baseImage>
258 <cmd>java -cp ${dependency.directory.name}/*:${project.build.finalName}.jar ${simulator.main.class}</cmd>
261 <targetPath>${dependency.directory.name}</targetPath>
262 <directory>${dependency.directory.location}</directory>
265 <targetPath>/</targetPath>
266 <directory>${project.build.directory}</directory>
267 <include>${project.build.finalName}.jar</include>
270 <forceTags>true</forceTags>
274 <groupId>org.jacoco</groupId>
275 <artifactId>jacoco-maven-plugin</artifactId>
276 <version>0.8.1</version>
279 <exclude>org/onap/pnfsimulator/Main.class</exclude>
284 <id>default-prepare-agent</id>
286 <goal>prepare-agent</goal>
291 <phase>prepare-package</phase>
304 <element>CLASS</element>
307 <value>COVEREDRATIO</value>
308 <minimum>0.70</minimum>
311 <counter>BRANCH</counter>
312 <value>COVEREDRATIO</value>
313 <minimum>0.75</minimum>