blob: 040f370235cbb81443d4cba57e4ab34031315dda [file] [log] [blame]
Pawel Kadlubanski8d0066e2018-05-11 14:35:43 +02001<?xml version="1.0" encoding="UTF-8"?>
2
3<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Pawel Kadlubanskibbae7a72018-05-23 16:33:20 +02004 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>
Pawel Kadlubanski8d0066e2018-05-11 14:35:43 +02006
Pawel Kadlubanskibbae7a72018-05-23 16:33:20 +02007 <groupId>org.onap.pnfsimulator</groupId>
8 <artifactId>pnf-simulator</artifactId>
9 <version>1.0-SNAPSHOT</version>
Pawel Kadlubanski8d0066e2018-05-11 14:35:43 +020010
Pawel Kadlubanskibbae7a72018-05-23 16:33:20 +020011 <name>pnf-simulator</name>
Pawel Kadlubanski8d0066e2018-05-11 14:35:43 +020012
13 <properties>
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 <simulator.main.class>org.onap.pnfsimulator.Main</simulator.main.class>
Pawel Kadlubanskibbae7a72018-05-23 16:33:20 +020018 <docker.image.tag>latest</docker.image.tag>
Pawel Kadlubanski8d0066e2018-05-11 14:35:43 +020019 <dependency.directory.name>libs</dependency.directory.name>
Pawel Kadlubanskibbae7a72018-05-23 16:33:20 +020020 <dependency.directory.location>${project.build.directory}/${dependency.directory.name}</dependency.directory.location>
Pawel Kadlubanskib2341a52018-05-25 15:58:11 +020021 <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
Pawel Kadlubanskibbae7a72018-05-23 16:33:20 +020022 </properties>
Pawel Kadlubanski8d0066e2018-05-11 14:35:43 +020023
Pawel Kadlubanskibbae7a72018-05-23 16:33:20 +020024 <dependencies>
25 <dependency>
26 <groupId>org.apache.logging.log4j</groupId>
27 <artifactId>log4j-core</artifactId>
28 <version>2.11.0</version>
29 </dependency>
30 <dependency>
31 <groupId>commons-io</groupId>
32 <artifactId>commons-io</artifactId>
33 <version>2.6</version>
34 </dependency>
35 <dependency>
36 <groupId>org.json</groupId>
37 <artifactId>json</artifactId>
38 <version>20180130</version>
39 </dependency>
40 <dependency>
41 <groupId>org.apache.httpcomponents</groupId>
42 <artifactId>httpclient</artifactId>
43 <version>4.5.5</version>
44 </dependency>
45 <dependency>
46 <groupId>com.google.guava</groupId>
47 <artifactId>guava</artifactId>
48 <version>21.0</version>
49 </dependency>
50 <dependency>
51 <groupId>commons-cli</groupId>
52 <artifactId>commons-cli</artifactId>
53 <version>1.4</version>
54 </dependency>
55 <dependency>
56 <groupId>org.junit.jupiter</groupId>
57 <artifactId>junit-jupiter-engine</artifactId>
58 <version>5.1.1</version>
59 <scope>test</scope>
60 </dependency>
61 <dependency>
62 <groupId>org.assertj</groupId>
63 <artifactId>assertj-core</artifactId>
64 <version>3.9.1</version>
65 <scope>test</scope>
66 </dependency>
67 <dependency>
68 <groupId>org.apache.commons</groupId>
69 <artifactId>commons-lang3</artifactId>
70 <version>3.7</version>
71 </dependency>
72 </dependencies>
Pawel Kadlubanski8d0066e2018-05-11 14:35:43 +020073
Pawel Kadlubanskibbae7a72018-05-23 16:33:20 +020074 <build>
75 <plugins>
76 <plugin>
77 <groupId>org.apache.maven.plugins</groupId>
78 <artifactId>maven-compiler-plugin</artifactId>
79 <configuration>
80 <source>${maven.compiler.source}</source>
81 <target>${maven.compiler.target}</target>
82 <showWarnings>true</showWarnings>
83 <showDeprecation>true</showDeprecation>
84 </configuration>
85 </plugin>
86 <plugin>
87 <artifactId>maven-surefire-plugin</artifactId>
88 <version>2.19</version>
89 <dependencies>
90 <dependency>
91 <groupId>org.junit.platform</groupId>
92 <artifactId>junit-platform-surefire-provider</artifactId>
93 <version>1.1.1</version>
94 </dependency>
95 </dependencies>
96 <configuration>
97 <detail>true</detail>
98 <printSummary>true</printSummary>
99 </configuration>
100 </plugin>
101 <plugin>
102 <groupId>org.apache.maven.plugins</groupId>
103 <artifactId>maven-dependency-plugin</artifactId>
104 <configuration>
105 <outputDirectory>${dependency.directory.location}</outputDirectory>
106 <includeScope>runtime</includeScope>
107 <silent>true</silent>
108 </configuration>
109 <executions>
110 <execution>
111 <id>copy-external-dependencies</id>
112 <phase>package</phase>
113 <goals>
114 <goal>copy-dependencies</goal>
115 </goals>
116 </execution>
117 </executions>
118 </plugin>
119 <plugin>
120 <groupId>com.spotify</groupId>
121 <artifactId>docker-maven-plugin</artifactId>
122 <version>1.0.0</version>
123 <configuration>
Pawel Kadlubanskib2341a52018-05-25 15:58:11 +0200124 <imageName>${onap.nexus.dockerregistry.daily}/onap/${project.artifactId}</imageName>
Pawel Kadlubanskibbae7a72018-05-23 16:33:20 +0200125 <imageTags>${docker.image.tag}</imageTags>
Pawel Kadlubanskib2341a52018-05-25 15:58:11 +0200126 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
Pawel Kadlubanskibbae7a72018-05-23 16:33:20 +0200127 <baseImage>openjdk:8-jdk-alpine</baseImage>
128 <cmd>java -cp ${dependency.directory.name}/*:${project.build.finalName}.jar ${simulator.main.class}</cmd>
129 <resources>
130 <resource>
131 <targetPath>${dependency.directory.name}</targetPath>
132 <directory>${dependency.directory.location}</directory>
133 </resource>
134 <resource>
135 <targetPath>/</targetPath>
136 <directory>${project.build.directory}</directory>
137 <include>${project.build.finalName}.jar</include>
138 </resource>
139 </resources>
140 </configuration>
141 <executions>
142 <execution>
143 <id>build-image</id>
144 <phase>package</phase>
145 <goals>
146 <goal>build</goal>
147 </goals>
148 </execution>
149 </executions>
150 </plugin>
151 </plugins>
152 </build>
Pawel Kadlubanski8d0066e2018-05-11 14:35:43 +0200153</project>