blob: 56404f876690541811e6d6f6f659322a25da5641 [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>
15 <epsdk.version>1.3.0</epsdk.version>
Ittay Stern3bbd23f2019-03-26 11:25:37 +020016 <springframework.version>4.3.22.RELEASE</springframework.version>
Ittay Sterncb8baa22019-03-11 15:50:07 +020017 <hibernate.version>5.3.4.Final</hibernate.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>
44 <epsdk.version>1.1.0-SNAPSHOT</epsdk.version>
45 <nexusproxy>https://nexus.onap.org</nexusproxy>
Ittay Sternb93b96b2019-06-19 14:39:39 +030046 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
47 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
48 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
49 <sitePath>content/sites/site/org/openecomp/vid/${project.version}</sitePath>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020050 </properties>
51
52 <repositories>
53 <repository>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020054 <id>oss-snapshots</id>
55 <name>oss Central - Snapshots</name>
56 <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url>
57 </repository>
58 </repositories>
59 </profile>
60
61 <profile>
Sonsino, Ofir (os0695)8f848c62018-08-12 15:23:14 +030062 <id>default</id>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020063 </profile>
64
65 <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
66 <profile>
67 <id>doclint-java8-disable</id>
68 <activation>
69 <jdk>[1.8,)</jdk>
70 </activation>
71 <build>
72 <plugins>
73 <plugin>
74 <groupId>org.apache.maven.plugins</groupId>
75 <artifactId>maven-javadoc-plugin</artifactId>
76 <version>2.10.4</version>
77 <configuration>
78 <additionalparam>-Xdoclint:none</additionalparam>
79 </configuration>
80 </plugin>
81 </plugins>
82 </build>
83 </profile>
84
85 <profile>
Sonsino, Ofir (os0695)8f848c62018-08-12 15:23:14 +030086 <id>cobertura</id>
87 <properties>
88 <coberturaBuildPhase>package</coberturaBuildPhase>
89 </properties>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020090 </profile>
kurczews178ff252018-11-14 08:14:58 +010091
92 <profile>
Ittay Sternb460da42019-07-03 05:30:04 +030093 <id>no-docker</id>
94 <properties>
95 <skipDockerBuild>true</skipDockerBuild>
96 <dockerBuildPhase>none</dockerBuildPhase>
97 <dockerPushPhase>none</dockerPushPhase>
98 </properties>
99 </profile>
100
101 <profile>
kurczews178ff252018-11-14 08:14:58 +0100102 <id>docker-proxy</id>
103 <!-- activate profile if environment variable `http_proxy` is set -->
104 <activation>
105 <property>
106 <name>env.http_proxy</name>
107 </property>
108 </activation>
109 <properties>
110 <docker.buildArg.http_proxy>${env.http_proxy}</docker.buildArg.http_proxy>
111 </properties>
112 </profile>
113
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200114 </profiles>
115
116 <dependencies>
117 <!-- mockserver -->
118 <dependency>
119 <groupId>org.mock-server</groupId>
120 <artifactId>mockserver-netty</artifactId>
121 <version>3.11</version>
122 </dependency>
biniek6f2b2082018-12-17 11:18:05 +0100123 <dependency>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200124 <groupId>org.springframework</groupId>
125 <artifactId>spring-web</artifactId>
Ittay Stern6ad41e32018-12-31 17:21:27 +0200126 <version>${springframework.version}</version>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200127 </dependency>
128 <dependency>
129 <groupId>org.springframework</groupId>
130 <artifactId>spring-webmvc</artifactId>
Ittay Stern6ad41e32018-12-31 17:21:27 +0200131 <version>${springframework.version}</version>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200132 </dependency>
biniek6f2b2082018-12-17 11:18:05 +0100133 <dependency>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200134 <groupId>com.fasterxml.jackson.core</groupId>
135 <artifactId>jackson-annotations</artifactId>
136 <version>2.8.7</version>
137 </dependency>
Sonsino, Ofir (os0695)8f848c62018-08-12 15:23:14 +0300138 <dependency>
139 <groupId>javax.xml.bind</groupId>
140 <artifactId>jaxb-api</artifactId>
141 <version>2.2.11</version>
142 </dependency>
Ittay Sterncb8baa22019-03-11 15:50:07 +0200143
144 <dependency>
145 <groupId>org.hibernate</groupId>
146 <artifactId>hibernate-entitymanager</artifactId>
147 <version>${hibernate.version}</version>
148 </dependency>
149 <dependency>
150 <groupId>org.hibernate</groupId>
151 <artifactId>hibernate-core</artifactId>
152 <version>${hibernate.version}</version>
153 </dependency>
154
155 <dependency>
156 <groupId>org.mariadb.jdbc</groupId>
157 <artifactId>mariadb-java-client</artifactId>
158 <version>2.2.6</version>
159 </dependency>
160
161 <dependency>
162 <groupId>org.hibernate.javax.persistence</groupId>
163 <artifactId>hibernate-jpa-2.1-api</artifactId>
164 <version>1.0.0.Final</version>
165 </dependency>
166
167 <dependency>
168 <groupId>com.google.code.gson</groupId>
169 <artifactId>gson</artifactId>
170 <version>2.8.0</version>
171 </dependency>
172
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200173 </dependencies>
174
175 <build>
176 <finalName>vidSimulator</finalName>
177 <plugins>
178 <plugin>
179 <groupId>org.apache.maven.plugins</groupId>
180 <artifactId>maven-compiler-plugin</artifactId>
181 <version>3.1</version>
182 <configuration>
183 <source>1.8</source>
184 <target>1.8</target>
185 </configuration>
186 </plugin>
kurczews178ff252018-11-14 08:14:58 +0100187
188 <plugin>
189 <groupId>io.fabric8</groupId>
190 <artifactId>docker-maven-plugin</artifactId>
191 <version>0.27.2</version>
192
193 <configuration>
Ittay Sternb460da42019-07-03 05:30:04 +0300194 <skip>${skipDockerBuild}</skip>
kurczews178ff252018-11-14 08:14:58 +0100195 <images>
196 <image>
197 <name>onap/vid-simulator</name>
198 <build>
199 <cleanup>remove</cleanup>
200 <dockerFileDir>${project.basedir}</dockerFileDir>
201 <tags>
202 <tag>${project.version}</tag>
203 <tag>latest</tag>
204 </tags>
205 </build>
206 </image>
207 </images>
208 </configuration>
209
210 <executions>
211 <execution>
212 <id>generate-image</id>
Ittay Sternb460da42019-07-03 05:30:04 +0300213 <phase>${dockerBuildPhase}</phase>
kurczews178ff252018-11-14 08:14:58 +0100214 <goals>
215 <goal>build</goal>
216 </goals>
217 </execution>
218
219 <execution>
220 <id>push-image</id>
Ittay Sternb460da42019-07-03 05:30:04 +0300221 <phase>${dockerPushPhase}</phase>
kurczews178ff252018-11-14 08:14:58 +0100222 <goals>
223 <goal>build</goal>
224 <goal>push</goal>
225 </goals>
226 </execution>
227 </executions>
228
229 </plugin>
230
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200231 </plugins>
232 </build>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +0200233</project>