blob: 4e966754c6917fed808247f32a2e785300e685f6 [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>
Einat Vinouzed7192592019-07-07 14:15:07 +030015 <springframework.version>5.1.6.RELEASE</springframework.version>
Ittay Sterncb8baa22019-03-11 15:50:07 +020016 <hibernate.version>5.3.4.Final</hibernate.version>
Einat Vinouzed7192592019-07-07 14:15:07 +030017 <jackson.version>2.9.8</jackson.version>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020018 <!-- Skip assembling the zip by default -->
19 <skipassembly>true</skipassembly>
20 <!-- Tests usually require some setup that maven cannot do, so skip. -->
21 <skiptests>true</skiptests>
22 <!-- this should be commented for local debugging -->
23 <!-- <deployenv>local</deployenv> -->
24 <nexusproxy>https://nexus.onap.org</nexusproxy>
25 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
26 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
27 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
Sonsino, Ofir (os0695)8f848c62018-08-12 15:23:14 +030028
29 <!-- "none" will skip cobertura by default; enable the profile "cobertura" to enable it -->
30 <coberturaBuildPhase>none</coberturaBuildPhase>
Ittay Sternb460da42019-07-03 05:30:04 +030031
32 <!-- will build docker-maven-plugin by default; enable the profile "no-docker" to disable it -->
33 <skipDockerBuild>false</skipDockerBuild>
34 <dockerBuildPhase>package</dockerBuildPhase>
35 <dockerPushPhase>deploy</dockerPushPhase>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020036 </properties>
37
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020038 <profiles>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020039 <profile>
40 <id>onap</id>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020041 <properties>
42 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
43 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020044 <nexusproxy>https://nexus.onap.org</nexusproxy>
Ittay Sternb93b96b2019-06-19 14:39:39 +030045 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
46 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
47 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
48 <sitePath>content/sites/site/org/openecomp/vid/${project.version}</sitePath>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020049 </properties>
50
51 <repositories>
52 <repository>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020053 <id>oss-snapshots</id>
54 <name>oss Central - Snapshots</name>
55 <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url>
56 </repository>
57 </repositories>
58 </profile>
59
60 <profile>
Sonsino, Ofir (os0695)8f848c62018-08-12 15:23:14 +030061 <id>default</id>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020062 </profile>
63
64 <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
65 <profile>
66 <id>doclint-java8-disable</id>
67 <activation>
68 <jdk>[1.8,)</jdk>
69 </activation>
70 <build>
71 <plugins>
72 <plugin>
73 <groupId>org.apache.maven.plugins</groupId>
74 <artifactId>maven-javadoc-plugin</artifactId>
75 <version>2.10.4</version>
76 <configuration>
77 <additionalparam>-Xdoclint:none</additionalparam>
78 </configuration>
79 </plugin>
80 </plugins>
81 </build>
82 </profile>
83
84 <profile>
Sonsino, Ofir (os0695)8f848c62018-08-12 15:23:14 +030085 <id>cobertura</id>
86 <properties>
87 <coberturaBuildPhase>package</coberturaBuildPhase>
88 </properties>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020089 </profile>
kurczews178ff252018-11-14 08:14:58 +010090
91 <profile>
Ittay Sternb460da42019-07-03 05:30:04 +030092 <id>no-docker</id>
93 <properties>
94 <skipDockerBuild>true</skipDockerBuild>
95 <dockerBuildPhase>none</dockerBuildPhase>
96 <dockerPushPhase>none</dockerPushPhase>
97 </properties>
98 </profile>
99
100 <profile>
kurczews178ff252018-11-14 08:14:58 +0100101 <id>docker-proxy</id>
102 <!-- activate profile if environment variable `http_proxy` is set -->
103 <activation>
104 <property>
105 <name>env.http_proxy</name>
106 </property>
107 </activation>
108 <properties>
109 <docker.buildArg.http_proxy>${env.http_proxy}</docker.buildArg.http_proxy>
110 </properties>
111 </profile>
112
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200113 </profiles>
114
115 <dependencies>
116 <!-- mockserver -->
117 <dependency>
118 <groupId>org.mock-server</groupId>
119 <artifactId>mockserver-netty</artifactId>
120 <version>3.11</version>
121 </dependency>
biniek6f2b2082018-12-17 11:18:05 +0100122 <dependency>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200123 <groupId>org.springframework</groupId>
124 <artifactId>spring-web</artifactId>
Ittay Stern6ad41e32018-12-31 17:21:27 +0200125 <version>${springframework.version}</version>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200126 </dependency>
127 <dependency>
128 <groupId>org.springframework</groupId>
129 <artifactId>spring-webmvc</artifactId>
Ittay Stern6ad41e32018-12-31 17:21:27 +0200130 <version>${springframework.version}</version>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200131 </dependency>
biniek6f2b2082018-12-17 11:18:05 +0100132 <dependency>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200133 <groupId>com.fasterxml.jackson.core</groupId>
Einat Vinouzed7192592019-07-07 14:15:07 +0300134 <artifactId>jackson-core</artifactId>
135 <version>${jackson.version}</version>
136 </dependency>
137 <dependency>
138 <groupId>com.fasterxml.jackson.core</groupId>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200139 <artifactId>jackson-annotations</artifactId>
Einat Vinouzed7192592019-07-07 14:15:07 +0300140 <version>${jackson.version}</version>
141 </dependency>
142 <dependency>
143 <groupId>com.fasterxml.jackson.core</groupId>
144 <artifactId>jackson-databind</artifactId>
145 <version>${jackson.version}</version>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200146 </dependency>
Sonsino, Ofir (os0695)8f848c62018-08-12 15:23:14 +0300147 <dependency>
148 <groupId>javax.xml.bind</groupId>
149 <artifactId>jaxb-api</artifactId>
150 <version>2.2.11</version>
151 </dependency>
Ittay Sterncb8baa22019-03-11 15:50:07 +0200152
153 <dependency>
154 <groupId>org.hibernate</groupId>
155 <artifactId>hibernate-entitymanager</artifactId>
156 <version>${hibernate.version}</version>
157 </dependency>
158 <dependency>
159 <groupId>org.hibernate</groupId>
160 <artifactId>hibernate-core</artifactId>
161 <version>${hibernate.version}</version>
162 </dependency>
163
164 <dependency>
165 <groupId>org.mariadb.jdbc</groupId>
166 <artifactId>mariadb-java-client</artifactId>
167 <version>2.2.6</version>
168 </dependency>
169
170 <dependency>
171 <groupId>org.hibernate.javax.persistence</groupId>
172 <artifactId>hibernate-jpa-2.1-api</artifactId>
173 <version>1.0.0.Final</version>
174 </dependency>
175
176 <dependency>
177 <groupId>com.google.code.gson</groupId>
178 <artifactId>gson</artifactId>
179 <version>2.8.0</version>
180 </dependency>
181
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200182 </dependencies>
183
184 <build>
185 <finalName>vidSimulator</finalName>
186 <plugins>
187 <plugin>
188 <groupId>org.apache.maven.plugins</groupId>
189 <artifactId>maven-compiler-plugin</artifactId>
190 <version>3.1</version>
191 <configuration>
192 <source>1.8</source>
193 <target>1.8</target>
194 </configuration>
195 </plugin>
kurczews178ff252018-11-14 08:14:58 +0100196
197 <plugin>
198 <groupId>io.fabric8</groupId>
199 <artifactId>docker-maven-plugin</artifactId>
200 <version>0.27.2</version>
201
202 <configuration>
Ittay Sternb460da42019-07-03 05:30:04 +0300203 <skip>${skipDockerBuild}</skip>
kurczews178ff252018-11-14 08:14:58 +0100204 <images>
205 <image>
206 <name>onap/vid-simulator</name>
207 <build>
208 <cleanup>remove</cleanup>
209 <dockerFileDir>${project.basedir}</dockerFileDir>
210 <tags>
211 <tag>${project.version}</tag>
212 <tag>latest</tag>
213 </tags>
214 </build>
215 </image>
216 </images>
217 </configuration>
218
219 <executions>
220 <execution>
221 <id>generate-image</id>
Ittay Sternb460da42019-07-03 05:30:04 +0300222 <phase>${dockerBuildPhase}</phase>
kurczews178ff252018-11-14 08:14:58 +0100223 <goals>
224 <goal>build</goal>
225 </goals>
226 </execution>
227
228 <execution>
229 <id>push-image</id>
Ittay Sternb460da42019-07-03 05:30:04 +0300230 <phase>${dockerPushPhase}</phase>
kurczews178ff252018-11-14 08:14:58 +0100231 <goals>
232 <goal>build</goal>
233 <goal>push</goal>
234 </goals>
235 </execution>
236 </executions>
237
238 </plugin>
239
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200240 </plugins>
241 </build>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200242</project>