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>
7 <groupId>org.onap.pnfsimulator</groupId>
8 <artifactId>pnf-simulator</artifactId>
9 <version>2.0.0-SNAPSHOT</version>
11 <name>pnf-simulator</name>
14 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15 <maven.compiler.source>1.8</maven.compiler.source>
16 <maven.compiler.target>1.8</maven.compiler.target>
17 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
19 <simulator.main.class>org.onap.pnfsimulator.Main</simulator.main.class>
20 <docker.image.tag>latest</docker.image.tag>
21 <junit.jupiter.version>5.1.0</junit.jupiter.version>
22 <junit.vintage.version>5.1.0</junit.vintage.version>
23 <docker.image.name>onap/${project.artifactId}</docker.image.name>
25 <dependency.directory.name>libs</dependency.directory.name>
26 <dependency.directory.location>${project.build.directory}/${dependency.directory.name}
27 </dependency.directory.location>
29 <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
34 <groupId>org.springframework.boot</groupId>
35 <artifactId>spring-boot-starter</artifactId>
36 <version>2.0.2.RELEASE</version>
39 <groupId>org.springframework.boot</groupId>
40 <artifactId>spring-boot-starter-logging</artifactId>
45 <groupId>org.springframework.boot</groupId>
46 <artifactId>spring-boot-starter-web</artifactId>
47 <version>2.0.2.RELEASE</version>
50 <groupId>ch.qos.logback</groupId>
51 <artifactId>logback-classic</artifactId>
52 <version>1.2.3</version>
55 <groupId>ch.qos.logback</groupId>
56 <artifactId>logback-core</artifactId>
57 <version>1.2.3</version>
60 <groupId>org.slf4j</groupId>
61 <artifactId>slf4j-api</artifactId>
62 <version>1.7.25</version>
65 <groupId>commons-io</groupId>
66 <artifactId>commons-io</artifactId>
67 <version>2.6</version>
70 <groupId>org.json</groupId>
71 <artifactId>json</artifactId>
72 <version>20180130</version>
75 <groupId>org.everit.json</groupId>
76 <artifactId>org.everit.json.schema</artifactId>
77 <version>1.3.0</version>
80 <groupId>com.github.fge</groupId>
81 <artifactId>json-schema-validator</artifactId>
82 <version>2.2.6</version>
85 <groupId>com.google.code.gson</groupId>
86 <artifactId>gson</artifactId>
87 <version>2.8.2</version>
90 <groupId>org.apache.httpcomponents</groupId>
91 <artifactId>httpclient</artifactId>
92 <version>4.5.5</version>
95 <groupId>com.google.guava</groupId>
96 <artifactId>guava</artifactId>
97 <version>21.0</version>
100 <groupId>commons-cli</groupId>
101 <artifactId>commons-cli</artifactId>
102 <version>1.4</version>
105 <groupId>org.apache.commons</groupId>
106 <artifactId>commons-lang3</artifactId>
107 <version>3.7</version>
110 <groupId>org.onosproject</groupId>
111 <artifactId>jnc</artifactId>
112 <version>1.0</version>
115 <groupId>org.onosproject</groupId>
116 <artifactId>jnc</artifactId>
117 <version>1.0</version>
121 <groupId>org.junit.jupiter</groupId>
122 <artifactId>junit-jupiter-api</artifactId>
123 <version>${junit.jupiter.version}</version>
127 <groupId>org.junit.jupiter</groupId>
128 <artifactId>junit-jupiter-engine</artifactId>
129 <version>5.1.1</version>
133 <groupId>org.junit.jupiter</groupId>
134 <artifactId>junit-jupiter-migrationsupport</artifactId>
135 <version>${junit.jupiter.version}</version>
139 <groupId>org.junit.vintage</groupId>
140 <artifactId>junit-vintage-engine</artifactId>
141 <version>${junit.vintage.version}</version>
146 <groupId>org.assertj</groupId>
147 <artifactId>assertj-core</artifactId>
148 <version>3.9.1</version>
153 <groupId>org.apache.sshd</groupId>
154 <artifactId>sshd-core</artifactId>
155 <version>0.9.0</version>
160 <groupId>org.mockito</groupId>
161 <artifactId>mockito-core</artifactId>
162 <version>2.18.3</version>
167 <groupId>org.springframework</groupId>
168 <artifactId>spring-test</artifactId>
169 <version>5.0.4.RELEASE</version>
173 <groupId>org.springframework.boot</groupId>
174 <artifactId>spring-boot-starter-test</artifactId>
175 <version>2.0.1.RELEASE</version>
183 <groupId>org.apache.maven.plugins</groupId>
184 <artifactId>maven-compiler-plugin</artifactId>
186 <source>${maven.compiler.source}</source>
187 <target>${maven.compiler.target}</target>
188 <showWarnings>true</showWarnings>
189 <showDeprecation>true</showDeprecation>
193 <groupId>org.apache.maven.plugins</groupId>
194 <artifactId>maven-jar-plugin</artifactId>
198 <Main-Class>${simulator.main.class}</Main-Class>
199 <Build-Time>${maven.build.timestamp}</Build-Time>
205 <groupId>pl.project13.maven</groupId>
206 <artifactId>git-commit-id-plugin</artifactId>
207 <version>2.2.4</version>
210 <id>get-commit-info</id>
212 <goal>revision</goal>
217 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
218 <generateGitPropertiesFile>true</generateGitPropertiesFile>
219 <includeOnlyProperties>git.commit.id.abbrev</includeOnlyProperties>
223 <artifactId>maven-surefire-plugin</artifactId>
224 <version>2.19</version>
227 <groupId>org.junit.platform</groupId>
228 <artifactId>junit-platform-surefire-provider</artifactId>
229 <version>1.1.1</version>
233 <detail>true</detail>
234 <printSummary>true</printSummary>
238 <groupId>org.apache.maven.plugins</groupId>
239 <artifactId>maven-dependency-plugin</artifactId>
241 <outputDirectory>${dependency.directory.location}</outputDirectory>
242 <includeScope>runtime</includeScope>
243 <silent>true</silent>
247 <id>copy-external-dependencies</id>
248 <phase>package</phase>
250 <goal>copy-dependencies</goal>
256 <groupId>com.spotify</groupId>
257 <artifactId>docker-maven-plugin</artifactId>
258 <version>1.0.0</version>
260 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
261 <imageName>${docker.image.name}</imageName>
265 <baseImage>openjdk:8-jre-alpine</baseImage>
266 <cmd>java -cp ${dependency.directory.name}/*:${project.build.finalName}.jar ${simulator.main.class}</cmd>
269 <targetPath>${dependency.directory.name}</targetPath>
270 <directory>${dependency.directory.location}</directory>
273 <targetPath>/</targetPath>
274 <directory>${project.build.directory}</directory>
275 <include>${project.build.finalName}.jar</include>
282 <phase>package</phase>
288 <id>tag-and-push-image-latest</id>
289 <phase>deploy</phase>
294 <image>${docker.image.name}:latest</image>
295 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName>
296 <pushImage>true</pushImage>
300 <id>tag-and-push-image-with-version</id>
301 <phase>deploy</phase>
306 <image>${docker.image.name}:latest</image>
307 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName>
308 <pushImage>true</pushImage>
312 <id>tag-and-push-image-with-version-and-date</id>
313 <phase>deploy</phase>
318 <image>${docker.image.name}:latest</image>
320 ${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}
322 <pushImage>true</pushImage>
328 <groupId>org.jacoco</groupId>
329 <artifactId>jacoco-maven-plugin</artifactId>
332 <exclude>org/onap/pnfsimulator/Main.class</exclude>
337 <id>default-prepare-agent</id>
339 <goal>prepare-agent</goal>
344 <phase>prepare-package</phase>
357 <element>CLASS</element>
360 <value>COVEREDRATIO</value>
361 <minimum>0.70</minimum>
364 <counter>BRANCH</counter>
365 <value>COVEREDRATIO</value>
366 <minimum>0.75</minimum>