blob: 73da5f0412df9329be69398f89431ef6cdc39183 [file] [log] [blame]
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02001<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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>
Sonsino, Ofir (os0695)8f848c62018-08-12 15:23:14 +03006 <groupId>org.onap.vid</groupId>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02007 <artifactId>vid-ext-services-simulator</artifactId>
8 <version>1.0.0</version>
9 <name>VID Simulator</name>
10 <packaging>war</packaging>
11 <description>VID Simulator for mocking external peers</description>
12
13 <properties>
14 <encoding>UTF-8</encoding>
Ittay Sternfb924bf2020-02-26 18:26:07 +020015 <springframework.version>5.2.3.RELEASE</springframework.version>
Ittay Sterncb8baa22019-03-11 15:50:07 +020016 <hibernate.version>5.3.4.Final</hibernate.version>
Ittay Stern0f8e77d2020-02-24 13:55:38 +020017 <jaxb.version>2.3.2</jaxb.version>
Ittay Stern759686a2020-02-26 18:22:30 +020018 <jackson.version>2.10.2</jackson.version>
19 <jackson.databind.version>2.10.2</jackson.databind.version>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020020 <!-- Skip assembling the zip by default -->
21 <skipassembly>true</skipassembly>
22 <!-- Tests usually require some setup that maven cannot do, so skip. -->
23 <skiptests>true</skiptests>
24 <!-- this should be commented for local debugging -->
25 <!-- <deployenv>local</deployenv> -->
26 <nexusproxy>https://nexus.onap.org</nexusproxy>
27 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
28 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
29 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
Sonsino, Ofir (os0695)8f848c62018-08-12 15:23:14 +030030
31 <!-- "none" will skip cobertura by default; enable the profile "cobertura" to enable it -->
32 <coberturaBuildPhase>none</coberturaBuildPhase>
Ittay Sternb460da42019-07-03 05:30:04 +030033
34 <!-- will build docker-maven-plugin by default; enable the profile "no-docker" to disable it -->
35 <skipDockerBuild>false</skipDockerBuild>
36 <dockerBuildPhase>package</dockerBuildPhase>
37 <dockerPushPhase>deploy</dockerPushPhase>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020038 </properties>
39
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020040 <profiles>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020041 <profile>
42 <id>onap</id>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020043 <properties>
44 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
45 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020046 <nexusproxy>https://nexus.onap.org</nexusproxy>
Ittay Sternb93b96b2019-06-19 14:39:39 +030047 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
48 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
49 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
50 <sitePath>content/sites/site/org/openecomp/vid/${project.version}</sitePath>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020051 </properties>
52
53 <repositories>
54 <repository>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020055 <id>oss-snapshots</id>
56 <name>oss Central - Snapshots</name>
57 <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url>
58 </repository>
59 </repositories>
60 </profile>
61
62 <profile>
Sonsino, Ofir (os0695)8f848c62018-08-12 15:23:14 +030063 <id>default</id>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020064 </profile>
65
66 <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
67 <profile>
68 <id>doclint-java8-disable</id>
69 <activation>
70 <jdk>[1.8,)</jdk>
71 </activation>
72 <build>
73 <plugins>
74 <plugin>
75 <groupId>org.apache.maven.plugins</groupId>
76 <artifactId>maven-javadoc-plugin</artifactId>
77 <version>2.10.4</version>
78 <configuration>
79 <additionalparam>-Xdoclint:none</additionalparam>
80 </configuration>
81 </plugin>
82 </plugins>
83 </build>
84 </profile>
85
86 <profile>
Sonsino, Ofir (os0695)8f848c62018-08-12 15:23:14 +030087 <id>cobertura</id>
88 <properties>
89 <coberturaBuildPhase>package</coberturaBuildPhase>
90 </properties>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020091 </profile>
kurczews178ff252018-11-14 08:14:58 +010092
93 <profile>
Ittay Sternb460da42019-07-03 05:30:04 +030094 <id>no-docker</id>
95 <properties>
96 <skipDockerBuild>true</skipDockerBuild>
97 <dockerBuildPhase>none</dockerBuildPhase>
98 <dockerPushPhase>none</dockerPushPhase>
99 </properties>
100 </profile>
101
102 <profile>
kurczews178ff252018-11-14 08:14:58 +0100103 <id>docker-proxy</id>
104 <!-- activate profile if environment variable `http_proxy` is set -->
105 <activation>
106 <property>
107 <name>env.http_proxy</name>
108 </property>
109 </activation>
110 <properties>
111 <docker.buildArg.http_proxy>${env.http_proxy}</docker.buildArg.http_proxy>
112 </properties>
113 </profile>
114
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200115 </profiles>
116
117 <dependencies>
118 <!-- mockserver -->
119 <dependency>
120 <groupId>org.mock-server</groupId>
121 <artifactId>mockserver-netty</artifactId>
122 <version>3.11</version>
123 </dependency>
biniek6f2b2082018-12-17 11:18:05 +0100124 <dependency>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200125 <groupId>org.springframework</groupId>
126 <artifactId>spring-web</artifactId>
Ittay Stern6ad41e32018-12-31 17:21:27 +0200127 <version>${springframework.version}</version>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200128 </dependency>
129 <dependency>
130 <groupId>org.springframework</groupId>
131 <artifactId>spring-webmvc</artifactId>
Ittay Stern6ad41e32018-12-31 17:21:27 +0200132 <version>${springframework.version}</version>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200133 </dependency>
biniek6f2b2082018-12-17 11:18:05 +0100134 <dependency>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200135 <groupId>com.fasterxml.jackson.core</groupId>
Einat Vinouzed7192592019-07-07 14:15:07 +0300136 <artifactId>jackson-core</artifactId>
137 <version>${jackson.version}</version>
138 </dependency>
139 <dependency>
140 <groupId>com.fasterxml.jackson.core</groupId>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200141 <artifactId>jackson-annotations</artifactId>
Einat Vinouzed7192592019-07-07 14:15:07 +0300142 <version>${jackson.version}</version>
143 </dependency>
144 <dependency>
145 <groupId>com.fasterxml.jackson.core</groupId>
146 <artifactId>jackson-databind</artifactId>
Amichai Hemli98794612019-09-16 10:53:47 +0300147 <version>${jackson.databind.version}</version>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200148 </dependency>
Ittay Stern0f8e77d2020-02-24 13:55:38 +0200149 <!-- https://eclipse-ee4j.github.io/jaxb-ri/#maven-artifacts -->
150 <!-- API -->
Sonsino, Ofir (os0695)8f848c62018-08-12 15:23:14 +0300151 <dependency>
Ittay Stern0f8e77d2020-02-24 13:55:38 +0200152 <groupId>jakarta.xml.bind</groupId>
153 <artifactId>jakarta.xml.bind-api</artifactId>
154 <version>${jaxb.version}</version>
155 </dependency>
156 <!-- Runtime -->
157 <dependency>
158 <groupId>org.glassfish.jaxb</groupId>
159 <artifactId>jaxb-runtime</artifactId>
160 <version>${jaxb.version}</version>
Sonsino, Ofir (os0695)8f848c62018-08-12 15:23:14 +0300161 </dependency>
Ittay Sterncb8baa22019-03-11 15:50:07 +0200162
163 <dependency>
164 <groupId>org.hibernate</groupId>
165 <artifactId>hibernate-entitymanager</artifactId>
166 <version>${hibernate.version}</version>
167 </dependency>
168 <dependency>
169 <groupId>org.hibernate</groupId>
170 <artifactId>hibernate-core</artifactId>
171 <version>${hibernate.version}</version>
172 </dependency>
Ittay Sternefefd952020-03-23 06:47:25 +0200173 <dependency>
174 <groupId>org.hibernate</groupId>
175 <artifactId>hibernate-c3p0</artifactId>
176 <version>${hibernate.version}</version>
177 </dependency>
Ittay Sterncb8baa22019-03-11 15:50:07 +0200178
179 <dependency>
180 <groupId>org.mariadb.jdbc</groupId>
181 <artifactId>mariadb-java-client</artifactId>
182 <version>2.2.6</version>
183 </dependency>
184
185 <dependency>
186 <groupId>org.hibernate.javax.persistence</groupId>
187 <artifactId>hibernate-jpa-2.1-api</artifactId>
188 <version>1.0.0.Final</version>
189 </dependency>
190
191 <dependency>
192 <groupId>com.google.code.gson</groupId>
193 <artifactId>gson</artifactId>
194 <version>2.8.0</version>
195 </dependency>
196
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200197 </dependencies>
198
199 <build>
200 <finalName>vidSimulator</finalName>
201 <plugins>
202 <plugin>
203 <groupId>org.apache.maven.plugins</groupId>
204 <artifactId>maven-compiler-plugin</artifactId>
Ittay Stern9ba4d062020-02-27 13:40:28 +0200205 <version>3.8.1</version>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200206 <configuration>
207 <source>1.8</source>
208 <target>1.8</target>
209 </configuration>
210 </plugin>
kurczews178ff252018-11-14 08:14:58 +0100211
212 <plugin>
213 <groupId>io.fabric8</groupId>
214 <artifactId>docker-maven-plugin</artifactId>
215 <version>0.27.2</version>
216
217 <configuration>
Ittay Sternb460da42019-07-03 05:30:04 +0300218 <skip>${skipDockerBuild}</skip>
kurczews178ff252018-11-14 08:14:58 +0100219 <images>
220 <image>
221 <name>onap/vid-simulator</name>
222 <build>
223 <cleanup>remove</cleanup>
224 <dockerFileDir>${project.basedir}</dockerFileDir>
225 <tags>
226 <tag>${project.version}</tag>
227 <tag>latest</tag>
228 </tags>
229 </build>
230 </image>
231 </images>
232 </configuration>
233
234 <executions>
235 <execution>
236 <id>generate-image</id>
Ittay Sternb460da42019-07-03 05:30:04 +0300237 <phase>${dockerBuildPhase}</phase>
kurczews178ff252018-11-14 08:14:58 +0100238 <goals>
239 <goal>build</goal>
240 </goals>
241 </execution>
242
243 <execution>
244 <id>push-image</id>
Ittay Sternb460da42019-07-03 05:30:04 +0300245 <phase>${dockerPushPhase}</phase>
kurczews178ff252018-11-14 08:14:58 +0100246 <goals>
247 <goal>build</goal>
248 <goal>push</goal>
249 </goals>
250 </execution>
251 </executions>
252
253 </plugin>
254
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200255 </plugins>
256 </build>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200257</project>